public static interface DOFRequest.Get extends DOFRequest
DOFObject.Provider.get(org.opendof.core.oal.DOFOperation.Provide, org.opendof.core.oal.DOFRequest.Get, org.opendof.core.oal.DOFInterface.Property)
via either either respond(org.opendof.core.oal.DOFValue)
method.DOFRequest.Get, DOFRequest.Invoke, DOFRequest.Register, DOFRequest.Session, DOFRequest.Set, DOFRequest.Subscribe, DOFRequest.SubscribeGet, DOFRequest.Type
Modifier and Type | Method and Description |
---|---|
boolean |
isSubscribe()
Respond whether or not this request is the result of subscription activity.
|
void |
respond(DOFErrorException exception)
Respond with an error exception for this request.
|
void |
respond(DOFProviderException exception)
Respond with a provider exception for this request.
|
void |
respond(DOFValue value)
Respond with a value result.
|
getConnectionState, getObjectID, getRequestorAddress, getRequestorID, getRequestType, getSecurityScope, getTimeRemaining
void respond(DOFValue value)
respond
methods is not called the request will timeout.
NOTE: Often a call to respond(...)
should be immediately followed by return
in
order to maintain the execution flow of a native return
statement.value
- The value to return.boolean isSubscribe()
void respond(DOFProviderException exception)
respond(...)
should be immediately followed by return
in
order to maintain the execution flow of a native throw
statement.exception
- The exception. Must not be null.DOFOperation
void respond(DOFErrorException exception)
DOFObject.Provider.get(org.opendof.core.oal.DOFOperation.Provide, org.opendof.core.oal.DOFRequest.Get, org.opendof.core.oal.DOFInterface.Property)
:
DOFErrorException.NOT_SUPPORTED
DOFErrorException.TYPE_MISMATCH
DOFErrorException.INSUFFICIENT_RESOURCES
DOFErrorException.NOT_FOUND
DOFErrorException.APPLICATION_ERROR
respond(...)
should be immediately followed by return
in
order to maintain the execution flow of a native throw
statement.exception
- The exception. Must not be null.DOFOperation