T
- public abstract class RequestBuilderBase<T extends RequestBuilderBase<T>> extends Object
Request
Modifier and Type | Field and Description |
---|---|
protected String |
baseURL |
protected com.ning.http.client.RequestBuilderBase.RequestImpl |
request |
protected SignatureCalculator |
signatureCalculator |
protected boolean |
useRawUrl |
Modifier | Constructor and Description |
---|---|
protected |
RequestBuilderBase(Class<T> derived,
Request prototype) |
protected |
RequestBuilderBase(Class<T> derived,
String method,
boolean rawUrls) |
protected final com.ning.http.client.RequestBuilderBase.RequestImpl request
protected boolean useRawUrl
protected String baseURL
protected SignatureCalculator signatureCalculator
public T setInetAddress(InetAddress address)
public T setLocalInetAddress(InetAddress address)
public T setHeaders(FluentCaseInsensitiveStringsMap headers)
public T setHeaders(Map<String,Collection<String>> headers)
public T setContentLength(int length)
public void resetQueryParameters()
public void resetCookies()
public void resetParameters()
public void resetNonMultipartData()
public void resetMultipartData()
public T setBody(byte[] data)
public T setBody(InputStream stream)
public T setBody(Request.EntityWriter dataWriter)
public T setBody(Request.EntityWriter dataWriter, long length)
public T setBody(BodyGenerator bodyGenerator)
public T setQueryParameters(FluentStringsMap parameters)
public T setParameters(FluentStringsMap parameters)
public T setParameters(Map<String,Collection<String>> parameters)
public T setProxyServer(ProxyServer proxyServer)
public T setFollowRedirects(boolean followRedirects)
public T setPerRequestConfig(PerRequestConfig perRequestConfig)
public T setRangeOffset(long rangeOffset)
public T setConnectionPoolKeyStrategy(ConnectionPoolKeyStrategy connectionPoolKeyStrategy)
public T setSignatureCalculator(SignatureCalculator signatureCalculator)
public Request build()
Copyright © 2014. All Rights Reserved.