| Modifier and Type | Field and Description |
|---|---|
ProxyServer |
proxyServer |
| Constructor and Description |
|---|
DefaultRequest(String method,
Uri uri,
InetAddress address,
InetAddress localAddress,
io.netty.handler.codec.http.HttpHeaders headers,
List<Cookie> cookies,
byte[] byteData,
List<byte[]> compositeByteData,
String stringData,
ByteBuffer byteBufferData,
InputStream streamData,
BodyGenerator bodyGenerator,
List<Param> formParams,
List<Part> bodyParts,
String virtualHost,
long contentLength,
ProxyServer proxyServer,
Realm realm,
File file,
Boolean followRedirect,
int requestTimeout,
long rangeOffset,
Charset charset,
ChannelPoolPartitioning channelPoolPartitioning,
NameResolver<InetAddress> nameResolver) |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getAddress()
Return the InetAddress to override
|
BodyGenerator |
getBodyGenerator()
Return the current request's body generator.
|
List<Part> |
getBodyParts()
Return the current
Part |
ByteBuffer |
getByteBufferData()
Return the current request's body as a ByteBuffer
|
byte[] |
getByteData()
Return the current request's body as a byte array
|
ChannelPoolPartitioning |
getChannelPoolPartitioning() |
Charset |
getCharset()
Return the charset value used when decoding the request's body.
|
List<byte[]> |
getCompositeByteData() |
long |
getContentLength()
Return the current size of the content-lenght header based on the body's size.
|
List<Cookie> |
getCookies()
Return cookies.
|
File |
getFile()
Return the
File to upload. |
Boolean |
getFollowRedirect()
Return follow redirect
|
List<Param> |
getFormParams()
Return the current form parameters.
|
io.netty.handler.codec.http.HttpHeaders |
getHeaders()
Return the current set of Headers.
|
InetAddress |
getLocalAddress() |
String |
getMethod()
Return the request's method name (GET, POST, etc.)
|
NameResolver<InetAddress> |
getNameResolver() |
ProxyServer |
getProxyServer()
Return the
ProxyServer |
List<Param> |
getQueryParams()
Return the query params.
|
long |
getRangeOffset()
Return the HTTP Range header value, or
|
Realm |
getRealm()
Return the
Realm |
int |
getRequestTimeout()
Overrides the config default value
|
InputStream |
getStreamData()
Return the current request's body as an InputStream
|
String |
getStringData()
Return the current request's body as a string
|
Uri |
getUri() |
String |
getUrl() |
String |
getVirtualHost()
Return the virtual host value.
|
String |
toString() |
public final ProxyServer proxyServer
public DefaultRequest(String method, Uri uri, InetAddress address, InetAddress localAddress, io.netty.handler.codec.http.HttpHeaders headers, List<Cookie> cookies, byte[] byteData, List<byte[]> compositeByteData, String stringData, ByteBuffer byteBufferData, InputStream streamData, BodyGenerator bodyGenerator, List<Param> formParams, List<Part> bodyParts, String virtualHost, long contentLength, ProxyServer proxyServer, Realm realm, File file, Boolean followRedirect, int requestTimeout, long rangeOffset, Charset charset, ChannelPoolPartitioning channelPoolPartitioning, NameResolver<InetAddress> nameResolver)
public String getMethod()
Requestpublic InetAddress getAddress()
RequestgetAddress in interface Requestpublic InetAddress getLocalAddress()
getLocalAddress in interface Requestpublic io.netty.handler.codec.http.HttpHeaders getHeaders()
RequestgetHeaders in interface RequestHttpHeaders contains headers.public List<Cookie> getCookies()
RequestgetCookies in interface Requestpublic byte[] getByteData()
RequestgetByteData in interface Requestpublic List<byte[]> getCompositeByteData()
getCompositeByteData in interface Requestpublic String getStringData()
RequestgetStringData in interface Requestpublic ByteBuffer getByteBufferData()
RequestgetByteBufferData in interface Requestpublic InputStream getStreamData()
RequestgetStreamData in interface Requestpublic BodyGenerator getBodyGenerator()
RequestgetBodyGenerator in interface Requestpublic List<Param> getFormParams()
RequestgetFormParams in interface Requestpublic List<Part> getBodyParts()
RequestPartgetBodyParts in interface RequestPartpublic String getVirtualHost()
RequestgetVirtualHost in interface Requestpublic long getContentLength()
RequestgetContentLength in interface Requestpublic ProxyServer getProxyServer()
RequestProxyServergetProxyServer in interface RequestProxyServerpublic Boolean getFollowRedirect()
RequestgetFollowRedirect in interface RequestBoolean.TRUE to follow redirect, Boolean.FALSE if NOT to follow whatever the client config, null otherwise.public int getRequestTimeout()
RequestgetRequestTimeout in interface Requestpublic long getRangeOffset()
RequestgetRangeOffset in interface Requestpublic Charset getCharset()
RequestgetCharset in interface Requestpublic ChannelPoolPartitioning getChannelPoolPartitioning()
getChannelPoolPartitioning in interface Requestpublic NameResolver<InetAddress> getNameResolver()
getNameResolver in interface Requestpublic List<Param> getQueryParams()
RequestgetQueryParams in interface RequestCopyright © 2016. All Rights Reserved.