public interface Request
Request r = new RequestBuilder().setUrl("url")
.setRealm((new Realm.RealmBuilder()).setPrincipal(user)
.setPassword(admin)
.setRealmName("MyRealm")
.setScheme(Realm.AuthScheme.DIGEST).build());
r.execute();
Modifier and Type | Interface and Description |
---|---|
static interface |
Request.EntityWriter
An entity that can be used to manipulate the Request's body output before it get sent.
|
Modifier and Type | Method and Description |
---|---|
BodyGenerator |
getBodyGenerator()
Return the current request's body generator.
|
byte[] |
getByteData()
Return the current request's body as a byte array
|
Collection<Cookie> |
getCookies()
Return Coookie.
|
Request.EntityWriter |
getEntityWriter()
Return the current request's body as an EntityWriter
|
File |
getFile()
Return the
File to upload. |
FluentCaseInsensitiveStringsMap |
getHeaders()
Return the current set of Headers.
|
long |
getLength()
Return the current size of the content-lenght header based on the body's size.
|
String |
getMethod()
Return the request's method name (GET, POST, etc.)
|
FluentStringsMap |
getParams()
Return the current parameters.
|
List<Part> |
getParts()
Return the current
Part |
PerRequestConfig |
getPerRequestConfig()
Return Per request configuration.
|
ProxyServer |
getProxyServer()
Return the
ProxyServer |
FluentStringsMap |
getQueryParams()
Return the query params.
|
long |
getRangeOffset()
Return the HTTP Range header value, or
|
String |
getRawUrl()
Return the undecoded url
|
Realm |
getRealm()
Return the
Realm |
String |
getReqType()
Deprecated.
- use getMethod
|
InputStream |
getStreamData()
Return the current request's body as an InputStream
|
String |
getStringData()
Return the current request's body as a string
|
String |
getUrl()
Return the decoded url
|
String |
getVirtualHost()
Return the virtual host value.
|
boolean |
isRedirectEnabled()
Return the true> to follow redirect
|
String getReqType()
String getMethod()
String getUrl()
String getRawUrl()
FluentCaseInsensitiveStringsMap getHeaders()
FluentCaseInsensitiveStringsMap
contains headers.Collection<Cookie> getCookies()
byte[] getByteData()
String getStringData()
InputStream getStreamData()
Request.EntityWriter getEntityWriter()
BodyGenerator getBodyGenerator()
long getLength()
FluentStringsMap getParams()
FluentStringsMap
of parameters.String getVirtualHost()
FluentStringsMap getQueryParams()
FluentStringsMap
of query stringProxyServer getProxyServer()
ProxyServer
ProxyServer
boolean isRedirectEnabled()
PerRequestConfig getPerRequestConfig()
long getRangeOffset()
Copyright © 2012. All Rights Reserved.