|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XcapClient
| Method Summary | |
|---|---|
XcapResponse |
delete(java.net.URI uri,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
Deletes the content related the specified XCAP URI uri. |
XcapResponse |
deleteIfMatch(java.net.URI uri,
java.lang.String eTag,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
Deletes the content related the specified XCAP URI uri, if the specified ETag matches the current one on the server. |
XcapResponse |
deleteIfNoneMatch(java.net.URI uri,
java.lang.String eTag,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
Deletes the content related the specified XCAP URI uri, if the specified ETag does not matches the current one on the server. |
XcapResponse |
get(java.net.URI uri,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
Retrieves the XML resource from the XCAP server, for the specified uri. |
XcapResponse |
put(java.net.URI uri,
java.lang.String mimetype,
byte[] content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
Puts the specified content in the XCAP Server, in the XCAP URI pointed by the uri. |
XcapResponse |
put(java.net.URI uri,
java.lang.String mimetype,
java.lang.String content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
Puts the specified content in the XCAP Server, in the XCAP URI pointed by the uri. |
XcapResponse |
putIfMatch(java.net.URI uri,
java.lang.String eTag,
java.lang.String mimetype,
byte[] content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
Puts the specified content in the XCAP Server, in the XCAP URI pointed by the uri, if the specified ETag matches the current one on the server. |
XcapResponse |
putIfMatch(java.net.URI uri,
java.lang.String eTag,
java.lang.String mimetype,
java.lang.String content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
Puts the specified content in the XCAP Server, in the XCAP URI pointed by the uri, if the specified ETag matches the current one on the server. |
XcapResponse |
putIfNoneMatch(java.net.URI uri,
java.lang.String eTag,
java.lang.String mimetype,
byte[] content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
Puts the specified content in the XCAP Server, in the XCAP URI pointed by the uri, if the specified ETag does not matches the current one on the server. |
XcapResponse |
putIfNoneMatch(java.net.URI uri,
java.lang.String eTag,
java.lang.String mimetype,
java.lang.String content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
Puts the specified content in the XCAP Server, in the XCAP URI pointed by the uri, if the specified ETag does not matches the current one on the server. |
void |
setAuthenticationCredentials(org.apache.http.auth.Credentials credentials)
Sets the global authentication credentials, those will be used when there are no credentials for the request. |
void |
shutdown()
Shutdown the client. |
void |
unsetAuthenticationCredentials()
Unsets the authentication credentials. |
| Method Detail |
|---|
void setAuthenticationCredentials(org.apache.http.auth.Credentials credentials)
credentials - void unsetAuthenticationCredentials()
void shutdown()
XcapResponse get(java.net.URI uri,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
uri - the request uriadditionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.
org.apache.http.client.ClientProtocolException
java.io.IOException
XcapResponse put(java.net.URI uri,
java.lang.String mimetype,
java.lang.String content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
uri - the request urimimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.content - additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.
org.apache.http.client.ClientProtocolException
java.io.IOException
XcapResponse put(java.net.URI uri,
java.lang.String mimetype,
byte[] content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
uri - the request urimimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.content - additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.
org.apache.http.client.ClientProtocolException
java.io.IOException
XcapResponse putIfMatch(java.net.URI uri,
java.lang.String eTag,
java.lang.String mimetype,
java.lang.String content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
uri - the request urieTag - mimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.content - additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.
org.apache.http.client.ClientProtocolException
java.io.IOException
XcapResponse putIfMatch(java.net.URI uri,
java.lang.String eTag,
java.lang.String mimetype,
byte[] content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
uri - the request urieTag - mimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.content - additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.
org.apache.http.client.ClientProtocolException
java.io.IOException
XcapResponse putIfNoneMatch(java.net.URI uri,
java.lang.String eTag,
java.lang.String mimetype,
java.lang.String content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
uri - the request urieTag - mimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.content - additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.
org.apache.http.client.ClientProtocolException
java.io.IOException
XcapResponse putIfNoneMatch(java.net.URI uri,
java.lang.String eTag,
java.lang.String mimetype,
byte[] content,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
uri - the request urieTag - mimetype - the mimetype of the content to put, for document each XCAP App
Usage defines their own mimetype, but for elements and
attributes you can use ElementResource and
AttributeResource static MIMETYPE fields.content - additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.
org.apache.http.client.ClientProtocolException
java.io.IOException
XcapResponse delete(java.net.URI uri,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
uri - the request uriadditionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.
org.apache.http.client.ClientProtocolException
java.io.IOException
XcapResponse deleteIfMatch(java.net.URI uri,
java.lang.String eTag,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
uri - the request urieTag - additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.
org.apache.http.client.ClientProtocolException
java.io.IOException
XcapResponse deleteIfNoneMatch(java.net.URI uri,
java.lang.String eTag,
org.apache.http.Header[] additionalRequestHeaders,
org.apache.http.auth.Credentials credentials)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException
uri - the request urieTag - additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.
org.apache.http.client.ClientProtocolException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||