org.apache.hc.client5.testing.classic

## Class RedirectingDecorator

- java.lang.Object
- - org.apache.hc.client5.testing.classic.RedirectingDecorator

- All Implemented Interfaces:
    org.apache.hc.core5.http.io.HttpServerRequestHandler

      public class RedirectingDecorator
      extends Object
      implements org.apache.hc.core5.http.io.HttpServerRequestHandler

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.apache.hc.core5.http.io.HttpServerRequestHandler

      `org.apache.hc.core5.http.io.HttpServerRequestHandler.ResponseTrigger`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RedirectingDecorator(org.apache.hc.core5.http.io.HttpServerRequestHandler requestHandler, RedirectResolver redirectResolver)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `handle(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpServerRequestHandler.ResponseTrigger responseTrigger, org.apache.hc.core5.http.protocol.HttpContext context)`

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

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

- - ### Constructor Detail

    - #### RedirectingDecorator

          public RedirectingDecorator(org.apache.hc.core5.http.io.HttpServerRequestHandler requestHandler,
                                      RedirectResolver redirectResolver)

  - ### Method Detail

    - #### handle

          public void handle(org.apache.hc.core5.http.ClassicHttpRequest request,
                             org.apache.hc.core5.http.io.HttpServerRequestHandler.ResponseTrigger responseTrigger,
                             org.apache.hc.core5.http.protocol.HttpContext context)
                      throws org.apache.hc.core5.http.HttpException,
                             IOException

      Specified by:
        `handle` in interface `org.apache.hc.core5.http.io.HttpServerRequestHandler`
      Throws:
        `org.apache.hc.core5.http.HttpException`
        `IOException`

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