Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip.xcap
Class XCapResourceId

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.sip.xcap.XCapResourceId

public class XCapResourceId
extends Object

XCAP resource identifier.

Author:
Grigorii Balutsel

Constructor Summary
XCapResourceId(String document)
          Creates XCAP resource identifier with document selector.
XCapResourceId(String document, String node)
          Creates XCAP resource identifier with document and node selector.
 
Method Summary
static XCapResourceId create(String resourceId)
          Creates XCAP resource identifier object from single string.
 String getDocument()
          Gets document selector.
 String getNode()
          Gets node selector.
 String toString()
          Gets XCAP resource identifier object as single string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XCapResourceId

public XCapResourceId(String document)
Creates XCAP resource identifier with document selector.

Parameters:
document - the document selector.

XCapResourceId

public XCapResourceId(String document,
                      String node)
Creates XCAP resource identifier with document and node selector.

Parameters:
document - the document selector.
node - the node selector.
Method Detail

getDocument

public String getDocument()
Gets document selector.

Returns:
the document selector.

getNode

public String getNode()
Gets node selector.

Returns:
the node selector.

toString

public String toString()
Gets XCAP resource identifier object as single string.

Overrides:
toString in class Object
Returns:
the XCAP resource identifier object as single string.

create

public static XCapResourceId create(String resourceId)
Creates XCAP resource identifier object from single string.

Parameters:
resourceId - the XCAP resource identifier as single string.
Returns:
the XCAP resource identifier.
Throws:
IllegalArgumentException - if resourceId is null or emty or has invalid format.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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