public class NingHttpRequestAdapter extends java.lang.Object implements HttpRequest
HttpRequest.Method
Constructor and Description |
---|
NingHttpRequestAdapter(AsyncHttpClient client,
java.net.URI uri,
HttpRequest.Method method) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String name,
java.util.Collection<java.lang.String> values)
Adds a new request header.
|
void |
addHeader(java.lang.String name,
java.lang.String value)
Adds a new request header.
|
void |
execute(HttpChannelCompletionHandler handler)
Executes the request.
|
void |
setBody(byte[] body)
Sets the request body.
|
public NingHttpRequestAdapter(AsyncHttpClient client, java.net.URI uri, HttpRequest.Method method)
public void addHeader(java.lang.String name, java.lang.String value)
HttpRequest
addHeader
in interface HttpRequest
name
- the header namevalue
- the header valuepublic void addHeader(java.lang.String name, java.util.Collection<java.lang.String> values)
HttpRequest
addHeader
in interface HttpRequest
name
- the header namevalues
- the header valuespublic void setBody(byte[] body)
HttpRequest
setBody
in interface HttpRequest
body
- the body contentpublic void execute(HttpChannelCompletionHandler handler)
HttpRequest
execute
in interface HttpRequest
handler
- the response handlerCopyright © 2015 Whizzo Software LLC. All rights reserved.