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, getCloudStoreRestClient, getCloudStoreRestClientOrFail, getPath, setCloudStoreRestClient, throwOriginalExceptionIfPossible, urlEncodepublic VoidRequest()
public final Void execute()
Request
Important: You should never invoke this method directly! Instead, pass the Request to
CloudStoreRestClient.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()
Requestnull.
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.