Package org.serviceconnector.service
Class FileSession
java.lang.Object
org.serviceconnector.service.AbstractSession
org.serviceconnector.service.Session
org.serviceconnector.service.FileSession
The Class FileSession.
-
Field Summary
Fields inherited from class org.serviceconnector.service.AbstractSession
ipAddressList, server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(XMLDumpWriter writer) Dump the session into the xml writer.Gets the file server.Gets the gets the file list script name.Gets the http url connection.Gets the input stream.Gets the output steam.getPath()Gets the path.Gets the upload file script name.booleanChecks if is streaming.voidsetHttpUrlConnection(HttpURLConnection httpCon) Sets the http url connection.voidSets the input stream.voidSets the output stream.voidStart streaming.voidStop streaming.Methods inherited from class org.serviceconnector.service.Session
getLastExecuteTime, getSessionTimeoutMillis, getStatefulServer, hasPendingRequest, resetExecuteTime, setPendingRequest, setSessionTimeoutMillisMethods inherited from class org.serviceconnector.service.AbstractSession
getCreationTime, getId, getIpAddressList, getServer, getService, getSessionInfo, getTimeout, getTimeouterTask, isCascaded, setServer, setService, setTimeout, setTimeouterTask, toString
-
Constructor Details
-
FileSession
public FileSession(String sessionInfo, String ipAddressList, String path, String uploadScript, String getFileListScript) Instantiates a new file session.- Parameters:
sessionInfo- the session infoipAddressList- the ip address listpath- the pathuploadScript- the upload scriptgetFileListScript- the get file list script
-
-
Method Details
-
getFileServer
Gets the file server.- Returns:
- the file server
-
isStreaming
public boolean isStreaming()Checks if is streaming.- Returns:
- true, if is streaming
-
startStreaming
public void startStreaming()Start streaming. -
stopStreaming
public void stopStreaming()Stop streaming. -
dump
Dump the session into the xml writer. -
getPath
Gets the path.- Returns:
- the path
-
setHttpUrlConnection
Sets the http url connection.- Parameters:
httpCon- the new http url connection
-
setInputStream
Sets the input stream.- Parameters:
is- the new input stream
-
getHttpURLConnection
Gets the http url connection.- Returns:
- the http url connection
-
getInputStream
Gets the input stream.- Returns:
- the input stream
-
getUploadFileScriptName
Gets the upload file script name.- Returns:
- the upload file script name
-
getGetFileListScriptName
Gets the gets the file list script name.- Returns:
- the gets the file list script name
-
setOutputStream
Sets the output stream.- Parameters:
out- the new output stream
-
getOutputSteam
Gets the output steam.- Returns:
- the output steam
-