Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

All Known Subinterfaces:
XCapClient
All Known Implementing Classes:
XCapClientImpl

public interface PresRulesClient

XCAP pres-rules client interface.

Compliant with rfc4745, rfc5025

Author:
Grigorii Balutsel

Field Summary
static String CONTENT_TYPE
          Pres-rules content type
static String DOCUMENT_FORMAT
          Pres-rules uri format
static String NAMESPACE
          Pres-rules namespace
 
Method Summary
 void deletePresRules()
          Deletes the pres-rules from the server.
 RulesetType getPresRules()
          Gets the pres-rules from the server.
 void putPresRules(RulesetType presRules)
          Puts the pres-rules to the server.
 

Field Detail

DOCUMENT_FORMAT

static final String DOCUMENT_FORMAT
Pres-rules uri format

See Also:
Constant Field Values

CONTENT_TYPE

static final String CONTENT_TYPE
Pres-rules content type

See Also:
Constant Field Values

NAMESPACE

static final String NAMESPACE
Pres-rules namespace

See Also:
Constant Field Values
Method Detail

putPresRules

void putPresRules(RulesetType presRules)
                  throws XCapException
Puts the pres-rules to the server.

Parameters:
presRules - the pres-rules to be saved on the server.
Throws:
IllegalStateException - if the user has not been connected.
XCapException - if there is some error during operation.

getPresRules

RulesetType getPresRules()
                         throws XCapException
Gets the pres-rules from the server.

Returns:
the pres-rules.
Throws:
IllegalStateException - if the user has not been connected.
XCapException - if there is some error during operation.

deletePresRules

void deletePresRules()
                     throws XCapException
Deletes the pres-rules from the server.

Throws:
IllegalStateException - if the user has not been connected.
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.