Class AbstractSimpleServerExchangeHandler
java.lang.Object
org.apache.hc.core5.http.nio.support.AbstractServerExchangeHandler<SimpleHttpRequest>
org.apache.hc.client5.testing.async.AbstractSimpleServerExchangeHandler
- All Implemented Interfaces:
org.apache.hc.core5.http.nio.AsyncDataConsumer
,org.apache.hc.core5.http.nio.AsyncDataExchangeHandler
,org.apache.hc.core5.http.nio.AsyncDataProducer
,org.apache.hc.core5.http.nio.AsyncServerExchangeHandler
,org.apache.hc.core5.http.nio.ResourceHolder
public abstract class AbstractSimpleServerExchangeHandler
extends org.apache.hc.core5.http.nio.support.AbstractServerExchangeHandler<SimpleHttpRequest>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
handle
(SimpleHttpRequest request, org.apache.hc.core5.http.nio.AsyncServerRequestHandler.ResponseTrigger responseTrigger, org.apache.hc.core5.http.protocol.HttpContext context) protected abstract SimpleHttpResponse
handle
(SimpleHttpRequest request, org.apache.hc.core5.http.protocol.HttpCoreContext context) protected final org.apache.hc.core5.http.nio.AsyncRequestConsumer
<SimpleHttpRequest> supplyConsumer
(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext context) Methods inherited from class org.apache.hc.core5.http.nio.support.AbstractServerExchangeHandler
available, consume, failed, handleRequest, produce, releaseResources, streamEnd, updateCapacity
-
Constructor Details
-
AbstractSimpleServerExchangeHandler
public AbstractSimpleServerExchangeHandler()
-
-
Method Details
-
handle
protected abstract SimpleHttpResponse handle(SimpleHttpRequest request, org.apache.hc.core5.http.protocol.HttpCoreContext context) throws org.apache.hc.core5.http.HttpException - Throws:
org.apache.hc.core5.http.HttpException
-
supplyConsumer
protected final org.apache.hc.core5.http.nio.AsyncRequestConsumer<SimpleHttpRequest> supplyConsumer(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException - Specified by:
supplyConsumer
in classorg.apache.hc.core5.http.nio.support.AbstractServerExchangeHandler<SimpleHttpRequest>
- Throws:
org.apache.hc.core5.http.HttpException
-
handle
protected final void handle(SimpleHttpRequest request, org.apache.hc.core5.http.nio.AsyncServerRequestHandler.ResponseTrigger responseTrigger, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException, IOException - Specified by:
handle
in classorg.apache.hc.core5.http.nio.support.AbstractServerExchangeHandler<SimpleHttpRequest>
- Throws:
org.apache.hc.core5.http.HttpException
IOException
-