net.java.sip.communicator.impl.protocol.sip.xcap.model.xcaperror
Class NoParentType
java.lang.Object
net.java.sip.communicator.impl.protocol.sip.xcap.model.xcaperror.BaseXCapError
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ancestor
protected String ancestor
- The ancestor element. HTTP uri that represents the closest parent that
would be a valid point of insertion.
NoParentType
NoParentType()
NoParentType
public NoParentType(String phrase)
- Creates the XCAP no-parent error with phrase attribute.
- Parameters:
phrase - the phrase to set.
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.
Distributable under LGPL license.