public class StatusCode extends XMLElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REQUEST_DENIED
Second-level status code meaning that the responder is able to process the request but has chosen not to respond.
|
static java.lang.String |
REQUEST_VERSION_DEPRECATED
Second-level status code meaning that the responder does not respond to any requests with the protocol version specified in the request.
|
static java.lang.String |
REQUEST_VERSION_TOO_HIGH
Second-level status code meaning that the protocol version specified in the request is a mjor upgrade from the highest protocol version supported by the responder.
|
static java.lang.String |
REQUEST_VERSION_TOO_LOW
Second-level status code meaning that the responder cannot respond to the particular request using the SAML version specified in the request because it is too low.
|
static java.lang.String |
REQUESTER
Top-level status code meaning that the request could not be performed due to an error in the sender or in the request.
|
static java.lang.String |
RESOURCE_NOT_RECOGNIZED
Second-level status code meaning that the responder does not wish to support resource specific attribute queries, or the resource value provided is invalid or unrecognized
|
static java.lang.String |
RESPONDER
Top-level status code meaning that the request could not be performed due to an error at the receiving end.
|
static java.lang.String |
SUCCESS
Top-level status code meaning that the request succeeded.
|
static java.lang.String |
TOO_MANY_RESPONSES
Second-level status code meaning that the response would contain more elements than the responder will return.
|
static java.lang.String |
VERSION_MISMATCH
Top-level status code meaning that the receiver could not process the request because the version was incorrect.
|
Constructor and Description |
---|
StatusCode(org.w3c.dom.Document owner)
Creates a new
StatusCode instance. |
StatusCode(org.w3c.dom.Element element)
Creates a new
StatusCode instance from the given Element node. |
StatusCode(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new
StatusCode instance from the given Element node. |
Modifier and Type | Method and Description |
---|---|
StatusCode |
getStatusCode()
Gest the subordinate status code.
|
QName |
getStatusCodeValue()
Gets the
Value attribute of this status code element. |
java.lang.String |
getValue()
Deprecated.
Use getStatusCodeValue instead
|
void |
setStatusCode(StatusCode statusCode)
Sets the subordinate status code.
|
void |
setStatusCodeValue(QName qname)
Sets the
Value attribute of this status code element as an XML QName. |
void |
setValue(java.lang.String value, java.lang.String namespace)
Deprecated.
Use setStatusCodeValue instead
|
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public static final java.lang.String SUCCESS
public static final java.lang.String VERSION_MISMATCH
public static final java.lang.String RESPONDER
public static final java.lang.String REQUESTER
public static final java.lang.String REQUEST_VERSION_TOO_HIGH
public static final java.lang.String REQUEST_VERSION_TOO_LOW
public static final java.lang.String REQUEST_VERSION_DEPRECATED
public static final java.lang.String TOO_MANY_RESPONSES
public static final java.lang.String REQUEST_DENIED
public static final java.lang.String RESOURCE_NOT_RECOGNIZED
public StatusCode(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
StatusCode
instance from the given Element node.org.w3c.dom.DOMException
public StatusCode(org.w3c.dom.Element element, java.lang.String systemId) throws org.w3c.dom.DOMException
StatusCode
instance from the given Element node.element
- A StatusCode element.systemId
- The URI string system ID for the Status
.org.w3c.dom.DOMException
public StatusCode(org.w3c.dom.Document owner) throws org.w3c.dom.DOMException
StatusCode
instance.owner
- The owner document of the new StatusCode.org.w3c.dom.DOMException
public void setValue(java.lang.String value, java.lang.String namespace)
Value
attribute of this status code element as an XML QName.localValue
- The local name of the QName value of this Value
attribute.namespace
- The namespace this status code value is in. If this parameter is not specified, the SAML protocol namespace is assumed.public java.lang.String getValue()
Value
attribute of this status code element.public void setStatusCodeValue(QName qname)
Value
attribute of this status code element as an XML QName.qname
- The QName value of this Value
attribute.public QName getStatusCodeValue()
Value
attribute of this status code element.public void setStatusCode(StatusCode statusCode)
statusCode
- A StatusCode
that will provide more specific information on an error condition.public StatusCode getStatusCode()
StatusCode
containing more specific information on an error condition.