public class HttpExecutorContext extends Object
| 构造器和说明 |
|---|
HttpExecutorContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpExecutorContext |
client(org.apache.http.impl.client.CloseableHttpClient httpclient) |
HttpExecutorContext |
context(org.apache.http.protocol.HttpContext httpContext) |
static HttpExecutorContext |
create() |
static HttpExecutorContext |
create(org.apache.http.impl.client.CloseableHttpClient httpclient) |
static HttpExecutorContext |
empty() |
org.apache.http.impl.client.CloseableHttpClient |
getHttpclient() |
org.apache.http.protocol.HttpContext |
getHttpContext() |
Map<String,String> |
getHttpHeaders() |
org.apache.http.HttpHost |
getHttpProxy() |
HttpExecutorContext |
header(String name,
String value) |
HttpExecutorContext |
headers(Map<String,String> httpHeaders) |
HttpExecutorContext |
proxy(org.apache.http.HttpHost httpProxy) |
public static HttpExecutorContext create()
public static HttpExecutorContext empty()
public static HttpExecutorContext create(org.apache.http.impl.client.CloseableHttpClient httpclient)
public HttpExecutorContext client(org.apache.http.impl.client.CloseableHttpClient httpclient)
public HttpExecutorContext context(org.apache.http.protocol.HttpContext httpContext)
public HttpExecutorContext proxy(org.apache.http.HttpHost httpProxy)
public HttpExecutorContext headers(Map<String,String> httpHeaders)
public HttpExecutorContext header(String name, String value)
public org.apache.http.impl.client.CloseableHttpClient getHttpclient()
public org.apache.http.protocol.HttpContext getHttpContext()
public org.apache.http.HttpHost getHttpProxy()
Copyright © 2018 江苏南大先腾信息产业股份有限公司. All rights reserved.