public abstract class BaseApacheRequest extends BaseHttpRequest implements Awaitable<ApacheResponse>
Modifier and Type | Field and Description |
---|---|
protected org.apache.http.impl.client.CloseableHttpClient |
client
client
|
protected org.apache.http.client.methods.HttpRequestBase |
request
HttpRequest
|
body, bodyLen, bodyOffset, charset, contentType, cookies, DEFAULT_USERAGENT, formParts, headers, ignoreHeaders, method, queryParams, queryString, queryStringEncode, url
Constructor and Description |
---|
BaseApacheRequest() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildRequest()
构建请求
|
BaseApacheRequest |
cancel()
取消请求
|
BaseApacheRequest |
client(org.apache.http.impl.client.CloseableHttpClient client)
client
|
org.apache.http.impl.client.CloseableHttpClient |
getClient() |
protected org.apache.http.HttpEntity |
getEntry()
获取 entity
|
protected void |
getRequestByMethod()
获取 method
|
body, body, body, charset, contentType, contentType, cookie, cookies, format, format, formPart, formParts, getBody, getBodyLen, getBodyOffset, getCharset, getContentType, getCookies, getFormParts, getHeaders, getIgnoreHeaders, getMethod, getQueryParams, getQueryString, getUrl, header, headers, ignoreHeader, ignoreHeaders, ignoreHeaders, isNoBodyRequest, isQueryStringEncode, method, method, queryParam, queryParams, queryStringEncode, referer, toString, url, userAgent
protected org.apache.http.impl.client.CloseableHttpClient client
protected org.apache.http.client.methods.HttpRequestBase request
public BaseApacheRequest client(org.apache.http.impl.client.CloseableHttpClient client)
client
- clientpublic BaseApacheRequest cancel()
protected void buildRequest()
BaseHttpRequest
buildRequest
in class BaseHttpRequest
protected void getRequestByMethod()
protected org.apache.http.HttpEntity getEntry()
public org.apache.http.impl.client.CloseableHttpClient getClient()
Copyright © 2024. All rights reserved.