public static class InvokeServiceCmd.ServiceInvocationArrayResultResponse extends Object implements ServiceInvocationResultResponse
Modifier and Type | Field and Description |
---|---|
protected ServiceInvocationResponse |
invocationResponse |
protected Object |
responseLookupId |
protected Object |
resultResponse |
Constructor and Description |
---|
ServiceInvocationArrayResultResponse(Object responseLookupId,
com.fasterxml.jackson.databind.node.ArrayNode resultResponse,
ServiceInvocationResponse invocationResponse) |
ServiceInvocationArrayResultResponse(Object responseLookupId,
Collection<Map<String,Object>> resultResponse,
ServiceInvocationResponse invocationResponse) |
Modifier and Type | Method and Description |
---|---|
Object |
getResponseLookupId() |
Object |
getResult()
The result response.
|
ResultType |
getResultType()
The type of the returned result response.
|
ServiceInvocationResponse |
getServiceInvocationResponse()
The service invocation response returned by the specific Service Invoker.
|
Object |
getValue(String name)
The the value for the given name.
|
boolean |
hasValue(String name)
Whether the result response has a value with the given name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResponseObject
protected final Object responseLookupId
protected final Object resultResponse
protected final ServiceInvocationResponse invocationResponse
public ServiceInvocationArrayResultResponse(Object responseLookupId, Collection<Map<String,Object>> resultResponse, ServiceInvocationResponse invocationResponse)
public ServiceInvocationArrayResultResponse(Object responseLookupId, com.fasterxml.jackson.databind.node.ArrayNode resultResponse, ServiceInvocationResponse invocationResponse)
public Object getResponseLookupId()
getResponseLookupId
in interface ServiceInvocationResultResponse
public boolean hasValue(String name)
ServiceInvocationResultResponse
null
.hasValue
in interface ServiceInvocationResultResponse
name
- the name of the valuetrue
if the result has such a value, false
otherwisepublic Object getValue(String name)
ServiceInvocationResultResponse
null
does not mean that there is no value, it can mean that the value that was present is null
.
Use ServiceInvocationResultResponse.hasValue(String)
to check if the result has a certain value or not.getValue
in interface ServiceInvocationResultResponse
name
- the name of the valuepublic ResultType getResultType()
ServiceInvocationResultResponse
getResultType
in interface ServiceInvocationResultResponse
public Object getResult()
ServiceInvocationResultResponse
getResult
in interface ServiceInvocationResultResponse
public ServiceInvocationResponse getServiceInvocationResponse()
ServiceInvocationResultResponse
getServiceInvocationResponse
in interface ServiceInvocationResultResponse