Constructor and Description |
---|
NingWSRequest(NingWSClient client,
java.lang.String method,
java.lang.String url,
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> queryString,
com.ning.http.client.FluentCaseInsensitiveStringsMap headers) |
NingWSRequest(NingWSClient client,
java.lang.String method,
java.lang.String url,
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> queryString,
com.ning.http.client.FluentCaseInsensitiveStringsMap headers,
byte[] body) |
NingWSRequest(NingWSClient client,
java.lang.String method,
java.lang.String url,
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> queryString,
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> headers) |
Modifier and Type | Method and Description |
---|---|
NingWSRequest |
addHeader(java.lang.String name,
java.lang.String value)
Deprecated.
|
WSRequest |
auth(java.lang.String username,
java.lang.String password,
WSAuthScheme scheme) |
F.Promise<WSResponse> |
execute() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getAllHeaders()
Return the headers of the request being constructed
|
byte[] |
getBody()
Get the body.
|
java.util.List<java.lang.String> |
getHeader(java.lang.String name) |
java.lang.String |
getMethod() |
java.lang.String |
getUrl() |
NingWSRequest |
setHeader(java.lang.String name,
java.lang.String value)
Deprecated.
|
NingWSRequest |
setHeaders(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> hdrs)
Deprecated.
|
NingWSRequest |
setUrl(java.lang.String url)
Deprecated.
|
public NingWSRequest(NingWSClient client, java.lang.String method, java.lang.String url, java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> queryString, java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> headers)
public NingWSRequest(NingWSClient client, java.lang.String method, java.lang.String url, java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> queryString, com.ning.http.client.FluentCaseInsensitiveStringsMap headers)
public NingWSRequest(NingWSClient client, java.lang.String method, java.lang.String url, java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> queryString, com.ning.http.client.FluentCaseInsensitiveStringsMap headers, byte[] body)
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAllHeaders()
getAllHeaders
in interface WSRequest
public java.util.List<java.lang.String> getHeader(java.lang.String name)
public byte[] getBody()
WSRequest
public WSRequest auth(java.lang.String username, java.lang.String password, WSAuthScheme scheme)
public F.Promise<WSResponse> execute()
@Deprecated public NingWSRequest setHeader(java.lang.String name, java.lang.String value)
@Deprecated public NingWSRequest addHeader(java.lang.String name, java.lang.String value)
@Deprecated public NingWSRequest setHeaders(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> hdrs)
setHeaders
in interface WSRequest
@Deprecated public NingWSRequest setUrl(java.lang.String url)