com.ning.http.client.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();
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Request.EntityWriter | An entity that can be used to manipulate the Request's body output before it get sent. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the encoding value used when encoding the request's body.
| |||||||||||
Return the current request's body generator.
| |||||||||||
Return the current request's body as a byte array
| |||||||||||
Return the current size of the content-lenght header based on the body's size.
| |||||||||||
Return Coookie.
| |||||||||||
Return the current request's body as an EntityWriter
| |||||||||||
Return the File to upload.
| |||||||||||
Return the current set of Headers.
| |||||||||||
Return the InetAddress to override
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
Return the request's method name (GET, POST, etc.)
| |||||||||||
Return the current parameters.
| |||||||||||
Return the current
Part | |||||||||||
Return Per request configuration.
| |||||||||||
Return the
ProxyServer | |||||||||||
Return the query params.
| |||||||||||
Return the HTTP Range header value, or
| |||||||||||
Return the undecoded url
| |||||||||||
Return the
Realm | |||||||||||
This method is deprecated.
- use getMethod
| |||||||||||
Return the current request's body as an InputStream
| |||||||||||
Return the current request's body as a string
| |||||||||||
Return the decoded url
| |||||||||||
Return the virtual host value.
| |||||||||||
Return the true> to follow redirect
| |||||||||||
Return the encoding value used when encoding the request's body.
Return the current request's body generator.
Return the current request's body as a byte array
Return the current size of the content-lenght header based on the body's size.
Return Coookie.
Return the current request's body as an EntityWriter
Return the File to upload.
Return the current set of Headers.
FluentCaseInsensitiveStringsMap
contains headers.
Return the InetAddress to override
This method is deprecated.
No replacement.
Return the current size of the content-lenght header based on the body's size.
Return the request's method name (GET, POST, etc.)
Return the current parameters.
FluentStringsMap
of parameters.
Return Per request configuration.
Return the query params.
FluentStringsMap
of query string
Return the HTTP Range header value, or
Return the undecoded url
This method is deprecated.
- use getMethod
Return the request's type (GET, POST, etc.)
Return the current request's body as an InputStream
Return the current request's body as a string
Return the decoded url
Return the virtual host value.
Return the true> to follow redirect