public class RequestStatus extends ICalProperty
Represents a response to a scheduling request.
This property must have a status code defined. The following status code families are defined:
Code sample:
VEvent event = new VEvent();
RequestStatus requestStatus = new RequestStatus("2.0");
requestStatus.setDescription("Success");
event.setRequestStatus(requestStatus);
parameters| Constructor and Description |
|---|
RequestStatus(String statusCode)
Creates a request status property.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the human-readable description of the status.
|
String |
getExceptionText()
Gets any additional data related to the response.
|
String |
getLanguage()
Gets the language that the property value is written in.
|
String |
getStatusCode()
Gets the status code.
|
void |
setDescription(String description)
Sets a human-readable description of the status.
|
void |
setExceptionText(String exceptionText)
Sets any additional data related to the response.
|
void |
setLanguage(String language)
Sets the language that the property value is written in.
|
void |
setStatusCode(String statusCode)
Sets a status code.
|
protected void |
validate(List<ICalComponent> components,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
spec.
|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validatepublic RequestStatus(String statusCode)
statusCode - the status code (e.g. "1.1.3")public String getStatusCode()
public void setStatusCode(String statusCode)
statusCode - the status code (e.g. "1.1.3")public String getDescription()
public void setDescription(String description)
description - the description (e.g. "Success") or null to removepublic String getExceptionText()
public void setExceptionText(String exceptionText)
exceptionText - the additional data or null to removepublic String getLanguage()
ICalPropertypublic void setLanguage(String language)
ICalPropertylanguage - the language (e.g. "en" for English) or null to removeprotected void validate(List<ICalComponent> components, List<Warning> warnings)
ICalPropertyvalidate in class ICalPropertycomponents - the hierarchy of components that the property belongs
towarnings - the list to add the warnings toCopyright © 2013-2014 Michael Angstadt. All Rights Reserved.