T
- The request type to build.public abstract class AbstractRequestBuilder<T> extends AbstractMessageBuilder<T>
BasicHttpRequest
instances.Modifier | Constructor and Description |
---|---|
protected |
AbstractRequestBuilder(Method method) |
protected |
AbstractRequestBuilder(Method method,
String uri) |
protected |
AbstractRequestBuilder(Method method,
URI uri) |
protected |
AbstractRequestBuilder(String method) |
protected |
AbstractRequestBuilder(String method,
String uri) |
protected |
AbstractRequestBuilder(String method,
URI uri) |
build, digest, getFirstHeader, getFirstHeaders, getHeaders, getHeaders, getLastHeader, getVersion, setHeaders
protected AbstractRequestBuilder(String method)
protected AbstractRequestBuilder(Method method)
protected void digest(HttpRequest request)
public String getMethod()
public AbstractRequestBuilder<T> setVersion(ProtocolVersion version)
setVersion
in class AbstractMessageBuilder<T>
public String getScheme()
public AbstractRequestBuilder<T> setScheme(String scheme)
public URIAuthority getAuthority()
public AbstractRequestBuilder<T> setAuthority(URIAuthority authority)
public AbstractRequestBuilder<T> setHttpHost(HttpHost httpHost)
public String getPath()
public AbstractRequestBuilder<T> setPath(String path)
public URI getUri()
public AbstractRequestBuilder<T> setUri(URI uri)
public AbstractRequestBuilder<T> setUri(String uri)
public AbstractRequestBuilder<T> setHeaders(Header... headers)
setHeaders
in class AbstractMessageBuilder<T>
public AbstractRequestBuilder<T> addHeader(Header header)
addHeader
in class AbstractMessageBuilder<T>
public AbstractRequestBuilder<T> addHeader(String name, String value)
addHeader
in class AbstractMessageBuilder<T>
public AbstractRequestBuilder<T> removeHeader(Header header)
removeHeader
in class AbstractMessageBuilder<T>
public AbstractRequestBuilder<T> removeHeaders(String name)
removeHeaders
in class AbstractMessageBuilder<T>
public AbstractRequestBuilder<T> setHeader(Header header)
setHeader
in class AbstractMessageBuilder<T>
public AbstractRequestBuilder<T> setHeader(String name, String value)
setHeader
in class AbstractMessageBuilder<T>
public Charset getCharset()
public AbstractRequestBuilder<T> setCharset(Charset charset)
public List<NameValuePair> getParameters()
public AbstractRequestBuilder<T> addParameter(NameValuePair nvp)
public AbstractRequestBuilder<T> addParameter(String name, String value)
public AbstractRequestBuilder<T> addParameters(NameValuePair... nvps)
public boolean isAbsoluteRequestUri()
public AbstractRequestBuilder<T> setAbsoluteRequestUri(boolean absoluteRequestUri)
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.