public interface HttpXCapClient
Modifier and Type | Method and Description |
---|---|
void |
connect(java.net.URI uri,
javax.sip.address.Address userAddress,
java.lang.String username,
java.lang.String password)
Connects user to XCAP server.
|
XCapHttpResponse |
delete(XCapResourceId resourceId)
Deletes the resource from the server.
|
void |
disconnect()
Disconnects user from the XCAP server.
|
XCapHttpResponse |
get(XCapResourceId resourceId)
Gets the resource from the server.
|
java.net.URI |
getUri()
Gets the XCAP server location.
|
java.lang.String |
getUserName()
Gets connected user name.
|
boolean |
isConnected()
Checks if user is connected to the XCAP server.
|
XCapHttpResponse |
put(XCapResource resource)
Puts the resource to the server.
|
void connect(java.net.URI uri, javax.sip.address.Address userAddress, java.lang.String username, java.lang.String password) throws XCapException
uri
- the server location.userAddress
- the URI of the user used for requestsusername
- the user name.password
- the user password.XCapException
- if there is some error during operation.void disconnect()
boolean isConnected()
XCapHttpResponse get(XCapResourceId resourceId) throws XCapException
resourceId
- resource identifier.java.lang.IllegalStateException
- if the user has not been connected.XCapException
- if there is some error during operation.XCapHttpResponse put(XCapResource resource) throws XCapException
resource
- the resource to be saved on the server.java.lang.IllegalStateException
- if the user has not been connected.XCapException
- if there is some error during operation.XCapHttpResponse delete(XCapResourceId resourceId) throws XCapException
resourceId
- resource identifier.java.lang.IllegalStateException
- if the user has not been connected.XCapException
- if there is some error during operation.java.lang.String getUserName()
java.net.URI getUri()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.