Class FileSession


public class FileSession extends Session
The Class FileSession.
  • Constructor Details

    • FileSession

      public FileSession(String sessionInfo, String ipAddressList, String path, String uploadScript, String getFileListScript)
      Instantiates a new file session.
      Parameters:
      sessionInfo - the session info
      ipAddressList - the ip address list
      path - the path
      uploadScript - the upload script
      getFileListScript - the get file list script
  • Method Details

    • getFileServer

      public FileServer 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

      public void dump(XMLDumpWriter writer) throws Exception
      Dump the session into the xml writer.
      Overrides:
      dump in class Session
      Parameters:
      writer - the writer
      Throws:
      Exception - the exception
    • getPath

      public String getPath()
      Gets the path.
      Returns:
      the path
    • setHttpUrlConnection

      public void setHttpUrlConnection(HttpURLConnection httpCon)
      Sets the http url connection.
      Parameters:
      httpCon - the new http url connection
    • setInputStream

      public void setInputStream(InputStream is)
      Sets the input stream.
      Parameters:
      is - the new input stream
    • getHttpURLConnection

      public HttpURLConnection getHttpURLConnection()
      Gets the http url connection.
      Returns:
      the http url connection
    • getInputStream

      public InputStream getInputStream()
      Gets the input stream.
      Returns:
      the input stream
    • getUploadFileScriptName

      public String getUploadFileScriptName()
      Gets the upload file script name.
      Returns:
      the upload file script name
    • getGetFileListScriptName

      public String getGetFileListScriptName()
      Gets the gets the file list script name.
      Returns:
      the gets the file list script name
    • setOutputStream

      public void setOutputStream(OutputStream out)
      Sets the output stream.
      Parameters:
      out - the new output stream
    • getOutputSteam

      public OutputStream getOutputSteam()
      Gets the output steam.
      Returns:
      the output steam