Package org.restlet.engine.application
Class StatusInfo
java.lang.Object
org.restlet.engine.application.StatusInfo
- All Implemented Interfaces:
Serializable
Representation of a
Status.- Author:
- Manuel Boillod
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty ConstructorStatusInfo(int code, String description, String reasonPhrase) Constructor.StatusInfo(int code, String description, String reasonPhrase, String uri, String contactEmail, String homeRef) Constructor.StatusInfo(Status status) Constructor.StatusInfo(Status status, String contactEmail, String homeRef) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Returns the code of the status.Returns the email address of the administrator to contact in case of error.Returns the description of the status.Returns the home URI to propose in case of error.Returns the short description of the status.getUri()Returns the URI of the specification describing the status.voidsetCode(int code) Sets the code of the status.voidsetContactEmail(String email) Sets the email address of the administrator to contact in case of error.voidsetDescription(String description) Sets the description of the status.voidsetHomeRef(String homeRef) Sets the home URI to propose in case of error.voidsetReasonPhrase(String reasonPhrase) Sets the short description of the status.
-
Constructor Details
-
StatusInfo
public StatusInfo()Empty Constructor -
StatusInfo
Constructor.- Parameters:
code- The specification code.description- The longer description.reasonPhrase- The short reason phrase.
-
StatusInfo
public StatusInfo(int code, String description, String reasonPhrase, String uri, String contactEmail, String homeRef) Constructor.- Parameters:
code- The specification code.description- The longer description.reasonPhrase- The short reason phrase.uri- The URI of the specification describing the method.contactEmail- The email address of the administrator to contact in case of error.homeRef- The home URI to propose in case of error.
-
StatusInfo
Constructor.- Parameters:
status- The represented status.
-
StatusInfo
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 Details
-
getCode
public int getCode()Returns the code of the status.- Returns:
- The code of the status.
-
getContactEmail
Returns the email address of the administrator to contact in case of error.- Returns:
- The email address.
-
getDescription
Returns the description of the status.- Returns:
- The description of the status.
-
getHomeRef
Returns the home URI to propose in case of error.- Returns:
- The home URI.
-
getReasonPhrase
Returns the short description of the status.- Returns:
- The short description of the status.
-
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
Sets the email address of the administrator to contact in case of error.- Parameters:
email- The email address.
-
setDescription
Sets the description of the status.- Parameters:
description- The description of the status.
-
setHomeRef
Sets the home URI to propose in case of error.- Parameters:
homeRef- The home URI.
-
setReasonPhrase
Sets the short description of the status.- Parameters:
reasonPhrase- The short description of the status.
-