public class AsyncRandomHandler extends Object implements org.apache.hc.core5.http.nio.AsyncServerExchangeHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncRandomHandler.RandomBinAsyncEntityProducer
An entity that generates random data.
|
| Constructor and Description |
|---|
AsyncRandomHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
consume(ByteBuffer src) |
void |
failed(Exception cause) |
void |
handleRequest(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.http.nio.ResponseChannel responseChannel,
org.apache.hc.core5.http.protocol.HttpContext context) |
void |
produce(org.apache.hc.core5.http.nio.DataStreamChannel channel) |
void |
releaseResources() |
void |
streamEnd(List<? extends org.apache.hc.core5.http.Header> trailers) |
void |
updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel) |
public void releaseResources()
releaseResources in interface org.apache.hc.core5.http.nio.ResourceHolderpublic void handleRequest(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.http.nio.ResponseChannel responseChannel,
org.apache.hc.core5.http.protocol.HttpContext context)
throws org.apache.hc.core5.http.HttpException,
IOException
handleRequest in interface org.apache.hc.core5.http.nio.AsyncServerExchangeHandlerorg.apache.hc.core5.http.HttpExceptionIOExceptionpublic void updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel)
throws IOException
updateCapacity in interface org.apache.hc.core5.http.nio.AsyncDataConsumerIOExceptionpublic void consume(ByteBuffer src) throws IOException
consume in interface org.apache.hc.core5.http.nio.AsyncDataConsumerIOExceptionpublic void streamEnd(List<? extends org.apache.hc.core5.http.Header> trailers) throws org.apache.hc.core5.http.HttpException, IOException
streamEnd in interface org.apache.hc.core5.http.nio.AsyncDataConsumerorg.apache.hc.core5.http.HttpExceptionIOExceptionpublic int available()
available in interface org.apache.hc.core5.http.nio.AsyncDataProducerpublic void produce(org.apache.hc.core5.http.nio.DataStreamChannel channel)
throws IOException
produce in interface org.apache.hc.core5.http.nio.AsyncDataProducerIOExceptionpublic void failed(Exception cause)
failed in interface org.apache.hc.core5.http.nio.AsyncDataExchangeHandlerCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.