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 Constructor Description AbstractSimpleServerExchangeHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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 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)
-
-
-
Method Detail
-
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, java.io.IOException
- Specified by:
handle
in classorg.apache.hc.core5.http.nio.support.AbstractServerExchangeHandler<SimpleHttpRequest>
- Throws:
org.apache.hc.core5.http.HttpException
java.io.IOException
-
-