public class BasicClassicHttpRequest extends BasicHttpRequest implements ClassicHttpRequest
ClassicHttpRequest
.Constructor and Description |
---|
BasicClassicHttpRequest(Method method,
HttpHost host,
String path)
Creates request message with the given method, host and request path.
|
BasicClassicHttpRequest(Method method,
String path)
Creates request message with the given method and request path.
|
BasicClassicHttpRequest(Method method,
URI requestUri)
Creates request message with the given method, request URI.
|
BasicClassicHttpRequest(String method,
HttpHost host,
String path)
Creates request message with the given method, host and request path.
|
BasicClassicHttpRequest(String method,
String path)
Creates request message with the given method and request path.
|
BasicClassicHttpRequest(String method,
String scheme,
URIAuthority authority,
String path)
Creates request message with the given method, host and request path.
|
BasicClassicHttpRequest(String method,
URI requestUri)
Creates request message with the given method, request URI.
|
Modifier and Type | Method and Description |
---|---|
HttpEntity |
getEntity()
Obtains the message entity, if available.
|
void |
setEntity(HttpEntity entity)
Sets an entity for this message.
|
addHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAbsoluteRequestUri, setAuthority, setHeader, setPath, setScheme, setUri, setVersion, toString
addHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeaders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, setAuthority, setPath, setScheme, setUri
addHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersion
containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator
public BasicClassicHttpRequest(String method, String scheme, URIAuthority authority, String path)
method
- request method.scheme
- request scheme.authority
- request authority.path
- request path.public BasicClassicHttpRequest(String method, String path)
method
- request method.path
- request path.public BasicClassicHttpRequest(String method, HttpHost host, String path)
method
- request method.host
- request host.path
- request path.public BasicClassicHttpRequest(String method, URI requestUri)
method
- request method.requestUri
- request URI.public BasicClassicHttpRequest(Method method, String path)
method
- request method.path
- request path.public BasicClassicHttpRequest(Method method, HttpHost host, String path)
method
- request method.host
- request host.path
- request path.public HttpEntity getEntity()
HttpEntityContainer
getEntity
in interface HttpEntityContainer
null
if not availablepublic void setEntity(HttpEntity entity)
HttpEntityContainer
Please note that if an entity has already been set it is responsibility of the caller to ensure release of the resources that may be associated with that entity.
setEntity
in interface HttpEntityContainer
entity
- the entity to set of this message, or null
to unsetCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.