org.springframework.http.client.support

Class HttpRequestWrapper

  • java.lang.Object
    • org.springframework.http.client.support.HttpRequestWrapper
  • All Implemented Interfaces:
    HttpMessage, HttpRequest


    public class HttpRequestWrapper
    extends java.lang.Object
    implements HttpRequest
    Provides a convenient implementation of the HttpRequest interface that can be overridden to adapt the request.

    These methods default to calling through to the wrapped request object.

    Since:
    3.1
    Author:
    Arjen Poutsma
    • Constructor Summary

      Constructors 
      Constructor and Description
      HttpRequestWrapper(HttpRequest request)
      Create a new HttpRequest wrapping the given request object.
    • Constructor Detail

      • HttpRequestWrapper

        public HttpRequestWrapper(HttpRequest request)
        Create a new HttpRequest wrapping the given request object.
        Parameters:
        request - the request object to be wrapped