net.java.sip.communicator.impl.protocol.sip.xcap.model.xcaperror
Class UniquenessFailureType
java.lang.Object
net.java.sip.communicator.impl.protocol.sip.xcap.model.xcaperror.BaseXCapError
net.java.sip.communicator.impl.protocol.sip.xcap.model.xcaperror.UniquenessFailureType
- All Implemented Interfaces:
- XCapError
public class UniquenessFailureType
- extends BaseXCapError
The XCAP uniqueness-failure element. Indicates that the requested operation
would result in a document that did not meet a uniqueness constraint defined
by the application usage. For each URI, element, or attribute specified by
the client that is not unique, an exists element is present as the content of
the error element. Each exists element has a "field" attribute that contains
a relative URI identifying the XML element or attribute whose value needs to
be unique, but wasn't. The relative URI is relative to the document itself,
and will therefore start with the root element. The query component of the
URI MUST be present if the node selector portion of the URI contains
namespace prefixes. Since the "field" node selector is a valid HTTP URI, it
MUST be percent-encoded. The exists element can optionally contain a list of
alt-value elements. Each one is a suggested alternate value that does not
currently exist on the server.
Compliant with rfc4825
- Author:
- Grigorii Balutsel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
exists
protected List<UniquenessFailureType.ExistsType> exists
- The list of exists elements.
UniquenessFailureType
UniquenessFailureType()
- Creates the XCAP uniqueness-failure error.
UniquenessFailureType
public UniquenessFailureType(String phrase)
- Creates the XCAP uniqueness-failure error with phrase attribute.
- Parameters:
phrase - the phrase to set.
getExists
public List<UniquenessFailureType.ExistsType> getExists()
- Gets the exists attribute.
- Returns:
- the exists property.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.