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,
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, 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, waitgetAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, setAuthority, setPath, setScheme, setUriaddHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersioncontainsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIteratorpublic 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()
HttpEntityContainergetEntity in interface HttpEntityContainernull if not availablepublic void setEntity(HttpEntity entity)
HttpEntityContainerPlease 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 HttpEntityContainerentity - the entity to set of this message, or null to unsetCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.