|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ning.http.client.RequestBuilderBase<WS.WSRequest> play.libs.WS.WSRequest
public static class WS.WSRequest
Provides the bridge between Play and the underlying ning request
Field Summary |
---|
Fields inherited from class com.ning.http.client.RequestBuilderBase |
---|
request, useRawUrl |
Constructor Summary | |
---|---|
WS.WSRequest(java.lang.String method)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class com.ning.http.client.RequestBuilderBase |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WS.WSRequest(java.lang.String method)
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |