com.webct.platform.sdk.filemanager.client
Class FileManagerSDKFactory

java.lang.Object
  extended by com.webct.platform.sdk.filemanager.client.FileManagerSDKFactory

public class FileManagerSDKFactory
extends java.lang.Object

Used to create a client-side instance of FileManagerService. This may be an instance that used SOAP, or it may be an instance that communicates directly with the EJB via RMI (note that two methods of the interface, FileManagerService.upload(com.webct.platform.sdk.context.gen.SessionVO, java.lang.String, com.webct.platform.sdk.filemanager.FileProperty[], javax.activation.DataHandler, boolean, boolean) and FileManagerService.getFileContent(com.webct.platform.sdk.context.gen.SessionVO, java.lang.String) will not operate via RMI).


Field Summary
static java.lang.String JNDI_NAME
          JNDI name of home interface for the file manager service.
 
Method Summary
static FileManagerService getEJBInstance()
          This method may be used only if the application is running on the server side.
static FileManagerService getEJBInstance(java.lang.String factoryClass, java.lang.String url)
          Returns FileManagerService by performing an EJB lookup
static FileManagerService getSOAPInstance(java.net.URL url)
          Returns FileManagerService, which can be used to access the file manager service through SOAP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JNDI_NAME

public static final java.lang.String JNDI_NAME
Description copied from class: FileManagerSDKFactory
JNDI name of home interface for the file manager service.

See Also:
Constant Field Values
Method Detail

getSOAPInstance

public static FileManagerService getSOAPInstance(java.net.URL url)
                                          throws java.rmi.RemoteException
Description copied from class: FileManagerSDKFactory
Returns FileManagerService, which can be used to access the file manager service through SOAP

Parameters:
url - URL to the Calendar SDK Web service for example http://localhost:8080/webct/axis/FileManager
Throws:
java.rmi.RemoteException - if there is a system error

getEJBInstance

public static FileManagerService getEJBInstance(java.lang.String factoryClass,
                                                java.lang.String url)
                                         throws java.rmi.RemoteException
Description copied from class: FileManagerSDKFactory
Returns FileManagerService by performing an EJB lookup

Parameters:
factoryClass - JNDI container factory class name
url - JNDI provider URL
Throws:
java.rmi.RemoteException - if there is a system error

getEJBInstance

public static FileManagerService getEJBInstance()
                                         throws java.rmi.RemoteException
Description copied from class: FileManagerSDKFactory
This method may be used only if the application is running on the server side. Returns FileManagerService by performing an EJB lookup

Throws:
java.rmi.RemoteException - if there is a system error


Copyright © 2000-2004 WebCT Corp. All Rights Reserved.