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 java.lang.Object implements org.apache.hc.core5.http.io.HttpServerRequestHandler
-
-
Field Summary
Fields Modifier and Type Field Description private RedirectResolver
redirectResolver
private org.apache.hc.core5.http.io.HttpServerRequestHandler
requestHandler
-
Constructor Summary
Constructors Constructor Description RedirectingDecorator(org.apache.hc.core5.http.io.HttpServerRequestHandler requestHandler, RedirectResolver redirectResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
requestHandler
private final org.apache.hc.core5.http.io.HttpServerRequestHandler requestHandler
-
redirectResolver
private final RedirectResolver redirectResolver
-
-
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, java.io.IOException
- Specified by:
handle
in interfaceorg.apache.hc.core5.http.io.HttpServerRequestHandler
- Throws:
org.apache.hc.core5.http.HttpException
java.io.IOException
-
-