|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SWORDClient
Interface for any SWORD client implementation.
| Method Summary | |
|---|---|
void |
clearCredentials()
Clear the credentials settings on the client. |
ServiceDocument |
getServiceDocument(String url)
Get a service document, specified in the URL. |
ServiceDocument |
getServiceDocument(String url,
String onBehalfOf)
Get a service document, specified in the URL. |
Status |
getStatus()
Get the status result returned from the most recent network test. |
DepositResponse |
postFile(PostMessage message)
Post a file to the specified destination URL. |
void |
setCredentials(String username,
String password)
Set the user credentials that are to be used for subsequent accesses. |
void |
setProxy(String host,
int port)
Set the proxy that is to be used for subsequent accesses. |
void |
setServer(String server,
int port)
Set the server that is to be contacted on the next access. |
| Method Detail |
|---|
void setServer(String server,
int port)
server - The name of the server, e.g. www.aber.ac.ukport - The port number, e.g. 80.
void setCredentials(String username,
String password)
username - The username.password - The password.void clearCredentials()
void setProxy(String host,
int port)
host - The host name, e.g. cache.host.com.port - The port, e.g. 8080.Status getStatus()
ServiceDocument getServiceDocument(String url)
throws SWORDClientException
url - The URL to connect to.
SWORDClientException - If there is an error accessing the
URL.
ServiceDocument getServiceDocument(String url,
String onBehalfOf)
throws SWORDClientException
url - The URL to connect to.onBehalfOf - The username for the onBehalfOf access.
SWORDClientException - If there is an error accessing the
URL.
DepositResponse postFile(PostMessage message)
throws SWORDClientException
message - The message that defines the requirements for the operation.
null should be returned.
SWORDClientException - If there is an error accessing the URL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||