Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip.xcap.model.xcaperror
Class NoParentType

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.sip.xcap.model.xcaperror.BaseXCapError
      extended by net.java.sip.communicator.impl.protocol.sip.xcap.model.xcaperror.NoParentType
All Implemented Interfaces:
XCapError

public class NoParentType
extends BaseXCapError

The XCAP no-parent element. Indicates that an attempt to insert a document, element, or attribute failed because the directory, document, or element into which the insertion was supposed to occur does not exist. This error element can contain an optional ancestor element, which provides an HTTP URI that represents the closest parent that would be a valid point of insertion. This HTTP URI MAY be a relative URI, relative to the document itself. Because this is a valid HTTP URI, its node selector component MUST be percent-encoded.

Compliant with rfc4825

Author:
Grigorii Balutsel

Field Summary
protected  String ancestor
          The ancestor element.
 
Constructor Summary
NoParentType()
           
NoParentType(String phrase)
          Creates the XCAP no-parent error with phrase attribute.
 
Method Summary
 String getAncestor()
          Gets the phrase attribute.
(package private)  void setAncestor(String ancestor)
          Sets the value of the ancestor property.
 
Methods inherited from class net.java.sip.communicator.impl.protocol.sip.xcap.model.xcaperror.BaseXCapError
getPhrase, setPhrase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ancestor

protected String ancestor
The ancestor element. HTTP uri that represents the closest parent that would be a valid point of insertion.

Constructor Detail

NoParentType

NoParentType()

NoParentType

public NoParentType(String phrase)
Creates the XCAP no-parent error with phrase attribute.

Parameters:
phrase - the phrase to set.
Method Detail

getAncestor

public String getAncestor()
Gets the phrase attribute.

Returns:
User readable error description.

setAncestor

void setAncestor(String ancestor)
Sets the value of the ancestor property.

Parameters:
ancestor - the ancestor to set.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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