Package org.bedework.calfacade.requests
Class RequestBase
java.lang.Object
org.bedework.calfacade.requests.RequestBase
- Direct Known Subclasses:
GetInstancesRequest
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetId()voidvoidsetId(int val) toString()voidtoStringSegment(org.bedework.util.misc.ToString ts) Add information to the ToString builderbooleanvalidate(org.bedework.util.misc.response.Response resp) May clean up the data in the request.
-
Field Details
-
getInstancesAction
get instances- See Also:
-
-
Constructor Details
-
RequestBase
public RequestBase()
-
-
Method Details
-
setAction
- Parameters:
val- the action.
-
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
-