|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dynalivery.saffron.client.SaffronClient
com.dynalivery.saffron.client.SaffronCORBAClient
This is an implementation of the Saffron client based on CORBA
| Field Summary | |
protected com.dynalivery.server.DynaliveryServer |
dynaliveryServer
|
protected com.dynalivery.server.log.LogReceiver |
logReceiver
|
protected static org.omg.CORBA.ORB |
orb
|
protected com.dynalivery.server.output.OutputJob |
outputJob
|
protected com.dynalivery.server.output.OutputService |
outputService
|
protected static org.omg.PortableServer.POA |
poa
|
protected com.dynalivery.saffron.client.remoteclassloader.RemoteClassLoaderImp |
remoteClassLoaderImp
|
protected java.lang.String |
remoteClassLoaderIOR
|
| Fields inherited from class com.dynalivery.saffron.client.SaffronClient |
appServerVendor, logService, password, properties, PROPERTY_APPSERVER_VENDOR, PROPERTY_SAFFRON_COMMAND_LINE, PROPERTY_SERVER_NAME, PROPERTY_SERVER_PORT, serverName, serverPortInt, serverPortString, serverType, snoaVersionDesired, userName |
| Constructor Summary | |
SaffronCORBAClient(java.util.Properties properties)
construct a CORBA Saffron client |
|
| Method Summary | |
void |
abortJob()
Abort the active job if possible |
boolean |
canAbortJob()
Returns true if we can abort an active job |
void |
connect(java.lang.String userName,
java.lang.String password)
Connect to the Saffron CORBA server. |
protected void |
connectInternal(java.lang.String userName,
java.lang.String password)
Connect to the Saffron CORBA server. |
void |
disconnect()
Disconnect from the Saffron CORBA server. |
void |
export(FormatOptions formatOptions,
SaffronInputSource[] inputSources,
DestinationOptions destinationOptions)
Export one or more documents |
com.dynalivery.common.IdentifierPair[] |
getDestinationList(int fid)
getDestinationList returns the List of Destinations Supported by this Formatter. |
com.dynalivery.common.IdentifierPair[] |
getFormatList()
getFormatList returns the List of OutputFormats Supported |
protected java.lang.String |
getIOR()
This method returns the IOR of the Saffron server |
static org.omg.PortableServer.POA |
getPOA()
|
protected java.lang.String |
getRemoteClassLoaderIOR()
|
boolean |
isConnected()
Returns true if we are connected to Saffron |
static void |
releaseCORBALog(com.dynalivery.server.log.LogReceiverPOA logReceiverPOA)
|
void |
setCORBALog(com.dynalivery.server.log.LogReceiverPOA logReceiverPOA)
|
void |
setCORBALogLevel(short logLevel)
|
| Methods inherited from class com.dynalivery.saffron.client.SaffronClient |
createSaffronClient, createSaffronCORBAClient, createSaffronEJBClient, createSaffronEmbeddedClient, getAppServerVendor, getServerName, getServerPortString, getServerType, getUserName, log, log, setClientLogService, validateServerName, validateServerPort |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.omg.CORBA.ORB orb
protected static org.omg.PortableServer.POA poa
protected com.dynalivery.server.DynaliveryServer dynaliveryServer
protected com.dynalivery.server.output.OutputService outputService
protected com.dynalivery.server.output.OutputJob outputJob
protected com.dynalivery.server.log.LogReceiver logReceiver
protected com.dynalivery.saffron.client.remoteclassloader.RemoteClassLoaderImp remoteClassLoaderImp
protected java.lang.String remoteClassLoaderIOR
| Constructor Detail |
public SaffronCORBAClient(java.util.Properties properties)
throws SaffronClientException
| Method Detail |
public void connect(java.lang.String userName,
java.lang.String password)
throws SaffronClientException
connect in class SaffronClientuserName - the user name string for the current userpassword - the password string for the current user in clear text
AuthenticationException - thrown if username/password is invalid
ServerUnavailableException - thrown if server is not available
SaffronSecurityException - thrown if the specified user is not granted access to the Saffron
InvalidParameterException - thrown if any of the parameters to this method are invalid
SaffronClientExceptionpublic void disconnect()
disconnect in class SaffronClientpublic boolean isConnected()
isConnected in class SaffronClientpublic boolean canAbortJob()
canAbortJob in class SaffronClientpublic void abortJob()
abortJob in class SaffronClientprotected java.lang.String getRemoteClassLoaderIOR()
public void export(FormatOptions formatOptions,
SaffronInputSource[] inputSources,
DestinationOptions destinationOptions)
throws SaffronClientException
export in class SaffronClientformatOptions - the FormatOptions for this exportinputSources - a SaffronInputSource array defining the documents to be exporteddestinationOptions - the DestinationOptions for this export
SaffronClientException
public com.dynalivery.common.IdentifierPair[] getFormatList()
throws SaffronClientException
getFormatList in class SaffronClientSaffronClientException
public com.dynalivery.common.IdentifierPair[] getDestinationList(int fid)
throws SaffronClientException
getDestinationList in class SaffronClientfid - the format Id for which we need the list of destinations.
SaffronClientException
protected void connectInternal(java.lang.String userName,
java.lang.String password)
throws SaffronClientException
userName - the user name string for the current userpassword - the password string for the current user in clear text
InvalidParameterException - thrown if any of the parameters to this method are invalid
SaffronClientException
public void setCORBALog(com.dynalivery.server.log.LogReceiverPOA logReceiverPOA)
throws org.omg.PortableServer.POAPackage.ServantAlreadyActive,
org.omg.PortableServer.POAPackage.ObjectNotActive,
org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ServantAlreadyActive
org.omg.PortableServer.POAPackage.ObjectNotActive
org.omg.PortableServer.POAPackage.WrongPolicypublic void setCORBALogLevel(short logLevel)
public static void releaseCORBALog(com.dynalivery.server.log.LogReceiverPOA logReceiverPOA)
protected java.lang.String getIOR()
throws SaffronServerUnavailableException,
SaffronServerConnectionException,
java.io.IOException
SaffronServerUnavailableException
SaffronServerConnectionException
java.io.IOExceptionpublic static org.omg.PortableServer.POA getPOA()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||