public class EchoHandler extends Object implements org.apache.hc.core5.http.io.HttpRequestHandler
Constructor and Description |
---|
EchoHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(org.apache.hc.core5.http.ClassicHttpRequest request,
org.apache.hc.core5.http.ClassicHttpResponse response,
org.apache.hc.core5.http.protocol.HttpContext context)
Handles a request by echoing the incoming request entity.
|
public void handle(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.ClassicHttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException, IOException
handle
in interface org.apache.hc.core5.http.io.HttpRequestHandler
request
- the requestresponse
- the responsecontext
- the contextorg.apache.hc.core5.http.HttpException
- in case of a problemIOException
- in case of an IO problemCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.