Interface Request
- All Superinterfaces:
Extensible, Suppliable
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.
-
Method Summary
Modifier and TypeMethodDescriptiongetRequestRecord(Type requestRecordType) Gets the request record.voidSets an identifier for this request.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.
-
Method Details
-
setId
Sets an identifier for this request.- Parameters:
id- an identifier- Throws:
NullArgumentException-idisnull- Compliance:
mandatory- This method must be implemented.
-
getRequestRecord
Gets the request record. This method is used to retrieve an object implementing the requested message.- Parameters:
requestRecordType- a request record type- Returns:
- the request record
- Throws:
NullArgumentException-requestRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(requestType)isfalse- Compliance:
mandatory- This method must be implemented.
-