Class StatusMessageImpl
java.lang.Object
com.sun.identity.xacml.context.impl.StatusMessageImpl
- All Implemented Interfaces:
XmlSerializable,StatusMessage
The
StatusMessage element is a container of
one or more StatusMessages issuded by authorization authority.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aStatusMessageobjectStatusMessageImpl(String xml) Constructs aStatusMessageobject from an XML stringStatusMessageImpl(Element element) Constructs aStatusMessageobject from an XML DOM element -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns thevalueof this objectbooleanChecks if the object is mutablevoidMakes the object immutablevoidSets thevalueof 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, waitMethods inherited from interface com.sun.identity.xacml.context.StatusMessage
toXMLString, toXMLString
-
Constructor Details
-
StatusMessageImpl
Constructs aStatusMessageobject- Throws:
XACMLException
-
StatusMessageImpl
Constructs aStatusMessageobject from an XML string- Parameters:
xml- string representing aStatusMessageobject- Throws:
XACMLException- If the XML string could not be processed.
-
StatusMessageImpl
Constructs aStatusMessageobject from an XML DOM element- Parameters:
element- XML DOM element representing aStatusMessageobject- Throws:
XACMLException- If the DOM element could not be processed.
-
-
Method Details
-
getValue
Returns thevalueof this object- Specified by:
getValuein interfaceStatusMessage- Returns:
- the
valueof this object
-
setValue
Sets thevalueof this object- Specified by:
setValuein interfaceStatusMessage- 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:XmlSerializableSerializes 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:
toDocumentFragmentin interfaceXmlSerializable- Parameters:
document- the parentDocumentto 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- Specified by:
isMutablein interfaceStatusMessage- Returns:
trueif the object is mutable,falseotherwise
-
makeImmutable
public void makeImmutable()Makes the object immutable- Specified by:
makeImmutablein interfaceStatusMessage
-