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)
HttpRequestaddHeader in interface HttpRequestname - the header namevalue - the header valuepublic void addHeader(java.lang.String name,
java.util.Collection<java.lang.String> values)
HttpRequestaddHeader in interface HttpRequestname - the header namevalues - the header valuespublic void setBody(byte[] body)
HttpRequestsetBody in interface HttpRequestbody - the body contentpublic void execute(HttpChannelCompletionHandler handler)
HttpRequestexecute in interface HttpRequesthandler - the response handlerCopyright © 2015 Whizzo Software LLC. All rights reserved.