public abstract class VoidRequest extends AbstractRequest<Void>
Constructor and Description |
---|
VoidRequest() |
Modifier and Type | Method and Description |
---|---|
protected abstract javax.ws.rs.core.Response |
_execute()
REST requests without response should implement this delegate method instead of
execute() . |
Void |
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 VoidRequest()
public final Void 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.protected abstract javax.ws.rs.core.Response _execute()
execute()
.SyncInvoker.put(javax.ws.rs.client.Entity)
or a
similar method.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.