|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uiuc.ndiipp.hubandspoke.lrcrud.client.LrcrudClient
public class LrcrudClient
| Nested Class Summary | |
|---|---|
class |
LrcrudClient.CreateResponse
This class represents the response an LRCRUD Create request |
class |
LrcrudClient.DeleteResponse
This class represents the response an LRCRUD Delete request |
class |
LrcrudClient.LrcrudResponse
This class represents a response returned by the LRCRUD service. |
class |
LrcrudClient.RetrieveResponse
This class represents the response an LRCRUD Retrieve request The zip file is available as a stream. |
class |
LrcrudClient.UpdateResponse
This class represents the response an LRCRUD Update request |
| Constructor Summary | |
|---|---|
LrcrudClient(java.lang.String url)
Creates a new instance of the LrcrudClient ready to communicate to the LRCRUD Service at the given URL. |
|
LrcrudClient(java.lang.String url,
java.net.Authenticator auth)
Creates a new instance of the LrcrudClient ready to communicate to the LRCRUD Service at the given URL. |
|
LrcrudClient(java.lang.String url,
java.lang.String uid,
java.lang.String pw)
Creates a new instance of the LrcrudClient ready to communicate to the LRCRUD Service at the given URL. |
|
| Method Summary | |
|---|---|
LrcrudClient.CreateResponse |
create(java.lang.String location)
Sends a request to the LRCRUD Service to create (POST) a new package |
LrcrudClient.DeleteResponse |
delete(java.lang.String identifier)
Sends a request to the LRCRUD Service to delete (DELETE) a package |
java.net.URI |
getBaseURL()
|
java.lang.String |
getFrom()
Returns the value used for the From HTTP request header |
java.lang.String |
getUserAgent()
Returns the value used for the User-Agent request header |
LrcrudClient.RetrieveResponse |
retrieve(java.lang.String identifier)
Sends a request to the LRCRUD service to retrieve (GET) a specific package |
void |
setFrom(java.lang.String from)
Sets the value used for the HTTP From request header. |
void |
setUserAgent(java.lang.String userAgent)
Sets the value used for the HTTP User-Agent request header. |
LrcrudClient.UpdateResponse |
update(java.lang.String identifier,
java.io.File f)
Sends a request to the LRCRUD Service to update (PUT) a new package |
LrcrudClient.UpdateResponse |
update(java.lang.String identifier,
java.lang.String source)
Sends a request to the LRCRUD Service to update (PUT) a new package |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LrcrudClient(java.lang.String url)
throws LrcrudClientException
url - an absolute URL giving the base location for the LRCRUD service
LrcrudClientException
public LrcrudClient(java.lang.String url,
java.lang.String uid,
java.lang.String pw)
throws LrcrudClientException
url - an absolute URL giving the base location for the LRCRUD serviceuid - the user id of a person authorized to use the servicepw - the password for the authorized user
LrcrudClientException
public LrcrudClient(java.lang.String url,
java.net.Authenticator auth)
throws LrcrudClientException
url - an absolute URL giving the base location for the LRCRUD serviceauth - an extension of Authenticator
LrcrudClientException| Method Detail |
|---|
public java.net.URI getBaseURL()
public LrcrudClient.CreateResponse create(java.lang.String location)
throws LrcrudClientException
location - the location in which the new package is to be created
LrcrudClientException
public LrcrudClient.RetrieveResponse retrieve(java.lang.String identifier)
throws LrcrudClientException
identifier - the identifier of the package to retrieve
LrcrudClientException
public LrcrudClient.UpdateResponse update(java.lang.String identifier,
java.lang.String source)
throws LrcrudClientException
identifier - the identifier of the package to updatesource - the location of the zip file which is to replace the current package
LrcrudClientException
public LrcrudClient.UpdateResponse update(java.lang.String identifier,
java.io.File f)
throws LrcrudClientException
identifier - the identifier of the package to updatef - file object representing the zip package
LrcrudClientExceptionpublic LrcrudClient.DeleteResponse delete(java.lang.String identifier)
identifier - the identifier of the package to deleted
public java.lang.String getFrom()
public java.lang.String getUserAgent()
public void setFrom(java.lang.String from)
from - the value to be used for the HTTP From request header.public void setUserAgent(java.lang.String userAgent)
userAgent - the value to be used with the HTTP User-Agent request header
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||