public static class WS.WSRequest extends com.ning.http.client.RequestBuilderBase<WS.WSRequest>
Constructor and Description |
---|
WS.WSRequest(java.lang.String method) |
Modifier and Type | Method and Description |
---|---|
WS.WSRequest |
addHeader(java.lang.String name,
java.lang.String value)
Add an HTTP header (used for headers with mutiple values).
|
F.Promise<WS.Response> |
execute() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAllHeaders()
Return the headers of the request being constructed
|
java.util.List<java.lang.String> |
getHeader(java.lang.String name) |
java.lang.String |
getMethod() |
java.lang.String |
getUrl() |
WS.WSRequest |
setHeader(java.lang.String name,
java.lang.String value)
Set an HTTP header.
|
WS.WSRequest |
setHeaders(com.ning.http.client.FluentCaseInsensitiveStringsMap hdrs)
Defines the request headers.
|
WS.WSRequest |
setHeaders(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> hdrs)
Defines the request headers.
|
WS.WSRequest |
setUrl(java.lang.String url) |
addBodyPart, addCookie, addOrReplaceCookie, addParameter, addQueryParameter, build, setBody, setBody, setBody, setBody, setBody, setBody, setBody, setBodyEncoding, setConnectionPoolKeyStrategy, setContentLength, setFollowRedirects, setInetAddress, setLocalInetAddress, setMethod, setParameters, setParameters, setPerRequestConfig, setProxyServer, setQueryParameters, setRangeOffset, setRealm, setVirtualHost
public WS.WSRequest setHeader(java.lang.String name, java.lang.String value)
setHeader
in class com.ning.http.client.RequestBuilderBase<WS.WSRequest>
public WS.WSRequest addHeader(java.lang.String name, java.lang.String value)
addHeader
in class com.ning.http.client.RequestBuilderBase<WS.WSRequest>
public WS.WSRequest setHeaders(com.ning.http.client.FluentCaseInsensitiveStringsMap hdrs)
setHeaders
in class com.ning.http.client.RequestBuilderBase<WS.WSRequest>
public WS.WSRequest setHeaders(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> hdrs)
setHeaders
in class com.ning.http.client.RequestBuilderBase<WS.WSRequest>
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAllHeaders()
public java.util.List<java.lang.String> getHeader(java.lang.String name)
public java.lang.String getMethod()
public WS.WSRequest setUrl(java.lang.String url)
setUrl
in class com.ning.http.client.RequestBuilderBase<WS.WSRequest>
public java.lang.String getUrl()
public F.Promise<WS.Response> execute()