public class HttpExecutorContext extends Object
| Constructor and Description |
|---|
HttpExecutorContext() |
| Modifier and Type | Method and Description |
|---|---|
HttpExecutorContext |
client(org.apache.http.impl.client.CloseableHttpClient httpclient) |
HttpExecutorContext |
context(org.apache.http.protocol.HttpContext httpContext) |
HttpExecutorContext |
cookie(String name,
String value) |
HttpExecutorContext |
cookies(Map<String,String> httpCookies) |
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> |
getHttpCookies() |
Map<String,String> |
getHttpHeaders() |
org.apache.http.HttpHost |
getHttpProxy() |
int |
getTimeout() |
HttpExecutorContext |
header(String name,
String value) |
HttpExecutorContext |
headers(Map<String,String> httpHeaders) |
HttpExecutorContext |
proxy(org.apache.http.HttpHost httpProxy) |
HttpExecutorContext |
timout(int timeout) |
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 HttpExecutorContext cookies(Map<String,String> httpCookies)
public HttpExecutorContext cookie(String name, String value)
public HttpExecutorContext timout(int timeout)
public int getTimeout()
public org.apache.http.impl.client.CloseableHttpClient getHttpclient()
public org.apache.http.protocol.HttpContext getHttpContext()
public org.apache.http.HttpHost getHttpProxy()
Copyright © 2024 江苏南大先腾信息产业股份有限公司. All rights reserved.