Top Description Fields Constructors Methods
org.apache.hc.client5.http.classic.methods

public Class HttpTrace

extends HttpUriRequestBase
Class Inheritance
Imports
java.net.URI, org.apache.hc.core5.http.HttpEntity

HTTP TRACE method.
Since
4.0

Field Summary

Modifier and TypeField and Description
public static final String
private static final long

Constructor Summary

AccessConstructor and Description
public
HttpTrace(final URI
a non-null request URI.
uri
)

Creates a new instance initialized with the given URI.

public
HttpTrace(final String
a non-null request URI.
uri
)

Creates a new instance initialized with the given URI.

Method Summary

Modifier and TypeMethod and Description
public void
setEntity(final HttpEntity
the entity to set of this message, or null to unset
entity
)

Overrides org.apache.hc.core5.http.message.BasicClassicHttpRequest.setEntity.

Implements org.apache.hc.core5.http.HttpEntityContainer.setEntity.

Sets an entity for this message.
Inherited from org.apache.hc.client5.http.classic.methods.HttpUriRequestBase:
abortcancelgetConfigisAbortedisCancelledresetsetConfigsetDependencytoString

Field Detail

METHOD_NAMEback to summary
public static final String METHOD_NAME
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.hc.client5.http.classic.methods.HttpUriRequestBase.serialVersionUID.

Constructor Detail

HttpTraceback to summary
public HttpTrace(final URI uri)

Creates a new instance initialized with the given URI.

Parameters
uri:URI

a non-null request URI.

Exceptions
IllegalArgumentException:
if the uri is null.
HttpTraceback to summary
public HttpTrace(final String uri)

Creates a new instance initialized with the given URI.

Parameters
uri:String

a non-null request URI.

Exceptions
IllegalArgumentException:
if the uri is invalid.

Method Detail

setEntityback to summary
public void setEntity(final HttpEntity entity)

Overrides org.apache.hc.core5.http.message.BasicClassicHttpRequest.setEntity.

Implements org.apache.hc.core5.http.HttpEntityContainer.setEntity.

Doc from org.apache.hc.core5.http.HttpEntityContainer.setEntity.

Sets an entity for this message.

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.

Parameters
entity:HttpEntity

the entity to set of this message, or null to unset

Annotations
@Override