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,
ICalVersion version,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
spec.
|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
public 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()
ICalProperty
public void setLanguage(String language)
ICalProperty
language
- the language (e.g. "en" for English) or null to removeprotected void validate(List<ICalComponent> components, ICalVersion version, List<Warning> warnings)
ICalProperty
Checks the property for data consistency problems or deviations from the spec.
This method should be overridden by child classes that wish to provide validation logic. The default implementation of this method does nothing.
validate
in class ICalProperty
components
- the hierarchy of components that the property belongs
toversion
- the version to validate againstwarnings
- the list to add the warnings toCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.