Package org.asynchttpclient
Class DefaultRequest
- java.lang.Object
- 
- org.asynchttpclient.DefaultRequest
 
- 
- 
Field SummaryFields Modifier and Type Field Description @Nullable ProxyServerproxyServer
 - 
Constructor SummaryConstructors Constructor Description DefaultRequest(String method, Uri uri, @Nullable InetAddress address, @Nullable InetAddress localAddress, io.netty.handler.codec.http.HttpHeaders headers, List<io.netty.handler.codec.http.cookie.Cookie> cookies, byte @Nullable [] byteData, @Nullable List<byte[]> compositeByteData, @Nullable String stringData, @Nullable ByteBuffer byteBufferData, @Nullable io.netty.buffer.ByteBuf byteBufData, @Nullable InputStream streamData, @Nullable BodyGenerator bodyGenerator, List<Param> formParams, List<Part> bodyParts, @Nullable String virtualHost, @Nullable ProxyServer proxyServer, @Nullable Realm realm, @Nullable File file, @Nullable Boolean followRedirect, @Nullable Duration requestTimeout, @Nullable Duration readTimeout, long rangeOffset, @Nullable Charset charset, ChannelPoolPartitioning channelPoolPartitioning, io.netty.resolver.NameResolver<InetAddress> nameResolver)
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
proxyServer@Nullable public final @Nullable ProxyServer proxyServer 
 
- 
 - 
Constructor Detail- 
DefaultRequestpublic DefaultRequest(String method, Uri uri, @Nullable @Nullable InetAddress address, @Nullable @Nullable InetAddress localAddress, io.netty.handler.codec.http.HttpHeaders headers, List<io.netty.handler.codec.http.cookie.Cookie> cookies, byte @Nullable [] byteData, @Nullable @Nullable List<byte[]> compositeByteData, @Nullable @Nullable String stringData, @Nullable @Nullable ByteBuffer byteBufferData, @Nullable @Nullable io.netty.buffer.ByteBuf byteBufData, @Nullable @Nullable InputStream streamData, @Nullable @Nullable BodyGenerator bodyGenerator, List<Param> formParams, List<Part> bodyParts, @Nullable @Nullable String virtualHost, @Nullable @Nullable ProxyServer proxyServer, @Nullable @Nullable Realm realm, @Nullable @Nullable File file, @Nullable @Nullable Boolean followRedirect, @Nullable @Nullable Duration requestTimeout, @Nullable @Nullable Duration readTimeout, long rangeOffset, @Nullable @Nullable Charset charset, ChannelPoolPartitioning channelPoolPartitioning, io.netty.resolver.NameResolver<InetAddress> nameResolver) 
 
- 
 - 
Method Detail- 
getUrlpublic String getUrl() 
 - 
getMethodpublic String getMethod() 
 - 
getAddress@Nullable public @Nullable InetAddress getAddress() - Specified by:
- getAddressin interface- Request
- Returns:
- the InetAddress to be used to bypass uri's hostname resolution
 
 - 
getLocalAddress@Nullable public @Nullable InetAddress getLocalAddress() - Specified by:
- getLocalAddressin interface- Request
- Returns:
- the local address to bind from
 
 - 
getHeaderspublic io.netty.handler.codec.http.HttpHeaders getHeaders() - Specified by:
- getHeadersin interface- Request
- Returns:
- the HTTP headers
 
 - 
getCookiespublic List<io.netty.handler.codec.http.cookie.Cookie> getCookies() - Specified by:
- getCookiesin interface- Request
- Returns:
- the HTTP cookies
 
 - 
getByteDatapublic byte @Nullable [] getByteData() - Specified by:
- getByteDatain interface- Request
- Returns:
- the request's body byte array (only non-null if it was set this way)
 
 - 
getCompositeByteData@Nullable public @Nullable List<byte[]> getCompositeByteData() - Specified by:
- getCompositeByteDatain interface- Request
- Returns:
- the request's body array of byte arrays (only non-null if it was set this way)
 
 - 
getStringData@Nullable public @Nullable String getStringData() - Specified by:
- getStringDatain interface- Request
- Returns:
- the request's body string (only non-null if it was set this way)
 
 - 
getByteBufferData@Nullable public @Nullable ByteBuffer getByteBufferData() - Specified by:
- getByteBufferDatain interface- Request
- Returns:
- the request's body ByteBuffer (only non-null if it was set this way)
 
 - 
getByteBufData@Nullable public @Nullable io.netty.buffer.ByteBuf getByteBufData() - Specified by:
- getByteBufDatain interface- Request
- Returns:
- the request's body ByteBuf (only non-null if it was set this way)
 
 - 
getStreamData@Nullable public @Nullable InputStream getStreamData() - Specified by:
- getStreamDatain interface- Request
- Returns:
- the request's body InputStream (only non-null if it was set this way)
 
 - 
getBodyGenerator@Nullable public @Nullable BodyGenerator getBodyGenerator() - Specified by:
- getBodyGeneratorin interface- Request
- Returns:
- the request's body BodyGenerator (only non-null if it was set this way)
 
 - 
getFormParamspublic List<Param> getFormParams() - Specified by:
- getFormParamsin interface- Request
- Returns:
- the request's form parameters
 
 - 
getBodyPartspublic List<Part> getBodyParts() - Specified by:
- getBodyPartsin interface- Request
- Returns:
- the multipart parts
 
 - 
getVirtualHost@Nullable public @Nullable String getVirtualHost() - Specified by:
- getVirtualHostin interface- Request
- Returns:
- the virtual host to connect to
 
 - 
getProxyServer@Nullable public @Nullable ProxyServer getProxyServer() - Specified by:
- getProxyServerin interface- Request
- Returns:
- the proxy server to be used to perform this request (overrides the one defined in config)
 
 - 
getRealm@Nullable public @Nullable Realm getRealm() 
 - 
getFile@Nullable public @Nullable File getFile() 
 - 
getFollowRedirect@Nullable public @Nullable Boolean getFollowRedirect() - Specified by:
- getFollowRedirectin interface- Request
- Returns:
- if this request is to follow redirects. Non null values means "override config value".
 
 - 
getRequestTimeoutpublic Duration getRequestTimeout() - Specified by:
- getRequestTimeoutin interface- Request
- Returns:
- the request timeout. Non zero values means "override config value".
 
 - 
getReadTimeoutpublic Duration getReadTimeout() - Specified by:
- getReadTimeoutin interface- Request
- Returns:
- the read timeout. Non-zero values means "override config value".
 
 - 
getRangeOffsetpublic long getRangeOffset() - Specified by:
- getRangeOffsetin interface- Request
- Returns:
- the range header value, or 0 is not set.
 
 - 
getCharset@Nullable public @Nullable Charset getCharset() - Specified by:
- getCharsetin interface- Request
- Returns:
- the charset value used when decoding the request's body.
 
 - 
getChannelPoolPartitioningpublic ChannelPoolPartitioning getChannelPoolPartitioning() - Specified by:
- getChannelPoolPartitioningin interface- Request
- Returns:
- the strategy to compute ChannelPool's keys
 
 - 
getNameResolverpublic io.netty.resolver.NameResolver<InetAddress> getNameResolver() - Specified by:
- getNameResolverin interface- Request
- Returns:
- the NameResolver to be used to resolve hostnams's IP
 
 - 
getQueryParamspublic List<Param> getQueryParams() - Specified by:
- getQueryParamsin interface- Request
- Returns:
- the query params resolved from the url/uri
 
 
- 
 
-