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 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 |
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 nameResolver)
public String getMethod()
Request
public InetAddress getAddress()
Request
getAddress
in interface Request
public InetAddress getLocalAddress()
getLocalAddress
in interface Request
public io.netty.handler.codec.http.HttpHeaders getHeaders()
Request
getHeaders
in interface Request
HttpHeaders
contains headers.public List<Cookie> getCookies()
Request
getCookies
in interface Request
public byte[] getByteData()
Request
getByteData
in interface Request
public List<byte[]> getCompositeByteData()
getCompositeByteData
in interface Request
public String getStringData()
Request
getStringData
in interface Request
public ByteBuffer getByteBufferData()
Request
getByteBufferData
in interface Request
public InputStream getStreamData()
Request
getStreamData
in interface Request
public BodyGenerator getBodyGenerator()
Request
getBodyGenerator
in interface Request
public List<Param> getFormParams()
Request
getFormParams
in interface Request
public List<Part> getBodyParts()
Request
Part
getBodyParts
in interface Request
Part
public String getVirtualHost()
Request
getVirtualHost
in interface Request
public long getContentLength()
Request
getContentLength
in interface Request
public ProxyServer getProxyServer()
Request
ProxyServer
getProxyServer
in interface Request
ProxyServer
public Boolean getFollowRedirect()
Request
getFollowRedirect
in interface Request
Boolean.TRUE
to follow redirect, Boolean.FALSE
if NOT to follow whatever the client config, null otherwise.public int getRequestTimeout()
Request
getRequestTimeout
in interface Request
public long getRangeOffset()
Request
getRangeOffset
in interface Request
public Charset getCharset()
Request
getCharset
in interface Request
public ChannelPoolPartitioning getChannelPoolPartitioning()
getChannelPoolPartitioning
in interface Request
public NameResolver getNameResolver()
getNameResolver
in interface Request
public List<Param> getQueryParams()
Request
getQueryParams
in interface Request
Copyright © 2015. All Rights Reserved.