public static interface DOFRequest.Invoke extends DOFRequest
DOFObject.Provider.invoke(org.opendof.core.oal.DOFOperation.Provide, org.opendof.core.oal.DOFRequest.Invoke, org.opendof.core.oal.DOFInterface.Method, java.util.List<org.opendof.core.oal.DOFValue>)
via one of the respond
methods.DOFRequest.Get, DOFRequest.Invoke, DOFRequest.Register, DOFRequest.Session, DOFRequest.Set, DOFRequest.Subscribe, DOFRequest.SubscribeGet, DOFRequest.Type
Modifier and Type | Method and Description |
---|---|
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... values)
Respond with a value result with a variable number of values.
|
void |
respond(java.util.List<DOFValue> values)
Respond with a list result (the result of a method which returns multiple values).
|
getConnectionState, getObjectID, getRequestorAddress, getRequestorID, getRequestType, getSecurityScope, getTimeRemaining
void respond(DOFValue... values)
respond
methods is not
called the request will timeout, even if it is a method with no outputs
NOTE: Often a call to respond(...)
should be immediately followed by return
in
order to maintain the execution flow of a native return
statement.values
- The values to return.void respond(java.util.List<DOFValue> values)
respond(...)
should be immediately followed by return
in
order to maintain the execution flow of a native return
statement.values
- The list of values. Must not be null.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.invoke(org.opendof.core.oal.DOFOperation.Provide, org.opendof.core.oal.DOFRequest.Invoke, org.opendof.core.oal.DOFInterface.Method, java.util.List<org.opendof.core.oal.DOFValue>)
:
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