public interface PresContentClient
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_TYPE
Pres-content content type
|
static java.lang.String |
DOCUMENT_FORMAT
Pres-content uri format
|
static java.lang.String |
NAMESPACE
Pres-content namespace
|
Modifier and Type | Method and Description |
---|---|
void |
deletePresContent(java.lang.String imageName)
Deletes the pres-content from the server.
|
byte[] |
getImage(java.net.URI imageUri)
Gets image from the specified uri.
|
ContentType |
getPresContent(java.lang.String imageName)
Gets the pres-content from the server.
|
java.net.URI |
getPresContentImageUri(java.lang.String imageName)
Gets the pres-content image uri.
|
void |
putPresContent(ContentType content,
java.lang.String imageName)
Puts the pres-content to the server.
|
static final java.lang.String CONTENT_TYPE
static final java.lang.String NAMESPACE
static final java.lang.String DOCUMENT_FORMAT
void putPresContent(ContentType content, java.lang.String imageName) throws XCapException
content
- the pres-content to be saved on the server.imageName
- the image name under which pres-content would be saved.java.lang.IllegalStateException
- if the user has not been connected.XCapException
- if there is some error during operation.ContentType getPresContent(java.lang.String imageName) throws XCapException
imageName
- the image name under which pres-content is saved.java.lang.IllegalStateException
- if the user has not been connected.XCapException
- if there is some error during operation.void deletePresContent(java.lang.String imageName) throws XCapException
imageName
- the image name under which pres-content is saved.java.lang.IllegalStateException
- if the user has not been connected.XCapException
- if there is some error during operation.java.net.URI getPresContentImageUri(java.lang.String imageName)
imageName
- the image name under which pres-content is saved.java.lang.IllegalStateException
- if the user has not been connected.byte[] getImage(java.net.URI imageUri) throws XCapException
imageUri
- the image uri.XCapException
- if there is some error during operation.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.