public interface XcapClient
| Modifier and Type | Method and Description |
|---|---|
XcapResponse |
delete(URI uri,
Header[] additionalRequestHeaders,
Credentials credentials)
Deletes the content related the specified XCAP URI uri.
|
XcapResponse |
deleteIfMatch(URI uri,
String eTag,
Header[] additionalRequestHeaders,
Credentials credentials)
Deletes the content related the specified XCAP URI uri, if the specified
ETag matches the current one on the server.
|
XcapResponse |
deleteIfNoneMatch(URI uri,
String eTag,
Header[] additionalRequestHeaders,
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(URI uri,
Header[] additionalRequestHeaders,
Credentials credentials)
Retrieves the XML resource from the XCAP server, for the specified uri.
|
CredentialsFactory |
getCredentialsFactory()
Retrieves the request authentication credentials factory.
|
HeaderFactory |
getHeaderFactory()
Retrieves the request's header factory.
|
XcapResponse |
put(URI uri,
String mimetype,
byte[] content,
Header[] additionalRequestHeaders,
Credentials credentials)
Puts the specified content in the XCAP Server, in the XCAP URI pointed by
the uri.
|
XcapResponse |
put(URI uri,
String mimetype,
String content,
Header[] additionalRequestHeaders,
Credentials credentials)
Puts the specified content in the XCAP Server, in the XCAP URI pointed by
the uri.
|
XcapResponse |
putIfMatch(URI uri,
String eTag,
String mimetype,
byte[] content,
Header[] additionalRequestHeaders,
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(URI uri,
String eTag,
String mimetype,
String content,
Header[] additionalRequestHeaders,
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(URI uri,
String eTag,
String mimetype,
byte[] content,
Header[] additionalRequestHeaders,
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(URI uri,
String eTag,
String mimetype,
String content,
Header[] additionalRequestHeaders,
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(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.
|
XcapResponse delete(URI uri, Header[] additionalRequestHeaders, Credentials credentials) throws 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.IOExceptionXcapResponse deleteIfMatch(URI uri, String eTag, Header[] additionalRequestHeaders, Credentials credentials) throws 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.IOExceptionXcapResponse deleteIfNoneMatch(URI uri, String eTag, Header[] additionalRequestHeaders, Credentials credentials) throws 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.IOExceptionXcapResponse get(URI uri, Header[] additionalRequestHeaders, Credentials credentials) throws 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.IOExceptionCredentialsFactory getCredentialsFactory()
HeaderFactory getHeaderFactory()
XcapResponse put(URI uri, String mimetype, byte[] content, Header[] additionalRequestHeaders, Credentials credentials) throws 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.IOExceptionXcapResponse put(URI uri, String mimetype, String content, Header[] additionalRequestHeaders, Credentials credentials) throws 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.IOExceptionXcapResponse putIfMatch(URI uri, String eTag, String mimetype, byte[] content, Header[] additionalRequestHeaders, Credentials credentials) throws 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.IOExceptionXcapResponse putIfMatch(URI uri, String eTag, String mimetype, String content, Header[] additionalRequestHeaders, Credentials credentials) throws 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.IOExceptionXcapResponse putIfNoneMatch(URI uri, String eTag, String mimetype, byte[] content, Header[] additionalRequestHeaders, Credentials credentials) throws 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.IOExceptionXcapResponse putIfNoneMatch(URI uri, String eTag, String mimetype, String content, Header[] additionalRequestHeaders, Credentials credentials) throws 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.IOExceptionvoid setAuthenticationCredentials(Credentials credentials)
credentials - void shutdown()
void unsetAuthenticationCredentials()
Copyright © 2016. All Rights Reserved.