|
||||||||||
| 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.SaffronEJBClient
This is an implementation of Saffron client based on Enterprise Java Beans. This will contain code common to all EJB implementations. Variations between EJB servers will be encapsulated as much as possible in classes extending this class such as SaffronJBossEJBClient
| Field Summary | |
protected com.dynalivery.saffron.ejb.Saffron |
saffron
This is the reference to the Saffron EJB session bean used to perform all server operations. |
| 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 | |
SaffronEJBClient(java.util.Properties properties,
java.lang.String appServerVendor)
construct an EJB-based Saffron server |
|
| Method Summary | |
void |
abortJob()
Abort the active job if possible |
boolean |
canAbortJob()
Returns true if we can abort an active job |
void |
disconnect()
Disconnect from Saffron EJB server. |
protected void |
ensureSessionReference()
Ensure session bean reference is still valid. |
protected byte[] |
export(FormatOptions formatOptions,
SaffronEJBSource[] ejbSources)
Export one or more files to a byte array |
protected void |
export(FormatOptions formatOptions,
SaffronEJBSource[] ejbSources,
DestinationOptions destinationOptions)
Export one or more files |
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 abstract com.dynalivery.saffron.ejb.Saffron |
getSessionReference(java.lang.String serverName,
java.lang.String userName,
java.lang.String password)
|
boolean |
isConnected()
Returns true if we are connected to Saffron |
protected static java.lang.String |
stripStackTrace(java.lang.String message)
Strip server stack trace Exceptions thrown on the server side may include a stacktrace in the message. |
protected static void |
throwNewInvalidParameterException(InvalidParameterException exception)
Throw new InvalidParameterException Exceptions thrown on the server side may include a stacktrace in the message. |
protected static void |
throwNewSaffronSecurityException(SaffronSecurityException exception)
Throw new SaffronSecurityException Exceptions thrown on the server side may include a stacktrace in the message. |
| Methods inherited from class com.dynalivery.saffron.client.SaffronClient |
connect, createSaffronClient, createSaffronCORBAClient, createSaffronEJBClient, createSaffronEmbeddedClient, getAppServerVendor, getPrintersByName, 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 com.dynalivery.saffron.ejb.Saffron saffron
| Constructor Detail |
public SaffronEJBClient(java.util.Properties properties,
java.lang.String appServerVendor)
throws SaffronClientException
| Method Detail |
public void disconnect()
disconnect in class SaffronClientpublic boolean isConnected()
isConnected in class SaffronClientpublic boolean canAbortJob()
canAbortJob in class SaffronClientpublic void abortJob()
abortJob in class SaffronClient
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 export(FormatOptions formatOptions,
SaffronEJBSource[] ejbSources,
DestinationOptions destinationOptions)
formatOptions - the FormatOptions for this exportejbSources - an array of SaffronEJBSource objectsdestinationOptions - the DestinationOptions for this export
protected byte[] export(FormatOptions formatOptions,
SaffronEJBSource[] ejbSources)
formatOptions - the FormatOptions for this exportejbSources - an array of SaffronEJBSource objects
protected abstract com.dynalivery.saffron.ejb.Saffron getSessionReference(java.lang.String serverName,
java.lang.String userName,
java.lang.String password)
throws AuthenticationException,
java.rmi.RemoteException,
javax.ejb.CreateException,
javax.naming.NamingException,
InvalidParameterException,
SaffronServerUnavailableException,
javax.security.auth.login.LoginException
AuthenticationException
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException
InvalidParameterException
SaffronServerUnavailableException
javax.security.auth.login.LoginExceptionprotected void ensureSessionReference()
protected static java.lang.String stripStackTrace(java.lang.String message)
message - the message String to be modified
protected static void throwNewSaffronSecurityException(SaffronSecurityException exception)
throws SaffronSecurityException
exception - the exception being thrown
SaffronSecurityException
protected static void throwNewInvalidParameterException(InvalidParameterException exception)
throws InvalidParameterException
exception - the exception being thrown
InvalidParameterException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||