|
||||||||||
| 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.SaffronEmbeddedClient
This is an implementation of the Saffron client using an embedded Saffron server.
| Field Summary | |
protected com.dynalivery.output.FormatListManager |
formatListManager
|
protected com.dynalivery.output.Formatter |
formatter
|
| 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 | |
SaffronEmbeddedClient(java.util.Properties properties)
construct an embedded 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 embedded server |
void |
disconnect()
Disconnect from the Saffron embedded 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 |
boolean |
isConnected()
Returns true if we are connected to Saffron |
| 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 com.dynalivery.output.Formatter formatter
protected com.dynalivery.output.FormatListManager formatListManager
| Constructor Detail |
public SaffronEmbeddedClient(java.util.Properties properties)
throws SaffronClientException
| Method Detail |
public void connect(java.lang.String userName,
java.lang.String password)
throws AuthenticationException,
SaffronSecurityException,
UnexpectedServerException,
SaffronServerUnavailableException,
InvalidParameterException
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
UnexpectedServerException
SaffronServerUnavailableExceptionpublic 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||