public abstract class HttpWorkerAbstract extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DELETE |
static String |
GET |
static String |
HEAD |
protected HttpClient |
httpClient |
protected org.apache.http.client.methods.HttpRequestBase |
httpRequest |
static String |
POST |
static String |
PUT |
protected Response |
response |
| Modifier | Constructor and Description |
|---|---|
protected |
HttpWorkerAbstract(HttpClient client,
org.apache.http.client.methods.HttpRequestBase httpRequest) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
String |
getRequestMethod() |
Response |
getResponse() |
long |
getResponseTime() |
protected URI |
getURI() |
static HttpWorkerAbstract |
getWorkerStrategy(String requestMethod,
HttpClient client) |
abstract void |
prepare() |
public static final String HEAD
public static final String GET
public static final String POST
public static final String PUT
public static final String DELETE
protected final org.apache.http.client.methods.HttpRequestBase httpRequest
protected Response response
protected final HttpClient httpClient
protected HttpWorkerAbstract(HttpClient client, org.apache.http.client.methods.HttpRequestBase httpRequest)
public Response getResponse()
protected URI getURI() throws URISyntaxException
public abstract void prepare()
throws HibiscusException
public void execute()
throws HibiscusException
public final String getRequestMethod()
public static HttpWorkerAbstract getWorkerStrategy(String requestMethod, HttpClient client)
public long getResponseTime()
Copyright © 2012–2014 American Institute for Computing Education and Research Inc. All rights reserved.