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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RedirectResolver
private final org.apache.hc.core5.http.io.HttpServerRequestHandler
-
Constructor Summary
ConstructorsConstructorDescriptionRedirectingDecorator
(org.apache.hc.core5.http.io.HttpServerRequestHandler requestHandler, RedirectResolver redirectResolver) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Field Details
-
requestHandler
private final org.apache.hc.core5.http.io.HttpServerRequestHandler requestHandler -
redirectResolver
-
-
Constructor Details
-
RedirectingDecorator
public RedirectingDecorator(org.apache.hc.core5.http.io.HttpServerRequestHandler requestHandler, RedirectResolver redirectResolver)
-
-
Method Details
-
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 interfaceorg.apache.hc.core5.http.io.HttpServerRequestHandler
- Throws:
org.apache.hc.core5.http.HttpException
IOException
-