Class StatusImpl
- java.lang.Object
-
- com.sun.identity.xacml.context.impl.StatusImpl
-
- All Implemented Interfaces:
Status
public class StatusImpl extends Object implements Status
TheStatuselement is a container of one or moreStatuss issuded by authorization authority.Schema: <xs:complexType name="StatusType"> <xs:sequence> <xs:element ref="xacml-context:StatusCode"/> <xs:element ref="xacml-context:StatusMessage" minOccurs="0"/> <xs:element ref="xacml-context:StatusDetail" minOccurs="0"/> <xs:sequence> <xs:complexType>
-
-
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 objectStringtoXMLString()Returns a string representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a string representation
-
-
-
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:
SAMLException- if the XML string could not be processedXACMLException
-
StatusImpl
public StatusImpl(Element element) throws XACMLException
Constructs aStatusobject from an XML DOM element- Parameters:
element- XML DOM element representing aStatusobject- Throws:
SAMLException- if the DOM element could not be processedXACMLException
-
-
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
-
toXMLString
public String toXMLString() throws XACMLException
Returns a string representation- Specified by:
toXMLStringin interfaceStatus- Returns:
- a string representation
- Throws:
XACMLException- if conversion fails for any reason
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
Returns a string representation- Specified by:
toXMLStringin interfaceStatus- Parameters:
includeNSPrefix- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS- Determines whether or not the namespace is declared within the Element.- Returns:
- a string representation
- Throws:
XACMLException- if conversion fails 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
-
-