public interface Response extends OsidObject
A Response represents a stuctured response from a
service endpoint.
| Modifier and Type | Method and Description |
|---|---|
ResponseRecord |
getResponseRecord(Type responseRecordType)
Gets the response record.
|
DisplayText |
getStatusMessage()
Gets a status message.
|
boolean |
ok()
Tests if the request was successful.
|
getDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypeboolean ok()
true if the request was successful,
false otherrwisemandatory - This method must be implemented. DisplayText getStatusMessage()
mandatory - This method must be implemented. ResponseRecord getResponseRecord(Type responseRecordType) throws OperationFailedException
This method is used to
retrieve an object implementing the requested message.responseRecordType - a response record typeNullArgumentException - responseMessageType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(responseRecordType) is false
mandatory - This method must be implemented.