public class BzmHttpWrapper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BzmHttpWrapper.Method |
| Constructor and Description |
|---|
BzmHttpWrapper(String proxyHost,
String proxyPort,
String proxyUser,
String proxyPass) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.impl.client.CloseableHttpClient |
getHttpClient() |
org.eclipse.jetty.util.log.StdErrLog |
getLogger() |
org.apache.http.HttpResponse |
httpResponse(String url,
org.json.JSONObject data,
BzmHttpWrapper.Method method) |
<T> T |
response(String url,
org.json.JSONObject data,
BzmHttpWrapper.Method method,
Class<T> returnType) |
void |
setHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient) |
void |
setLogger(org.eclipse.jetty.util.log.StdErrLog logger) |
public org.apache.http.HttpResponse httpResponse(String url, org.json.JSONObject data, BzmHttpWrapper.Method method) throws IOException
IOExceptionpublic <T> T response(String url, org.json.JSONObject data, BzmHttpWrapper.Method method, Class<T> returnType)
public org.apache.http.impl.client.CloseableHttpClient getHttpClient()
public void setHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
public org.eclipse.jetty.util.log.StdErrLog getLogger()
public void setLogger(org.eclipse.jetty.util.log.StdErrLog logger)
Copyright © July 2012-2016 BlazeMeterInc. All Rights Reserved.