All Implemented Interfaces:
PropLanguage<String>, VProperty<String>, VChild, VElement, VParent

public class RequestStatus extends PropBaseLanguage<String,RequestStatus>
REQUEST-STATUS RFC 5545, 3.8.8.3, page 141 This property defines the status code returned for a scheduling request. Examples: REQUEST-STATUS:2.0;Success REQUEST-STATUS:3.1;Invalid property value;DTSTART:96-Apr-01
See Also:
  • Field Details

    • statusCode

      private Double statusCode
    • DECIMAL_FORMAT

      private static final DecimalFormat DECIMAL_FORMAT
    • description

      private String description
    • exception

      private String exception
  • Constructor Details

    • RequestStatus

      public RequestStatus(RequestStatus source)
    • RequestStatus

      public RequestStatus()
  • Method Details

    • getStatusCode

      public Double getStatusCode()
      Hierarchical, numeric return status code +--------+----------------------------------------------------------+ | Short | Longer Return Status Description | | Return | | | Status | | | Code | | +--------+----------------------------------------------------------+ | 1.xx | Preliminary success. This class of status code | | | indicates that the request has been initially processed | | | but that completion is pending. | | | | | 2.xx | Successful. This class of status code indicates that | | | the request was completed successfully. However, the | | | exact status code can indicate that a fallback has been | | | taken. | | | | | 3.xx | Client Error. This class of status code indicates that | | | the request was not successful. The error is the result | | | of either a syntax or a semantic error in the client- | | | formatted request. Request should not be retried until | | | the condition in the request is corrected. | | | | | 4.xx | Scheduling Error. This class of status code indicates | | | that the request was not successful. Some sort of error | | | occurred within the calendaring and scheduling service, | | | not directly related to the request itself. | +--------+----------------------------------------------------------+
    • setStatusCode

      public void setStatusCode(Double statusCode)
    • withStatusCode

      public RequestStatus withStatusCode(Double statusCode)
    • getDescription

      public String getDescription()
      Textual status description
    • setDescription

      public void setDescription(String description)
    • withDescription

      public RequestStatus withDescription(String description)
    • getException

      public String getException()
      Textual exception data. For example, the offending property name and value or complete property line.
    • setException

      public void setException(String exception)
    • withException

      public RequestStatus withException(String exception)
    • valueContent

      protected String valueContent()
      Applies string converter only to description and exception parts of the RequestStatus property This leaves the semicolon delimiters unescaped
      Overrides:
      valueContent in class VPropertyBase<String,RequestStatus>
    • setValue

      public void setValue(String value)
      Description copied from interface: VProperty
      Set the value of the property
      Specified by:
      setValue in interface VProperty<String>
      Overrides:
      setValue in class VPropertyBase<String,RequestStatus>
    • updateValue

      private void updateValue()
    • parse

      public static RequestStatus parse(String content)