Class HttpOverrideForwardedRequest

    • Constructor Detail

      • HttpOverrideForwardedRequest

        public HttpOverrideForwardedRequest()
    • Method Detail

      • forwardOverriddenRequest

        public static HttpOverrideForwardedRequest forwardOverriddenRequest()
        Static builder which will allow overriding proxied request with the specified request.
      • forwardOverriddenRequest

        public static HttpOverrideForwardedRequest forwardOverriddenRequest​(HttpRequest httpRequest)
        Static builder which will allow overriding proxied request with the specified request.
        Parameters:
        httpRequest - the HttpRequest specifying what to override
      • forwardOverriddenRequest

        public static HttpOverrideForwardedRequest forwardOverriddenRequest​(HttpRequest httpRequest,
                                                                            HttpResponse httpResponse)
        Static builder which will allow overriding proxied request with the specified request.
        Parameters:
        httpRequest - the HttpRequest specifying what to override
        httpResponse - the HttpRequest specifying what to override
      • withHttpRequest

        public HttpOverrideForwardedRequest withHttpRequest​(HttpRequest httpRequest)
        All fields, headers, cookies, etc of the provided request will be overridden
        Parameters:
        httpRequest - the HttpRequest specifying what to override
      • withHttpResponse

        public HttpOverrideForwardedRequest withHttpResponse​(HttpResponse httpResponse)
        All fields, headers, cookies, etc of the provided response will be overridden
        Parameters:
        httpResponse - the HttpResponse specifying what to override