Class RequestBase

java.lang.Object
org.bedework.calfacade.requests.RequestBase
Direct Known Subclasses:
GetInstancesRequest

public class RequestBase extends Object
Request base object.

The action is used by the json routines to enable deserialization of the json into a Java object.

The id is not required but clients may use it to identify a response. The id from the request will be copied into responses.

The validate method may be overridden and will be called by the api to validate fields.

douglm: Bedework Commercial Services
  • Field Details

  • Constructor Details

    • RequestBase

      public RequestBase()
  • Method Details

    • setAction

      public void setAction(String val)
      Parameters:
      val - the action.
    • getAction

      public String getAction()
      Returns:
      the action
    • setId

      public void setId(int val)
      Parameters:
      val - an id to identify the request
    • getId

      public int getId()
      Returns:
      an id to identify the request
    • validate

      public boolean validate(org.bedework.util.misc.response.Response resp)
      May clean up the data in the request.
      Parameters:
      resp - for failed status and message
      Returns:
      true for ok request
    • toStringSegment

      public void toStringSegment(org.bedework.util.misc.ToString ts)
      Add information to the ToString builder
      Parameters:
      ts - ToString builder
    • toString

      public String toString()
      Overrides:
      toString in class Object