T
- the builder typepublic abstract class RequestBuilderBase<T extends RequestBuilderBase<T>> extends Object
Request
Modifier and Type | Field and Description |
---|---|
protected InetAddress |
address |
protected BodyGenerator |
bodyGenerator |
protected List<Part> |
bodyParts |
protected ByteBuffer |
byteBufferData |
protected byte[] |
byteData |
protected ChannelPoolPartitioning |
channelPoolPartitioning |
protected Charset |
charset |
protected List<byte[]> |
compositeByteData |
protected long |
contentLength |
protected ArrayList<Cookie> |
cookies |
protected File |
file |
protected Boolean |
followRedirect |
protected List<Param> |
formParams |
protected io.netty.handler.codec.http.HttpHeaders |
headers |
protected InetAddress |
localAddress |
protected String |
method |
protected NameResolver |
nameResolver |
protected ProxyServer |
proxyServer |
protected List<Param> |
queryParams |
protected long |
rangeOffset |
protected Realm |
realm |
protected int |
requestTimeout |
protected SignatureCalculator |
signatureCalculator |
protected InputStream |
streamData |
protected String |
stringData |
protected Uri |
uri |
protected UriEncoder |
uriEncoder |
protected String |
virtualHost |
Modifier | Constructor and Description |
---|---|
protected |
RequestBuilderBase(Request prototype) |
protected |
RequestBuilderBase(Request prototype,
boolean disableUrlEncoding,
boolean validateHeaders) |
protected |
RequestBuilderBase(String method,
boolean disableUrlEncoding) |
protected |
RequestBuilderBase(String method,
boolean disableUrlEncoding,
boolean validateHeaders) |
protected UriEncoder uriEncoder
protected SignatureCalculator signatureCalculator
protected String method
protected Uri uri
protected InetAddress address
protected InetAddress localAddress
protected io.netty.handler.codec.http.HttpHeaders headers
protected byte[] byteData
protected List<byte[]> compositeByteData
protected String stringData
protected ByteBuffer byteBufferData
protected InputStream streamData
protected BodyGenerator bodyGenerator
protected String virtualHost
protected long contentLength
protected ProxyServer proxyServer
protected Realm realm
protected File file
protected Boolean followRedirect
protected int requestTimeout
protected long rangeOffset
protected Charset charset
protected ChannelPoolPartitioning channelPoolPartitioning
protected NameResolver nameResolver
protected RequestBuilderBase(String method, boolean disableUrlEncoding)
protected RequestBuilderBase(String method, boolean disableUrlEncoding, boolean validateHeaders)
protected RequestBuilderBase(Request prototype)
protected RequestBuilderBase(Request prototype, boolean disableUrlEncoding, boolean validateHeaders)
public T setAddress(InetAddress address)
public T setLocalAddress(InetAddress address)
public T setHeader(CharSequence name, String value)
public T addHeader(CharSequence name, String value)
public T setHeaders(io.netty.handler.codec.http.HttpHeaders headers)
public T setHeaders(Map<String,Collection<String>> headers)
public T setContentLength(int contentLength)
public T setCookies(Collection<Cookie> cookies)
public void resetCookies()
public void resetQuery()
public void resetFormParams()
public void resetNonMultipartData()
public void resetMultipartData()
public T setBody(byte[] data)
public T setBody(ByteBuffer data)
public T setBody(InputStream stream)
public T setBody(org.reactivestreams.Publisher<ByteBuffer> publisher)
public T setBody(BodyGenerator bodyGenerator)
public T setProxyServer(ProxyServer proxyServer)
public T setProxyServer(ProxyServer.Builder proxyServerBuilder)
public T setFollowRedirect(boolean followRedirect)
public T setRequestTimeout(int requestTimeout)
public T setRangeOffset(long rangeOffset)
public T setChannelPoolPartitioning(ChannelPoolPartitioning channelPoolPartitioning)
public T setNameResolver(NameResolver nameResolver)
public T setSignatureCalculator(SignatureCalculator signatureCalculator)
public Request build()
Copyright © 2015. All Rights Reserved.