Class FileService

java.lang.Object
org.serviceconnector.service.Service
org.serviceconnector.service.FileService

public class FileService extends Service
The Class PublishService. PublishService is a remote interface in client API to a publish service and provides communication functions.
  • Constructor Details

    • FileService

      public FileService(String name, FileServer server, String path, String scUploadScript, String scGetFileListScript)
      Instantiates a new publish service.
      Parameters:
      name - the name
      server - the server
      path - the path
      scUploadScript - the sc upload script
      scGetFileListScript - the sc get file list script
  • Method Details

    • getPath

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

      public FileServer getServer()
      Gets the server.
      Returns:
      the server
    • 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
    • allocateFileServerAndCreateSession

      public FileServer allocateFileServerAndCreateSession(FileSession session) throws Exception
      Allocate file server and create session.
      Parameters:
      session - the session
      Returns:
      the file server
      Throws:
      Exception - the exception
    • dump

      public void dump(XMLDumpWriter writer) throws Exception
      Description copied from class: Service
      Dump the service into the xml writer.
      Specified by:
      dump in class Service
      Parameters:
      writer - the writer
      Throws:
      Exception - the exception