public class XcapClientImpl extends Object implements XcapClient
XcapClient.| Constructor and Description |
|---|
XcapClientImpl() |
| 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.
|
CredentialsFactoryImpl |
getCredentialsFactory()
Retrieves the request authentication credentials factory.
|
HeaderFactoryImpl |
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.
|
public CredentialsFactoryImpl getCredentialsFactory()
XcapClientgetCredentialsFactory in interface XcapClientpublic HeaderFactoryImpl getHeaderFactory()
XcapClientgetHeaderFactory in interface XcapClientpublic void setAuthenticationCredentials(Credentials credentials)
XcapClientsetAuthenticationCredentials in interface XcapClientpublic void unsetAuthenticationCredentials()
XcapClientunsetAuthenticationCredentials in interface XcapClientpublic void shutdown()
XcapClientshutdown in interface XcapClientpublic XcapResponse get(URI uri, Header[] additionalRequestHeaders, Credentials credentials) throws IOException
XcapClientget in interface XcapClienturi - the request uriadditionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic XcapResponse put(URI uri, String mimetype, String content, Header[] additionalRequestHeaders, Credentials credentials) throws IOException
XcapClientput in interface XcapClienturi - 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.additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic XcapResponse putIfMatch(URI uri, String eTag, String mimetype, String content, Header[] additionalRequestHeaders, Credentials credentials) throws IOException
XcapClientputIfMatch in interface XcapClienturi - 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.additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic XcapResponse putIfNoneMatch(URI uri, String eTag, String mimetype, String content, Header[] additionalRequestHeaders, Credentials credentials) throws IOException
XcapClientputIfNoneMatch in interface XcapClienturi - 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.additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic XcapResponse put(URI uri, String mimetype, byte[] content, Header[] additionalRequestHeaders, Credentials credentials) throws IOException
XcapClientput in interface XcapClienturi - 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.additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic XcapResponse putIfMatch(URI uri, String eTag, String mimetype, byte[] content, Header[] additionalRequestHeaders, Credentials credentials) throws IOException
XcapClientputIfMatch in interface XcapClienturi - 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.additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic XcapResponse putIfNoneMatch(URI uri, String eTag, String mimetype, byte[] content, Header[] additionalRequestHeaders, Credentials credentials) throws IOException
XcapClientputIfNoneMatch in interface XcapClienturi - 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.additionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic XcapResponse delete(URI uri, Header[] additionalRequestHeaders, Credentials credentials) throws IOException
XcapClientdelete in interface XcapClienturi - the request uriadditionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic XcapResponse deleteIfMatch(URI uri, String eTag, Header[] additionalRequestHeaders, Credentials credentials) throws IOException
XcapClientdeleteIfMatch in interface XcapClienturi - the request uriadditionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionpublic XcapResponse deleteIfNoneMatch(URI uri, String eTag, Header[] additionalRequestHeaders, Credentials credentials) throws IOException
XcapClientdeleteIfNoneMatch in interface XcapClienturi - the request uriadditionalRequestHeaders - additional headers to include in the XCAP requestcredentials - authentication credentials, can be null for requests that
don't need authentication.IOExceptionCopyright © 2016. All rights reserved.