public class ConfigurableHttpRequest extends org.apache.hc.core5.http.message.BasicHttpRequest implements Configurable
| Constructor and Description |
|---|
ConfigurableHttpRequest(String method,
org.apache.hc.core5.http.HttpHost host,
String path)
Constructs a new request message with the given method, host, and request path.
|
ConfigurableHttpRequest(String method,
String path)
Constructs a new request message with the given method and request path.
|
ConfigurableHttpRequest(String method,
String scheme,
org.apache.hc.core5.net.URIAuthority authority,
String path)
Constructs a new request message with the given method, scheme, authority, and request path.
|
ConfigurableHttpRequest(String method,
URI requestUri)
Constructs a new request message with the given method, and request URI.
|
| Modifier and Type | Method and Description |
|---|---|
RequestConfig |
getConfig()
Gets the actual request configuration.
|
void |
setConfig(RequestConfig requestConfig)
Sets the request configuration.
|
addHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAbsoluteRequestUri, setAuthority, setHeader, setPath, setScheme, setUri, setVersion, toStringaddHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic ConfigurableHttpRequest(String method, String path)
method - request method.path - request path.public ConfigurableHttpRequest(String method, org.apache.hc.core5.http.HttpHost host, String path)
method - request method.host - request host.path - request path.public ConfigurableHttpRequest(String method, String scheme, org.apache.hc.core5.net.URIAuthority authority, String path)
method - request method.scheme - request host.authority - request URI authority.path - request path.public RequestConfig getConfig()
ConfigurablegetConfig in interface Configurablepublic void setConfig(RequestConfig requestConfig)
requestConfig - the request configuration.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.