public interface Request
Request r = new RequestBuilder().setUrl("url") .setRealm((new Realm.RealmBuilder()).setPrincipal(user) .setPassword(admin) .setRealmName("MyRealm") .setScheme(Realm.AuthScheme.DIGEST).build());
Modifier and Type | Method and Description |
---|---|
String |
getBodyEncoding()
Return the encoding value used when encoding the request's body.
|
BodyGenerator |
getBodyGenerator()
Return the current request's body generator.
|
byte[] |
getByteData()
Return the current request's body as a byte array
|
List<byte[]> |
getCompositeByteData() |
ConnectionPoolPartitioning |
getConnectionPoolPartitioning() |
long |
getContentLength()
Return the current size of the content-lenght header based on the body's size.
|
Collection<Cookie> |
getCookies()
Return Coookie.
|
File |
getFile()
Return the
File to upload. |
Boolean |
getFollowRedirect()
Return follow redirect
|
List<Param> |
getFormParams()
Return the current form parameters.
|
FluentCaseInsensitiveStringsMap |
getHeaders()
Return the current set of Headers.
|
InetAddress |
getInetAddress()
Return the InetAddress to override
|
InetAddress |
getLocalAddress() |
String |
getMethod()
Return the request's method name (GET, POST, etc.)
|
NameResolver |
getNameResolver() |
List<Part> |
getParts()
Return the current
Part s |
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 getMethod()
Uri getUri()
String getUrl()
InetAddress getInetAddress()
InetAddress getLocalAddress()
FluentCaseInsensitiveStringsMap getHeaders()
FluentCaseInsensitiveStringsMap
contains headers.Collection<Cookie> getCookies()
byte[] getByteData()
List<byte[]> getCompositeByteData()
String getStringData()
InputStream getStreamData()
BodyGenerator getBodyGenerator()
long getContentLength()
List<Param> getFormParams()
List
of parameters.String getVirtualHost()
ProxyServer getProxyServer()
ProxyServer
ProxyServer
Boolean getFollowRedirect()
int getRequestTimeout()
long getRangeOffset()
String getBodyEncoding()
ConnectionPoolPartitioning getConnectionPoolPartitioning()
NameResolver getNameResolver()
Copyright © 2016. All Rights Reserved.