public class InvokeMethod extends AbstractRequest<MethodInvocationResponse>
Constructor and Description |
---|
InvokeMethod(MethodInvocationRequest methodInvocationRequest) |
Modifier and Type | Method and Description |
---|---|
MethodInvocationResponse |
execute()
Execute the actual request.
|
boolean |
isResultNullable()
Indicates, if the result of the invocation can be
null . |
assertResponseIndicatesSuccess, assignCredentials, createWebTarget, encodePath, getBaseURL, getClientOrFail, getLocalServerRestClient, getLocalServerRestClientOrFail, getPath, handleException, setLocalServerRestClient, throwOriginalExceptionIfPossible, urlEncode
public InvokeMethod(MethodInvocationRequest methodInvocationRequest)
public MethodInvocationResponse execute()
Request
Important: You should never invoke this method directly! Instead, pass the Request
to
LocalServerRestClient.execute(Request)
.
null
. Depending on
Request.isResultNullable()
a null
result is considered an error and causes an exception.public boolean isResultNullable()
Request
null
.
If the server must send a response, i.e. the invocation must not return empty-handed, this
should be false
. In case, the server still does not send a reply, it is considered an
error causing an exception.
Please note: If a request never returns a response (like a Java void method), it is recommended
that you sub-class VoidRequest
.
true
if null
as response is allowed; false
otherwise.Copyright © 2013–2019. All rights reserved.