Class StatusImpl
- java.lang.Object
-
- com.sun.identity.saml2.protocol.impl.StatusImpl
-
-
Constructor Summary
Constructors Constructor Description StatusImpl()Constructs theStatusObject.StatusImpl(String xmlString)Constructs theStatusObject.StatusImpl(Element element)Constructs theStatusObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusCodegetStatusCode()Returns the value of the statusCode property.StatusDetailgetStatusDetail()Returns the value of the statusDetail property.StringgetStatusMessage()Returns the value of the statusMessage property.booleanisMutable()Returns value true if object is mutable.voidmakeImmutable()Makes this object immutable.voidsetStatusCode(StatusCode value)Sets the value of the statusCode property.voidsetStatusDetail(StatusDetail value)Sets the value of the statusDetail property.voidsetStatusMessage(String value)Sets the value of the statusMessage property.StringtoXMLString()Returns theStatusin an XML document String format based on theStatusschema described above.StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns theStatusin an XML document String format based on theStatusschema described above.protected voidvalidateStatusCode(StatusCode statusCode)
-
-
-
Constructor Detail
-
StatusImpl
public StatusImpl()
Constructs theStatusObject.
-
StatusImpl
public StatusImpl(Element element) throws SAML2Exception
Constructs theStatusObject.- Parameters:
element- the Document Element ofStatusobject.- Throws:
SAML2Exception- ifStatuscannot be created.
-
StatusImpl
public StatusImpl(String xmlString) throws SAML2Exception
Constructs theStatusObject.- Parameters:
xmlString- the XML String representation of this object.- Throws:
SAML2Exception- ifStatuscannot be created.
-
-
Method Detail
-
getStatusCode
public StatusCode getStatusCode()
Returns the value of the statusCode property.- Specified by:
getStatusCodein interfaceStatus- Returns:
- the value of the statusCode property
- See Also:
setStatusCode(StatusCode)
-
setStatusCode
public void setStatusCode(StatusCode value) throws SAML2Exception
Sets the value of the statusCode property.- Specified by:
setStatusCodein interfaceStatus- Parameters:
value- the value of the statusCode property to be set- Throws:
SAML2Exception- if the object is immutable- See Also:
getStatusCode()
-
getStatusMessage
public String getStatusMessage()
Returns the value of the statusMessage property.- Specified by:
getStatusMessagein interfaceStatus- Returns:
- the value of the statusMessage property
- See Also:
setStatusMessage(String)
-
setStatusMessage
public void setStatusMessage(String value) throws SAML2Exception
Sets the value of the statusMessage property.- Specified by:
setStatusMessagein interfaceStatus- Parameters:
value- the value of the statusMessage property to be set- Throws:
SAML2Exception- if the object is immutable- See Also:
getStatusMessage()
-
getStatusDetail
public StatusDetail getStatusDetail()
Returns the value of the statusDetail property.- Specified by:
getStatusDetailin interfaceStatus- Returns:
- the value of the statusDetail property
- See Also:
setStatusDetail(StatusDetail)
-
setStatusDetail
public void setStatusDetail(StatusDetail value) throws SAML2Exception
Sets the value of the statusDetail property.- Specified by:
setStatusDetailin interfaceStatus- Parameters:
value- the value of the statusDetail property to be set- Throws:
SAML2Exception- if the object is immutable- See Also:
getStatusDetail()
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns theStatusin an XML document String format based on theStatusschema described above.- Specified by:
toXMLStringin interfaceStatus- Returns:
- An XML String representing the
Status. - Throws:
SAML2Exception- if some error occurs during conversion toString.
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Returns theStatusin an XML document String format based on theStatusschema described above.- 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 XML String representing the
Status. - Throws:
SAML2Exception- if some error occurs during conversion toString.
-
makeImmutable
public void makeImmutable()
Makes this object immutable.- Specified by:
makeImmutablein interfaceStatus
-
isMutable
public boolean isMutable()
Returns value true if object is mutable.
-
validateStatusCode
protected void validateStatusCode(StatusCode statusCode) throws SAML2Exception
- Throws:
SAML2Exception
-
-