| java.lang.Object org.xins.common.service.CallRequest
All known Subclasses: org.xins.client.XINSCallRequest, org.xins.common.http.HTTPCallRequest,
CallRequest | abstract public class CallRequest implements Serializable(Code) | | Abstraction of a request for a ServiceCaller call. Specific
service callers typically only accept a single type of request, derived
from this class.
This class is not thread-safe.
Implementations
Implementations of this class should stick to the following rules:
- the
CallRequest.describe() method must be implemented;
- only a single non-argument constructor should be provided, all
settings should be done using setter methods;
- a service caller-specific getter should be added for the associated
call config object, this method should return the caller-specific
call config object (a subclass of class
CallConfig ).
version: $Revision: 1.20 $ $Date: 2007/03/15 17:08:27 $ author: Ernst de Haan since: XINS 1.0.0 See Also: ServiceCaller |
Constructor Summary | |
protected | CallRequest() Constructs a new CallRequest . |
CallRequest | protected CallRequest()(Code) | | Constructs a new CallRequest . This constructor is only
available to subclasses, since this class is abstract .
|
describe | abstract public String describe()(Code) | | Describes this request. The description should be trimmed and should fit
in a sentence. Good examples include "LDAP request #1592"
and "request #12903" .
the description of this request, should never be null ,should never be empty and should never start or end with whitespacecharacters. |
getCallConfig | final protected CallConfig getCallConfig()(Code) | | Retrieves the associated call configuration, if any.
the associated call configuration, or null if none is. since: XINS 1.1.0 |
setCallConfig | final protected void setCallConfig(CallConfig config)(Code) | | Sets the call configuration associated with this request.
Parameters: config - the call configuration to associate with this request, ornull if none should be. since: XINS 1.1.0 |
toString | public String toString()(Code) | | Returns a textual presentation of this object.
The implementation of this method in class
CallRequest returns
CallRequest.describe() .
a textual presentation of this object, should never benull . |
|
|