|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.client.CmdClient
public class CmdClient
Example implementation of a command line client. This can send out service document requests and print out the results and process posting a file to either a single or multiple destinations. The command line options are initialised prior to calling the class. The options are passed into the run(ClientOptions) method.
| Constructor Summary | |
|---|---|
CmdClient()
Create a new instance of the class and create an instance of the client. |
|
| Method Summary | |
|---|---|
void |
process()
Process the options that have been initialised from the command line. |
protected void |
processPost(PostMessage message)
Process the post response. |
void |
run(ClientOptions options)
Run the client and process the specified options. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmdClient()
| Method Detail |
|---|
public void process()
protected void processPost(PostMessage message)
throws SWORDClientException
SWORDClientException - if there is an error accessing the
post response.public void run(ClientOptions options)
run in interface ClientTypeoptions - The command line options.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||