public class HttpTrace extends HttpUriRequestBase
Modifier and Type | Field and Description |
---|---|
static String |
METHOD_NAME |
Constructor and Description |
---|
HttpTrace(String uri)
Creates a new instance initialized with the given URI.
|
HttpTrace(URI uri)
Creates a new instance initialized with the given URI.
|
Modifier and Type | Method and Description |
---|---|
void |
setEntity(HttpEntity entity)
Sets an entity for this message.
|
abort, cancel, getConfig, isAborted, isCancelled, reset, setConfig, setDependency, toString
getEntity
addHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAuthority, setHeader, setPath, setScheme, setUri, setVersion
addHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeaders
clone, equals, 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
getEntity
public static final String METHOD_NAME
public HttpTrace(String uri)
uri
- a non-null request URI.IllegalArgumentException
- if the uri is invalid.public HttpTrace(URI uri)
uri
- a non-null request URI.IllegalArgumentException
- if the uri is null.public 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
setEntity
in class BasicClassicHttpRequest
entity
- the entity to set of this message, or null
to unset