org.apache.hc.client5.http.classic.methods

## Class HttpTrace

- java.lang.Object
- - org.apache.hc.core5.http.message.HeaderGroup
  - - org.apache.hc.core5.http.message.BasicHttpRequest
    - - org.apache.hc.core5.http.message.BasicClassicHttpRequest
      - - org.apache.hc.client5.http.classic.methods.HttpUriRequestBase
        - - org.apache.hc.client5.http.classic.methods.HttpTrace

- All Implemented Interfaces:
    Serializable, HttpUriRequest, Configurable, org.apache.hc.core5.concurrent.Cancellable, org.apache.hc.core5.concurrent.CancellableDependency, org.apache.hc.core5.http.ClassicHttpRequest, org.apache.hc.core5.http.HttpEntityContainer, org.apache.hc.core5.http.HttpMessage, org.apache.hc.core5.http.HttpRequest, org.apache.hc.core5.http.MessageHeaders

      public class HttpTrace
      extends HttpUriRequestBase

  HTTP TRACE method.
  Since:
    4.0
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `METHOD_NAME` The method name "TRACE".

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `HttpTrace(String uri)` Constructs a new instance initialized with the given URI.
    `HttpTrace(URI uri)` Constructs a new instance initialized with the given URI.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setEntity(org.apache.hc.core5.http.HttpEntity entity)`

    - ### Methods inherited from class org.apache.hc.client5.http.classic.methods.HttpUriRequestBase

      `abort, cancel, getConfig, isAborted, isCancelled, reset, setConfig, setDependency, toString`

    - ### Methods inherited from class org.apache.hc.core5.http.message.BasicClassicHttpRequest

      `getEntity`

    - ### Methods inherited from class org.apache.hc.core5.http.message.BasicHttpRequest

      `addHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAbsoluteRequestUri, setAuthority, setHeader, setPath, setScheme, setUri, setVersion`

    - ### Methods inherited from class org.apache.hc.core5.http.message.HeaderGroup

      `addHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeaders`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.apache.hc.core5.http.HttpRequest

      `getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, setAuthority, setPath, setScheme, setUri`

    - ### Methods inherited from interface org.apache.hc.core5.http.HttpMessage

      `addHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersion`

    - ### Methods inherited from interface org.apache.hc.core5.http.MessageHeaders

      `containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator`

    - ### Methods inherited from interface org.apache.hc.core5.http.HttpEntityContainer

      `getEntity`

- - ### Field Detail

    - #### METHOD_NAME

          public static final String METHOD_NAME

      The method name "TRACE".
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### HttpTrace

          public HttpTrace(URI uri)

      Constructs a new instance initialized with the given URI.
      Parameters:
        `uri` - a non-null request URI.
      Throws:
        `IllegalArgumentException` - if the uri is null.

    - #### HttpTrace

          public HttpTrace(String uri)

      Constructs a new instance initialized with the given URI.
      Parameters:
        `uri` - a non-null request URI.
      Throws:
        `IllegalArgumentException` - if the uri is invalid.

  - ### Method Detail

    - #### setEntity

          public void setEntity(org.apache.hc.core5.http.HttpEntity entity)

      Specified by:
        `setEntity` in interface `org.apache.hc.core5.http.HttpEntityContainer`
      Overrides:
        `setEntity` in class `org.apache.hc.core5.http.message.BasicClassicHttpRequest`

Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.