Class StatusImpl
- java.lang.Object
-
- com.sun.identity.xacml.context.impl.StatusImpl
-
- All Implemented Interfaces:
Status
@SupportedAll public class StatusImpl extends Object implements Status
TheStatus
element is a container of one or moreStatus
s issuded by authorization authority.
-
-
Constructor Summary
Constructors Constructor Description StatusImpl()
Constructs aStatus
objectStatusImpl(String xml)
Constructs aStatus
object from an XML stringStatusImpl(Element element)
Constructs aStatus
object from an XML DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusCode
getStatusCode()
Returns theStatusCode
of this objectStatusDetail
getStatusDetail()
Returns theStatusDetail
of this objectStatusMessage
getStatusMessage()
Returns theStatusMessage
of this objectboolean
isMutable()
Checks if the object is mutablevoid
makeImmutable()
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 objectString
toXMLString()
Returns a string representationString
toXMLString(boolean includeNSPrefix, boolean declareNS)
Returns a string representation
-
-
-
Constructor Detail
-
StatusImpl
public StatusImpl() throws XACMLException
Constructs aStatus
object- Throws:
XACMLException
-
StatusImpl
public StatusImpl(String xml) throws XACMLException
Constructs aStatus
object from an XML string- Parameters:
xml
- string representing aStatus
object- Throws:
XACMLException
- If the XML string could not be processed.
-
StatusImpl
public StatusImpl(Element element) throws XACMLException
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 Detail
-
getStatusCode
public StatusCode getStatusCode()
Returns theStatusCode
of this object- Specified by:
getStatusCode
in interfaceStatus
- Returns:
- the
StatusCode
of this object
-
setStatusCode
public void setStatusCode(StatusCode statusCode) throws XACMLException
Sets theStatusCode
of this object- Specified by:
setStatusCode
in interfaceStatus
- Throws:
XACMLException
- if the object is immutable
-
getStatusMessage
public StatusMessage getStatusMessage()
Returns theStatusMessage
of this object- Specified by:
getStatusMessage
in interfaceStatus
- Returns:
- the
StatusMessage
of this object
-
setStatusMessage
public void setStatusMessage(StatusMessage statusMessage) throws XACMLException
Sets theStatusMessage
of this object- Specified by:
setStatusMessage
in interfaceStatus
- Throws:
XACMLException
- if the object is immutable
-
getStatusDetail
public StatusDetail getStatusDetail()
Returns theStatusDetail
of this object- Specified by:
getStatusDetail
in interfaceStatus
- Returns:
- the
StatusDetail
of this object
-
setStatusDetail
public void setStatusDetail(StatusDetail statusDetail) throws XACMLException
Sets theStatusDetail
of this object- Specified by:
setStatusDetail
in interfaceStatus
- Throws:
XACMLException
- if the object is immutable
-
toXMLString
public String toXMLString() throws XACMLException
Returns a string representation- Specified by:
toXMLString
in 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:
toXMLString
in 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:
makeImmutable
in interfaceStatus
-
-