R - public final class HttpCommand<R> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <R> HttpCommand<R> |
create(HttpRequest<R> request)
Creates a new HttpCommand from the given request
|
HttpResponse |
execute()
Executes the command and returns the Response
|
HttpRequest<R> |
getRequest() |
int |
getRetries() |
boolean |
hasEntity() |
HttpCommand<R> |
incrementRetriesAndReturn() |
public static <R> HttpCommand<R> create(HttpRequest<R> request)
request - the requestpublic HttpResponse execute() throws Exception
Exceptionpublic boolean hasEntity()
public int getRetries()
public HttpCommand<R> incrementRetriesAndReturn()
public HttpRequest<R> getRequest()
Copyright © 2015. All Rights Reserved.