com.ning.http.client
Class AsyncHttpClient.BoundRequestBuilder
java.lang.Object
com.ning.http.client.AsyncHttpClient.BoundRequestBuilder
- Enclosing class:
- AsyncHttpClient
public class AsyncHttpClient.BoundRequestBuilder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
execute
public <T> Future<T> execute(AsyncHandler<T> handler)
throws IOException
- Throws:
IOException
execute
public Future<Response> execute()
throws IOException
- Throws:
IOException
addBodyPart
public AsyncHttpClient.BoundRequestBuilder addBodyPart(Part part)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
addCookie
public AsyncHttpClient.BoundRequestBuilder addCookie(Cookie cookie)
addHeader
public AsyncHttpClient.BoundRequestBuilder addHeader(String name,
String value)
addParameter
public AsyncHttpClient.BoundRequestBuilder addParameter(String key,
String value)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
addQueryParameter
public AsyncHttpClient.BoundRequestBuilder addQueryParameter(String name,
String value)
build
public Request build()
setBody
public AsyncHttpClient.BoundRequestBuilder setBody(byte[] data)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setBody
public AsyncHttpClient.BoundRequestBuilder setBody(Request.EntityWriter dataWriter,
long length)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setBody
public AsyncHttpClient.BoundRequestBuilder setBody(Request.EntityWriter dataWriter)
setBody
public AsyncHttpClient.BoundRequestBuilder setBody(InputStream stream)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setBody
public AsyncHttpClient.BoundRequestBuilder setBody(String data)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setHeader
public AsyncHttpClient.BoundRequestBuilder setHeader(String name,
String value)
setHeaders
public AsyncHttpClient.BoundRequestBuilder setHeaders(Headers headers)
setHeaders
public AsyncHttpClient.BoundRequestBuilder setHeaders(Map<String,Collection<String>> headers)
setParameters
public AsyncHttpClient.BoundRequestBuilder setParameters(Map<String,String> parameters)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setParameters
public AsyncHttpClient.BoundRequestBuilder setParameters(com.google.common.collect.Multimap<String,String> parameters)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setUrl
public AsyncHttpClient.BoundRequestBuilder setUrl(String url)
setVirtualHost
public AsyncHttpClient.BoundRequestBuilder setVirtualHost(String virtualHost)
Copyright © 2010. All Rights Reserved.