Class Status
- java.lang.Object
-
- com.sun.identity.liberty.ws.common.Status
-
public class Status extends Object
This class represents a common status object. The following schema fragment specifies the expected content within theStatusobject.<complexType name="Status"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="Status" minOccurs="0"/> </sequence> <attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" /> <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}IDREF" /> </restriction> </complexContent> </complexType>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QNamegetCode()Gets status code.StringgetComment()Gets comment for the status.StringgetRef()Gets reference attribute.StatusgetSubStatus()Gets sub status.voidsetCode(QName value)Sets status code.voidsetComment(String comment)Sets commentvoidsetRef(String value)Sets reference attribute.voidsetSubStatus(Status status)Sets sub status.StringtoString()Returns string format of the status.
-
-
-
Method Detail
-
getSubStatus
public Status getSubStatus()
Gets sub status.- Returns:
- Status
- See Also:
setSubStatus(Status)
-
setSubStatus
public void setSubStatus(Status status)
Sets sub status. The sub status is used by a service to convey second-level status information in addition to the status code.- Parameters:
status- Status to be set- See Also:
getSubStatus()
-
getRef
public String getRef()
Gets reference attribute.- Returns:
- reference attribute.
- See Also:
setRef(String)
-
setRef
public void setRef(String value)
Sets reference attribute.- Parameters:
value- reference to be set- See Also:
getRef()
-
getCode
public QName getCode()
Gets status code.- Returns:
- status code.
- See Also:
setCode(QName)
-
setCode
public void setCode(QName value)
Sets status code.- Parameters:
value- status code to be set- See Also:
getCode()
-
getComment
public String getComment()
Gets comment for the status.- Returns:
- comment for the status.
- See Also:
setComment(String)
-
setComment
public void setComment(String comment)
Sets comment- Parameters:
comment- String- See Also:
getComment()
-
-