Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip.xcap
Interface PresContentClient

All Known Subinterfaces:
XCapClient
All Known Implementing Classes:
XCapClientImpl

public interface PresContentClient

XCAP pres-content client interface.

Compliant with Presence Content XDM Specification v1.0

Author:
Grigorii Balutsel

Field Summary
static String CONTENT_TYPE
          Pres-content content type
static String DOCUMENT_FORMAT
          Pres-content uri format
static String NAMESPACE
          Pres-content namespace
 
Method Summary
 void deletePresContent(String imageName)
          Deletes the pres-content from the server.
 byte[] getImage(URI imageUri)
          Gets image from the specified uri.
 ContentType getPresContent(String imageName)
          Gets the pres-content from the server.
 URI getPresContentImageUri(String imageName)
          Gets the pres-content image uri.
 void putPresContent(ContentType content, String imageName)
          Puts the pres-content to the server.
 

Field Detail

CONTENT_TYPE

static final String CONTENT_TYPE
Pres-content content type

See Also:
Constant Field Values

NAMESPACE

static final String NAMESPACE
Pres-content namespace

See Also:
Constant Field Values

DOCUMENT_FORMAT

static final String DOCUMENT_FORMAT
Pres-content uri format

See Also:
Constant Field Values
Method Detail

putPresContent

void putPresContent(ContentType content,
                    String imageName)
                    throws XCapException
Puts the pres-content to the server.

Parameters:
content - the pres-content to be saved on the server.
imageName - the image name under which pres-content would be saved.
Throws:
IllegalStateException - if the user has not been connected.
XCapException - if there is some error during operation.

getPresContent

ContentType getPresContent(String imageName)
                           throws XCapException
Gets the pres-content from the server.

Parameters:
imageName - the image name under which pres-content is saved.
Returns:
the pres-content or null if there is no pres-content on the server.
Throws:
IllegalStateException - if the user has not been connected.
XCapException - if there is some error during operation.

deletePresContent

void deletePresContent(String imageName)
                       throws XCapException
Deletes the pres-content from the server.

Parameters:
imageName - the image name under which pres-content is saved.
Throws:
IllegalStateException - if the user has not been connected.
XCapException - if there is some error during operation.

getPresContentImageUri

URI getPresContentImageUri(String imageName)
Gets the pres-content image uri.

Parameters:
imageName - the image name under which pres-content is saved.
Returns:
the pres-content image uri.
Throws:
IllegalStateException - if the user has not been connected.

getImage

byte[] getImage(URI imageUri)
                throws XCapException
Gets image from the specified uri.

Parameters:
imageUri - the image uri.
Returns:
the image.
Throws:
XCapException - if there is some error during operation.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.