public class AuthenticatingAsyncDecorator extends Object implements org.apache.hc.core5.http.nio.AsyncServerExchangeHandler
| Constructor and Description | 
|---|
| AuthenticatingAsyncDecorator(org.apache.hc.core5.http.nio.AsyncServerExchangeHandler exchangeHandler,
                            Authenticator authenticator) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | available() | 
| void | consume(ByteBuffer src) | 
| protected void | customizeUnauthorizedResponse(org.apache.hc.core5.http.HttpResponse unauthorized) | 
| 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 AuthenticatingAsyncDecorator(org.apache.hc.core5.http.nio.AsyncServerExchangeHandler exchangeHandler,
                            Authenticator authenticator)
protected void customizeUnauthorizedResponse(org.apache.hc.core5.http.HttpResponse unauthorized)
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.AsyncServerExchangeHandlerorg.apache.hc.core5.http.HttpExceptionIOExceptionpublic final void updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel)
                          throws IOException
updateCapacity in interface org.apache.hc.core5.http.nio.AsyncDataConsumerIOExceptionpublic final void consume(ByteBuffer src) throws IOException
consume in interface org.apache.hc.core5.http.nio.AsyncDataConsumerIOExceptionpublic final 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 final int available()
available in interface org.apache.hc.core5.http.nio.AsyncDataProducerpublic final void produce(org.apache.hc.core5.http.nio.DataStreamChannel channel)
                   throws IOException
produce in interface org.apache.hc.core5.http.nio.AsyncDataProducerIOExceptionpublic final void failed(Exception cause)
failed in interface org.apache.hc.core5.http.nio.AsyncDataExchangeHandlerpublic final void releaseResources()
releaseResources in interface org.apache.hc.core5.http.nio.ResourceHolderCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.