|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.xcap.client.impl.XcapClientImpl
public class XcapClientImpl
Impl of the XcapClient.
| Constructor Summary | |
|---|---|
XcapClientImpl()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XcapClientImpl()
| Method Detail |
|---|
public void setAuthenticationCredentials(org.apache.http.auth.Credentials credentials)
XcapClient
setAuthenticationCredentials in interface XcapClientpublic void unsetAuthenticationCredentials()
XcapClient
unsetAuthenticationCredentials in interface XcapClientpublic void shutdown()
XcapClient
shutdown in interface XcapClient
public 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
XcapClient
get 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.
org.apache.http.client.ClientProtocolException
java.io.IOException
public 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
XcapClient
put 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.
org.apache.http.client.ClientProtocolException
java.io.IOException
public 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
XcapClient
putIfMatch 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.
org.apache.http.client.ClientProtocolException
java.io.IOException
public 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
XcapClient
putIfNoneMatch 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.
org.apache.http.client.ClientProtocolException
java.io.IOException
public 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
XcapClient
put 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.
org.apache.http.client.ClientProtocolException
java.io.IOException
public 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
XcapClient
putIfMatch 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.
org.apache.http.client.ClientProtocolException
java.io.IOException
public 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
XcapClient
putIfNoneMatch 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.
org.apache.http.client.ClientProtocolException
java.io.IOException
public 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
XcapClient
delete 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.
org.apache.http.client.ClientProtocolException
java.io.IOException
public 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
XcapClient
deleteIfMatch 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.
org.apache.http.client.ClientProtocolException
java.io.IOException
public 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
XcapClient
deleteIfNoneMatch 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.
org.apache.http.client.ClientProtocolException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||