public class ApacheHttpClient extends HttpClient<org.apache.http.HttpEntity>
| Modifier and Type | Field and Description |
|---|---|
static String |
URI_CONTEXT_KEY |
APPLICATION_FORM_URLENCODED, APPLICATION_JSON, APPLICATION_OCTET_STREAM, APPLICATION_XML, MULTIPART_FORM_DATA, request, TEXT_PLAIN| Constructor and Description |
|---|
ApacheHttpClient() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildCookie(Cookie c) |
protected void |
buildHeader(String name,
Object value,
boolean replace) |
protected void |
buildParam(String name,
Object... values) |
protected void |
buildPath(String path) |
protected void |
buildUrl(String url) |
void |
configure(HttpConfig config,
ScriptContext context) |
protected org.apache.http.HttpEntity |
getEntity(InputStream value,
String mediaType) |
protected org.apache.http.HttpEntity |
getEntity(List<MultiPartItem> items,
String mediaType) |
protected org.apache.http.HttpEntity |
getEntity(MultiValuedMap fields,
String mediaType) |
protected org.apache.http.HttpEntity |
getEntity(String value,
String mediaType) |
protected String |
getRequestUri() |
protected HttpResponse |
makeHttpRequest(org.apache.http.HttpEntity entity,
long startTime) |
construct, construct, getResponseTime, invokepublic static final String URI_CONTEXT_KEY
public void configure(HttpConfig config, ScriptContext context)
configure in class HttpClient<org.apache.http.HttpEntity>protected void buildUrl(String url)
buildUrl in class HttpClient<org.apache.http.HttpEntity>protected void buildPath(String path)
buildPath in class HttpClient<org.apache.http.HttpEntity>protected void buildParam(String name, Object... values)
buildParam in class HttpClient<org.apache.http.HttpEntity>protected void buildHeader(String name, Object value, boolean replace)
buildHeader in class HttpClient<org.apache.http.HttpEntity>protected void buildCookie(Cookie c)
buildCookie in class HttpClient<org.apache.http.HttpEntity>protected org.apache.http.HttpEntity getEntity(List<MultiPartItem> items, String mediaType)
getEntity in class HttpClient<org.apache.http.HttpEntity>protected org.apache.http.HttpEntity getEntity(MultiValuedMap fields, String mediaType)
getEntity in class HttpClient<org.apache.http.HttpEntity>protected org.apache.http.HttpEntity getEntity(String value, String mediaType)
getEntity in class HttpClient<org.apache.http.HttpEntity>protected org.apache.http.HttpEntity getEntity(InputStream value, String mediaType)
getEntity in class HttpClient<org.apache.http.HttpEntity>protected HttpResponse makeHttpRequest(org.apache.http.HttpEntity entity, long startTime)
makeHttpRequest in class HttpClient<org.apache.http.HttpEntity>protected String getRequestUri()
getRequestUri in class HttpClient<org.apache.http.HttpEntity>Copyright © 2017. All rights reserved.