Package org.restlet.engine.application
Class StatusInfo
- java.lang.Object
-
- org.restlet.engine.application.StatusInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class StatusInfo extends java.lang.Object implements java.io.SerializableRepresentation of aStatus.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intcodeThe specification code.private java.lang.StringcontactEmailThe email address of the administrator to contact in case of error.private java.lang.StringdescriptionThe longer description.private java.lang.StringhomeRefThe home URI to propose in case of error.private java.lang.StringreasonPhraseThe short reason phrase.private static longserialVersionUIDprivate java.lang.StringuriThe URI of the specification describing the method.
-
Constructor Summary
Constructors Constructor Description StatusInfo()Empty ConstructorStatusInfo(int code, java.lang.String description, java.lang.String reasonPhrase)Constructor.StatusInfo(int code, java.lang.String description, java.lang.String reasonPhrase, java.lang.String uri, java.lang.String contactEmail, java.lang.String homeRef)Constructor.StatusInfo(Status status)Constructor.StatusInfo(Status status, java.lang.String contactEmail, java.lang.String homeRef)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Returns the code of the status.java.lang.StringgetContactEmail()Returns the email address of the administrator to contact in case of error.java.lang.StringgetDescription()Returns the description of the status.java.lang.StringgetHomeRef()Returns the home URI to propose in case of error.java.lang.StringgetReasonPhrase()Returns the short description of the status.java.lang.StringgetUri()Returns the URI of the specification describing the status.voidsetCode(int code)Sets the code of the status.voidsetContactEmail(java.lang.String email)Sets the email address of the administrator to contact in case of error.voidsetDescription(java.lang.String description)Sets the description of the status.voidsetHomeRef(java.lang.String homeRef)Sets the home URI to propose in case of error.voidsetReasonPhrase(java.lang.String reasonPhrase)Sets the short description of the status.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
code
private volatile int code
The specification code.
-
contactEmail
private volatile java.lang.String contactEmail
The email address of the administrator to contact in case of error.
-
description
private volatile java.lang.String description
The longer description.
-
homeRef
private volatile java.lang.String homeRef
The home URI to propose in case of error.
-
reasonPhrase
private volatile java.lang.String reasonPhrase
The short reason phrase.
-
uri
private volatile java.lang.String uri
The URI of the specification describing the method.
-
-
Constructor Detail
-
StatusInfo
public StatusInfo()
Empty Constructor
-
StatusInfo
public StatusInfo(int code, java.lang.String description, java.lang.String reasonPhrase)Constructor.- Parameters:
code- The specification code.description- The longer description.reasonPhrase- The short reason phrase.
-
StatusInfo
public StatusInfo(int code, java.lang.String description, java.lang.String reasonPhrase, java.lang.String uri, java.lang.String contactEmail, java.lang.String homeRef)Constructor.- Parameters:
code- The specification code.description- The longer description.reasonPhrase- The short reason phrase.contactEmail- The email address of the administrator to contact in case of error.homeRef- The home URI to propose in case of error.
-
StatusInfo
public StatusInfo(Status status)
Constructor.- Parameters:
status- The represented status.
-
StatusInfo
public StatusInfo(Status status, java.lang.String contactEmail, java.lang.String homeRef)
Constructor.- Parameters:
status- The represented status.contactEmail- The email address of the administrator to contact in case of error.homeRef- The home URI to propose in case of error.
-
-
Method Detail
-
getCode
public int getCode()
Returns the code of the status.- Returns:
- The code of the status.
-
getContactEmail
public java.lang.String getContactEmail()
Returns the email address of the administrator to contact in case of error.- Returns:
- The email address.
-
getDescription
public java.lang.String getDescription()
Returns the description of the status.- Returns:
- The description of the status.
-
getHomeRef
public java.lang.String getHomeRef()
Returns the home URI to propose in case of error.- Returns:
- The home URI.
-
getReasonPhrase
public java.lang.String getReasonPhrase()
Returns the short description of the status.- Returns:
- The short description of the status.
-
getUri
public java.lang.String getUri()
Returns the URI of the specification describing the status.- Returns:
- The URI of the specification describing the status.
-
setCode
public void setCode(int code)
Sets the code of the status.- Parameters:
code- The code of the status.
-
setContactEmail
public void setContactEmail(java.lang.String email)
Sets the email address of the administrator to contact in case of error.- Parameters:
email- The email address.
-
setDescription
public void setDescription(java.lang.String description)
Sets the description of the status.- Parameters:
description- The description of the status.
-
setHomeRef
public void setHomeRef(java.lang.String homeRef)
Sets the home URI to propose in case of error.- Parameters:
homeRef- The home URI.
-
setReasonPhrase
public void setReasonPhrase(java.lang.String reasonPhrase)
Sets the short description of the status.- Parameters:
reasonPhrase- The short description of the status.
-
-