public static class HttpRequest.Builder<T>
extends java.lang.Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
HttpRequest.Builder<T> |
addHeader(java.lang.String name,
java.lang.String value) |
HttpRequest.Builder<T> |
addHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers) |
HttpRequest.Builder<T> |
addHeadersUnsafeNonAscii(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers) |
HttpRequest.Builder<T> |
addNoSignHeaderKeys(java.util.Set<java.lang.String> keys) |
HttpRequest.Builder<T> |
addNoSignParamKeys(java.util.Set<java.lang.String> keys) |
HttpRequest.Builder<T> |
body(RequestBodySerializer bodySerializer) |
HttpRequest<T> |
build() |
HttpRequest.Builder<T> |
contentMD5() |
HttpRequest.Builder<T> |
converter(ResponseBodyConverter<T> responseBodyConverter) |
HttpRequest.Builder<T> |
encodedQuery(java.util.Map<java.lang.String,java.lang.String> nameValues) |
HttpRequest.Builder<T> |
encodedQuery(java.lang.String queryString) |
HttpRequest.Builder<T> |
encodedQuery(java.lang.String key,
java.lang.String value) |
java.util.Set<java.lang.String> |
getNoSignHeaderKeys() |
java.util.Set<java.lang.String> |
getNoSignParamsKeys() |
HttpRequest.Builder<T> |
host(java.lang.String host) |
HttpRequest.Builder<T> |
method(java.lang.String method) |
HttpRequest.Builder<T> |
path(java.lang.String path) |
HttpRequest.Builder<T> |
port(int port) |
protected void |
prepareBuild() |
HttpRequest.Builder<T> |
query(java.util.Map<java.lang.String,java.lang.String> nameValues) |
HttpRequest.Builder<T> |
query(java.lang.String key,
java.lang.String value) |
HttpRequest.Builder<T> |
removeHeader(java.lang.String name) |
HttpRequest.Builder<T> |
scheme(java.lang.String scheme) |
HttpRequest.Builder<T> |
setKeyTime(java.lang.String keyTime) |
HttpRequest.Builder<T> |
setUseCache(boolean cacheEnabled) |
HttpRequest.Builder<T> |
tag(java.lang.Object tag) |
HttpRequest.Builder<T> |
url(java.net.URL url) |
HttpRequest.Builder<T> |
userAgent(java.lang.String userAgent) |
public HttpRequest.Builder<T> url(java.net.URL url)
public HttpRequest.Builder<T> scheme(java.lang.String scheme)
public HttpRequest.Builder<T> tag(java.lang.Object tag)
public HttpRequest.Builder<T> host(java.lang.String host)
public HttpRequest.Builder<T> port(int port)
public HttpRequest.Builder<T> path(java.lang.String path)
public HttpRequest.Builder<T> method(java.lang.String method)
public HttpRequest.Builder<T> query(java.lang.String key, java.lang.String value)
public HttpRequest.Builder<T> encodedQuery(java.lang.String key, java.lang.String value)
public HttpRequest.Builder<T> encodedQuery(java.lang.String queryString)
public HttpRequest.Builder<T> query(java.util.Map<java.lang.String,java.lang.String> nameValues)
public HttpRequest.Builder<T> encodedQuery(java.util.Map<java.lang.String,java.lang.String> nameValues)
public HttpRequest.Builder<T> contentMD5()
public HttpRequest.Builder<T> addHeader(java.lang.String name, java.lang.String value)
public HttpRequest.Builder<T> addHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
public HttpRequest.Builder<T> addHeadersUnsafeNonAscii(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
public HttpRequest.Builder<T> removeHeader(java.lang.String name)
public HttpRequest.Builder<T> addNoSignHeaderKeys(java.util.Set<java.lang.String> keys)
public HttpRequest.Builder<T> addNoSignParamKeys(java.util.Set<java.lang.String> keys)
public HttpRequest.Builder<T> setKeyTime(java.lang.String keyTime)
public java.util.Set<java.lang.String> getNoSignHeaderKeys()
public java.util.Set<java.lang.String> getNoSignParamsKeys()
public HttpRequest.Builder<T> userAgent(java.lang.String userAgent)
public HttpRequest.Builder<T> setUseCache(boolean cacheEnabled)
public HttpRequest.Builder<T> body(RequestBodySerializer bodySerializer)
public HttpRequest.Builder<T> converter(ResponseBodyConverter<T> responseBodyConverter)
protected void prepareBuild()
public HttpRequest<T> build()