Class StatusImpl
- java.lang.Object
-
- com.sun.identity.xacml.context.impl.StatusImpl
-
- All Implemented Interfaces:
XmlSerializable,Status
@SupportedAll public class StatusImpl extends Object implements Status
TheStatuselement is a container of one or moreStatuss issuded by authorization authority.
-
-
Constructor Summary
Constructors Constructor Description StatusImpl()Constructs aStatusobjectStatusImpl(String xml)Constructs aStatusobject from an XML stringStatusImpl(Element element)Constructs aStatusobject from an XML DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusCodegetStatusCode()Returns theStatusCodeof this objectStatusDetailgetStatusDetail()Returns theStatusDetailof this objectStatusMessagegetStatusMessage()Returns theStatusMessageof this objectbooleanisMutable()Checks if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetStatusCode(StatusCode statusCode)Sets theStatusCodeof this objectvoidsetStatusDetail(StatusDetail statusDetail)Sets theStatusDetailof this objectvoidsetStatusMessage(StatusMessage statusMessage)Sets theStatusMessageof this objectDocumentFragmenttoDocumentFragment(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 Detail
-
StatusImpl
public StatusImpl() throws XACMLExceptionConstructs aStatusobject- Throws:
XACMLException
-
StatusImpl
public StatusImpl(String xml) throws XACMLException
Constructs aStatusobject from an XML string- Parameters:
xml- string representing aStatusobject- Throws:
XACMLException- If the XML string could not be processed.
-
StatusImpl
public StatusImpl(Element element) throws XACMLException
Constructs aStatusobject from an XML DOM element- Parameters:
element- XML DOM element representing aStatusobject- Throws:
XACMLException- If the DOM element could not be processed.
-
-
Method Detail
-
getStatusCode
public StatusCode getStatusCode()
Returns theStatusCodeof this object- Specified by:
getStatusCodein interfaceStatus- Returns:
- the
StatusCodeof this object
-
setStatusCode
public void setStatusCode(StatusCode statusCode) throws XACMLException
Sets theStatusCodeof this object- Specified by:
setStatusCodein interfaceStatus- Throws:
XACMLException- if the object is immutable
-
getStatusMessage
public StatusMessage getStatusMessage()
Returns theStatusMessageof this object- Specified by:
getStatusMessagein interfaceStatus- Returns:
- the
StatusMessageof this object
-
setStatusMessage
public void setStatusMessage(StatusMessage statusMessage) throws XACMLException
Sets theStatusMessageof this object- Specified by:
setStatusMessagein interfaceStatus- Throws:
XACMLException- if the object is immutable
-
getStatusDetail
public StatusDetail getStatusDetail()
Returns theStatusDetailof this object- Specified by:
getStatusDetailin interfaceStatus- Returns:
- the
StatusDetailof this object
-
setStatusDetail
public void setStatusDetail(StatusDetail statusDetail) throws XACMLException
Sets theStatusDetailof this object- Specified by:
setStatusDetailin interfaceStatus- Throws:
XACMLException- if the object is immutable
-
toDocumentFragment
public DocumentFragment toDocumentFragment(Document document, boolean includeNSPrefix, boolean declareNS) throws 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:
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:
makeImmutablein interfaceStatus
-
-