|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Request
The Request class can be used to construct HTTP request:
Request r = new RequestBuilder().setUrl("url") .setRealm((new Realm.RealmBuilder()).setPrincipal(user) .setPassword(admin) .setRealmName("MyRealm") .setScheme(Realm.AuthScheme.DIGEST).build()); r.execute();
Method Summary | |
---|---|
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 |
ConnectionPoolKeyStrategy |
getConnectionPoolKeyStrategy()
|
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.) |
List<Part> |
getParts()
Return the current Part |
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 |
getRequestTimeoutInMs()
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 |
UriComponents |
getURI()
|
String |
getVirtualHost()
Return the virtual host value. |
Method Detail |
---|
String getMethod()
UriComponents getURI()
InetAddress getInetAddress()
InetAddress getLocalAddress()
FluentCaseInsensitiveStringsMap getHeaders()
FluentCaseInsensitiveStringsMap
contains headers.Collection<Cookie> getCookies()
byte[] getByteData()
String getStringData()
InputStream getStreamData()
BodyGenerator getBodyGenerator()
long getContentLength()
List<Param> getFormParams()
FluentStringsMap
of parameters.List<Part> getParts()
Part
Part
String getVirtualHost()
List<Param> getQueryParams()
FluentStringsMap
of query stringProxyServer getProxyServer()
ProxyServer
ProxyServer
Realm getRealm()
Realm
Realm
File getFile()
File
to upload.
File
to upload.Boolean getFollowRedirect()
int getRequestTimeoutInMs()
long getRangeOffset()
String getBodyEncoding()
ConnectionPoolKeyStrategy getConnectionPoolKeyStrategy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |