Class RequestWrapper

java.lang.Object
org.apache.http.message.AbstractHttpMessage
org.apache.http.impl.client.RequestWrapper
All Implemented Interfaces:
HttpUriRequest, HttpMessage, HttpRequest
Direct Known Subclasses:
EntityEnclosingRequestWrapper

@Deprecated public class RequestWrapper extends AbstractHttpMessage implements HttpUriRequest
Deprecated.
(4.3) do not use.
A wrapper class for HttpRequests that can be used to change properties of the current request without modifying the original object.

This class is also capable of resetting the request headers to the state of the original request.

Since:
4.0
  • Constructor Details

  • Method Details

    • resetHeaders

      public void resetHeaders()
      Deprecated.
    • getMethod

      public String getMethod()
      Deprecated.
      Description copied from interface: HttpUriRequest
      Returns the HTTP method this request uses, such as GET, PUT, POST, or other.
      Specified by:
      getMethod in interface HttpUriRequest
    • setMethod

      public void setMethod(String method)
      Deprecated.
    • getProtocolVersion

      public ProtocolVersion getProtocolVersion()
      Deprecated.
      Description copied from interface: HttpMessage
      Returns the protocol version this message is compatible with.
      Specified by:
      getProtocolVersion in interface HttpMessage
    • setProtocolVersion

      public void setProtocolVersion(ProtocolVersion version)
      Deprecated.
    • getURI

      public URI getURI()
      Deprecated.
      Description copied from interface: HttpUriRequest
      Returns the URI this request uses, such as http://example.org/path/to/file.

      Note that the URI may be absolute URI (as above) or may be a relative URI.

      Implementations are encouraged to return the URI that was initially requested.

      To find the final URI after any redirects have been processed, please see the section entitled HTTP execution context in the HttpClient Tutorial

      Specified by:
      getURI in interface HttpUriRequest
    • setURI

      public void setURI(URI uri)
      Deprecated.
    • getRequestLine

      public RequestLine getRequestLine()
      Deprecated.
      Description copied from interface: HttpRequest
      Returns the request line of this request.
      Specified by:
      getRequestLine in interface HttpRequest
      Returns:
      the request line.
    • abort

      public void abort() throws UnsupportedOperationException
      Deprecated.
      Description copied from interface: HttpUriRequest
      Aborts execution of the request.
      Specified by:
      abort in interface HttpUriRequest
      Throws:
      UnsupportedOperationException - if the abort operation is not supported / cannot be implemented.
    • isAborted

      public boolean isAborted()
      Deprecated.
      Description copied from interface: HttpUriRequest
      Tests if the request execution has been aborted.
      Specified by:
      isAborted in interface HttpUriRequest
      Returns:
      true if the request execution has been aborted, false otherwise.
    • getOriginal

      public HttpRequest getOriginal()
      Deprecated.
    • isRepeatable

      public boolean isRepeatable()
      Deprecated.
    • getExecCount

      public int getExecCount()
      Deprecated.
    • incrementExecCount

      public void incrementExecCount()
      Deprecated.