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 voidhandle(SimpleHttpRequest request, org.apache.hc.core5.http.nio.AsyncServerRequestHandler.ResponseTrigger responseTrigger, org.apache.hc.core5.http.protocol.HttpContext context)protected abstract SimpleHttpResponsehandle(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:
supplyConsumerin 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:
handlein classorg.apache.hc.core5.http.nio.support.AbstractServerExchangeHandler<SimpleHttpRequest>- Throws:
org.apache.hc.core5.http.HttpExceptionjava.io.IOException
-
-