public class RandomHandler extends Object implements org.apache.hc.core5.http.io.HttpRequestHandler
Modifier and Type | Class and Description |
---|---|
static class |
RandomHandler.RandomEntity
An entity that generates random data.
|
Constructor and Description |
---|
RandomHandler() |
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 generating random data.
|
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.