public interface Request extends Suppliable, Extensible
A Request
represents a stuctured request to a service
endpoint. The record types supported may vary on a request by request
basis as defined in the underlying protocol.
Modifier and Type | Method and Description |
---|---|
RequestRecord |
getRequestRecord(Type requestRecordType)
Gets the request record.
|
void |
setId(Id id)
Sets an identifier for this request.
|
getRecordTypes, hasRecordType
void setId(Id id)
id
- an identifierNullArgumentException
- id
is
null
mandatory
- This method must be implemented. RequestRecord getRequestRecord(Type requestRecordType) throws OperationFailedException
This method is used to
retrieve an object implementing the requested message.requestRecordType
- a request record typeNullArgumentException
- requestRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(requestType)
is false
mandatory
- This method must be implemented.