Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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.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

Nested Class Summary
static class UniquenessFailureType.ExistsType
          The XCAP exists element.
 
Field Summary
protected  List<UniquenessFailureType.ExistsType> exists
          The list of exists elements.
 
Constructor Summary
UniquenessFailureType()
          Creates the XCAP uniqueness-failure error.
UniquenessFailureType(String phrase)
          Creates the XCAP uniqueness-failure error with phrase attribute.
 
Method Summary
 List<UniquenessFailureType.ExistsType> getExists()
          Gets the exists attribute.
 
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

exists

protected List<UniquenessFailureType.ExistsType> exists
The list of exists elements.

Constructor Detail

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.
Method Detail

getExists

public List<UniquenessFailureType.ExistsType> getExists()
Gets the exists attribute.

Returns:
the exists property.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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