org.gswing.framework
Class ServerManager

java.lang.Object
  extended by org.gswing.framework.ServerManager
All Implemented Interfaces:
IServerManagement

public class ServerManager
extends Object
implements IServerManagement

Implements an interface to the server that hosts gswing runtime.


Constructor Summary
ServerManager()
          Constructor.
 
Method Summary
 boolean initialise(IFramework framework)
          Set up manager.
 void uploadFile(String fileName, String path)
          Upload a file to the server from the specified directory.
 void uploadFiles(String[] fileNames, String path)
          Upload files to the server from the specified directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerManager

public ServerManager()
Constructor.

Method Detail

initialise

public boolean initialise(IFramework framework)
Set up manager.

Parameters:
framework - DSpace framework.
Returns:
True is initialise is successful.

uploadFile

public void uploadFile(String fileName,
                       String path)
Description copied from interface: IServerManagement
Upload a file to the server from the specified directory.

Specified by:
uploadFile in interface IServerManagement
Parameters:
fileName - The file name.
path - Loaction of the files.

uploadFiles

public void uploadFiles(String[] fileNames,
                        String path)
Description copied from interface: IServerManagement
Upload files to the server from the specified directory.

Specified by:
uploadFiles in interface IServerManagement
Parameters:
fileNames - Names os the files to upload.
path - Loaction of the files.


Copyright © 2008. All Rights Reserved.