R
- public final class HttpCommand<R>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <R> HttpCommand<R> |
create(HttpRequest<R> request)
Creates a new HttpCommand from the given request
|
javax.ws.rs.core.Response |
execute()
Executes the command and returns the Response
|
javax.ws.rs.client.Entity<?> |
getEntity() |
HttpRequest<R> |
getRequest() |
int |
getRetries() |
boolean |
hasEntity() |
HttpCommand<R> |
incrementRetriesAndReturn() |
public static <R> HttpCommand<R> create(HttpRequest<R> request)
request
- the requestpublic javax.ws.rs.core.Response execute()
public javax.ws.rs.client.Entity<?> getEntity()
public boolean hasEntity()
public int getRetries()
public HttpCommand<R> incrementRetriesAndReturn()
public HttpRequest<R> getRequest()
Copyright © 2019. All Rights Reserved.