Class StatusImpl
java.lang.Object
com.sun.identity.xacml.context.impl.StatusImpl
- All Implemented Interfaces:
XmlSerializable
,Status
The
Status
element is a container of
one or more Status
s issuded by authorization authority.-
Constructor Summary
ConstructorDescriptionConstructs aStatus
objectStatusImpl
(String xml) Constructs aStatus
object from an XML stringStatusImpl
(Element element) Constructs aStatus
object from an XML DOM element -
Method Summary
Modifier and TypeMethodDescriptionReturns theStatusCode
of this objectReturns theStatusDetail
of this objectReturns theStatusMessage
of this objectboolean
Checks if the object is mutablevoid
Makes the object immutablevoid
setStatusCode
(StatusCode statusCode) Sets theStatusCode
of this objectvoid
setStatusDetail
(StatusDetail statusDetail) Sets theStatusDetail
of this objectvoid
setStatusMessage
(StatusMessage statusMessage) Sets theStatusMessage
of this objecttoDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) Serializes the element into an XMLDocumentFragment
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sun.identity.xacml.context.Status
toXMLString, toXMLString
-
Constructor Details
-
StatusImpl
Constructs aStatus
object- Throws:
XACMLException
-
StatusImpl
Constructs aStatus
object from an XML string- Parameters:
xml
- string representing aStatus
object- Throws:
XACMLException
- If the XML string could not be processed.
-
StatusImpl
Constructs aStatus
object from an XML DOM element- Parameters:
element
- XML DOM element representing aStatus
object- Throws:
XACMLException
- If the DOM element could not be processed.
-
-
Method Details
-
getStatusCode
Returns theStatusCode
of this object- Specified by:
getStatusCode
in interfaceStatus
- Returns:
- the
StatusCode
of this object
-
setStatusCode
Sets theStatusCode
of this object- Specified by:
setStatusCode
in interfaceStatus
- Throws:
XACMLException
- if the object is immutable
-
getStatusMessage
Returns theStatusMessage
of this object- Specified by:
getStatusMessage
in interfaceStatus
- Returns:
- the
StatusMessage
of this object
-
setStatusMessage
Sets theStatusMessage
of this object- Specified by:
setStatusMessage
in interfaceStatus
- Throws:
XACMLException
- if the object is immutable
-
getStatusDetail
Returns theStatusDetail
of this object- Specified by:
getStatusDetail
in interfaceStatus
- Returns:
- the
StatusDetail
of this object
-
setStatusDetail
Sets theStatusDetail
of this object- Specified by:
setStatusDetail
in interfaceStatus
- Throws:
XACMLException
- if the object is immutable
-
toDocumentFragment
public DocumentFragment toDocumentFragment(Document document, boolean includeNSPrefix, boolean declareNS) throws com.sun.identity.saml2.common.SAML2Exception Description copied from interface:XmlSerializable
Serializes the element into an XMLDocumentFragment
. A default implementation is provided for compatibility with legacy code that implementsXmlSerializable.toXMLString()
, but it is highly recommended to override this method.- Specified by:
toDocumentFragment
in interfaceXmlSerializable
- Parameters:
document
- the parentDocument
to create the document fragment from.includeNSPrefix
- whether to include a namespace prefix in the document elements.declareNS
- whether to declare any namespaces or assume that they are already declared.- Returns:
- the XML document fragment representing this SAML2 element.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the element cannot be serialized for any reason.
-
isMutable
public boolean isMutable()Checks if the object is mutable -
makeImmutable
public void makeImmutable()Makes the object immutable- Specified by:
makeImmutable
in interfaceStatus
-