public class ApacheRequestBuilder extends AbstractRequestBuilder<ApacheRequestBuilder.HttpComponentsRequest>
限定符和类型 | 类和说明 |
---|---|
static class |
ApacheRequestBuilder.HttpComponentsRequest |
parameters, request, url
determineRequestUrl, findBodyConverter
public static ApacheRequestBuilder create()
public static ApacheRequestBuilder create(String url)
public static ApacheRequestBuilder create(String url, Map<String,Object> parameters)
public static ApacheRequestBuilder create(String url, List<Header> headers)
public static ApacheRequestBuilder create(String url, Map<String,Object> parameters, List<Header> headers)
public ApacheRequestBuilder setProtocolVersion(ProtocolVersion protocolVersion)
RequestBuilder
setProtocolVersion
在接口中 RequestBuilder<ApacheRequestBuilder.HttpComponentsRequest>
setProtocolVersion
在类中 AbstractRequestBuilder<ApacheRequestBuilder.HttpComponentsRequest>
protocolVersion
- 协议及版本public ApacheRequestBuilder setUrl(String url)
RequestBuilder
setUrl
在接口中 RequestBuilder<ApacheRequestBuilder.HttpComponentsRequest>
setUrl
在类中 AbstractRequestBuilder<ApacheRequestBuilder.HttpComponentsRequest>
url
- 请求 URLpublic ApacheRequestBuilder setHeaders(List<Header> headers)
RequestBuilder
setHeaders
在接口中 RequestBuilder<ApacheRequestBuilder.HttpComponentsRequest>
setHeaders
在类中 AbstractRequestBuilder<ApacheRequestBuilder.HttpComponentsRequest>
headers
- 请求头public ApacheRequestBuilder setParameters(Map<String,Object> parameters)
RequestBuilder
setParameters
在接口中 RequestBuilder<ApacheRequestBuilder.HttpComponentsRequest>
setParameters
在类中 AbstractRequestBuilder<ApacheRequestBuilder.HttpComponentsRequest>
parameters
- 请求参数public ApacheRequestBuilder setRequestConfig(org.apache.http.client.config.RequestConfig config)
public ApacheRequestBuilder get()
RequestBuilder
public ApacheRequestBuilder post(RequestBody<?> body)
RequestBuilder
body
- 请求体public ApacheRequestBuilder patch(RequestBody<?> body)
RequestBuilder
body
- 请求体public ApacheRequestBuilder put(RequestBody<?> body)
RequestBuilder
body
- 请求体public ApacheRequestBuilder delete()
RequestBuilder
public ApacheRequestBuilder connect()
RequestBuilder
public ApacheRequestBuilder trace()
RequestBuilder
public ApacheRequestBuilder copy()
RequestBuilder
public ApacheRequestBuilder move()
RequestBuilder
public ApacheRequestBuilder head()
RequestBuilder
public ApacheRequestBuilder options()
RequestBuilder
public ApacheRequestBuilder link()
RequestBuilder
public ApacheRequestBuilder unlink()
RequestBuilder
public ApacheRequestBuilder purge()
RequestBuilder
public ApacheRequestBuilder lock()
RequestBuilder
public ApacheRequestBuilder unlock()
RequestBuilder
public ApacheRequestBuilder propfind()
RequestBuilder
public ApacheRequestBuilder proppatch(RequestBody<?> body)
RequestBuilder
body
- 请求体public ApacheRequestBuilder report(RequestBody<?> body)
RequestBuilder
body
- 请求体public ApacheRequestBuilder view()
RequestBuilder
public ApacheRequestBuilder wrapped()
RequestBuilder
public ApacheRequestBuilder.HttpComponentsRequest build()
RequestBuilder
Request
protected ApacheRequestBuilder setRequest(org.apache.http.client.methods.HttpRequestBase httpRequest, RequestMethod method)
protected ApacheRequestBuilder setRequest(org.apache.http.client.methods.HttpEntityEnclosingRequestBase httpRequest, RequestMethod method, RequestBody<?> body)
Copyright © 2023 buession.com Inc.. All rights reserved.