public class StatusInfo
extends java.lang.Object
implements java.io.Serializable
Status
.Constructor and Description |
---|
StatusInfo()
Empty Constructor
|
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,
java.lang.String homeRef)
Constructor.
|
StatusInfo(Status status)
Constructor.
|
StatusInfo(Status status,
java.lang.String contactEmail,
java.lang.String homeRef)
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.
|
java.lang.String |
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(java.lang.String 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()
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, java.lang.String 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 StatusInfo(Status status, java.lang.String contactEmail, java.lang.String homeRef)
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.public int getCode()
public java.lang.String getContactEmail()
public java.lang.String getDescription()
public java.lang.String 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)
description
- The description of the status.public void setHomeRef(java.lang.String homeRef)
homeRef
- The home URI.public void setReasonPhrase(java.lang.String reasonPhrase)
reasonPhrase
- The short description of the status.Copyright © 2005-2020 Restlet.