public class StatusInfo
extends java.lang.Object
implements java.io.Serializable
Status.| Constructor and Description |
|---|
StatusInfo(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,
Reference homeRef)
Constructor.
|
StatusInfo(Status status)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns the code of the status.
|
java.lang.String |
getContactEmail()
Returns the email address of the administrator to contact in case of
error.
|
java.lang.String |
getDescription()
Returns the description of the status.
|
Reference |
getHomeRef()
Returns the home URI to propose in case of error.
|
java.lang.String |
getReasonPhrase()
Returns the short description of the status.
|
java.lang.String |
getUri()
Returns the URI of the specification describing the status.
|
void |
setCode(int code)
Sets the code of the status.
|
void |
setContactEmail(java.lang.String email)
Sets the email address of the administrator to contact in case of error.
|
void |
setDescription(java.lang.String description)
Sets the description of the status.
|
void |
setHomeRef(Reference homeRef)
Sets the home URI to propose in case of error.
|
void |
setReasonPhrase(java.lang.String reasonPhrase)
Sets the short description of the status.
|
public StatusInfo(int code,
java.lang.String description,
java.lang.String reasonPhrase)
code - The specification code.description - The longer description.reasonPhrase - The short reason phrase.public StatusInfo(int code,
java.lang.String description,
java.lang.String reasonPhrase,
java.lang.String uri,
java.lang.String contactEmail,
Reference homeRef)
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.public StatusInfo(Status status)
status - The represented status.public int getCode()
public java.lang.String getContactEmail()
public java.lang.String getDescription()
public Reference getHomeRef()
public java.lang.String getReasonPhrase()
public java.lang.String getUri()
public void setCode(int code)
code - The code of the status.public void setContactEmail(java.lang.String email)
email - The email address.public void setDescription(java.lang.String description)
code - The description of the status.public void setHomeRef(Reference homeRef)
homeRef - The home URI.public void setReasonPhrase(java.lang.String reasonPhrase)
code - The short description of the status.Copyright © 2005-2014 Restlet.