public class AsyncEchoHandler extends Object implements org.apache.hc.core5.http.nio.AsyncServerExchangeHandler
Constructor and Description |
---|
AsyncEchoHandler() |
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.ResourceHolder
public 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.AsyncServerExchangeHandler
org.apache.hc.core5.http.HttpException
IOException
public void updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel) throws IOException
updateCapacity
in interface org.apache.hc.core5.http.nio.AsyncDataConsumer
IOException
public void consume(ByteBuffer src) throws IOException
consume
in interface org.apache.hc.core5.http.nio.AsyncDataConsumer
IOException
public 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.AsyncDataConsumer
org.apache.hc.core5.http.HttpException
IOException
public int available()
available
in interface org.apache.hc.core5.http.nio.AsyncDataProducer
public void produce(org.apache.hc.core5.http.nio.DataStreamChannel channel) throws IOException
produce
in interface org.apache.hc.core5.http.nio.AsyncDataProducer
IOException
public void failed(Exception cause)
failed
in interface org.apache.hc.core5.http.nio.AsyncDataExchangeHandler
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.