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