public class AuthenticatingAsyncDecorator extends Object implements AsyncServerExchangeHandler
| Constructor and Description |
|---|
AuthenticatingAsyncDecorator(AsyncServerExchangeHandler exchangeHandler,
AuthenticationHandler<String> authenticationHandler,
Authenticator authenticator) |
AuthenticatingAsyncDecorator(AsyncServerExchangeHandler exchangeHandler,
Authenticator authenticator) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
consume(ByteBuffer src) |
protected void |
customizeUnauthorizedResponse(HttpResponse unauthorized) |
void |
failed(Exception cause) |
void |
handleRequest(HttpRequest request,
EntityDetails entityDetails,
ResponseChannel responseChannel,
HttpContext context) |
void |
produce(DataStreamChannel channel) |
void |
releaseResources() |
void |
streamEnd(List<? extends Header> trailers) |
void |
updateCapacity(CapacityChannel capacityChannel) |
public AuthenticatingAsyncDecorator(AsyncServerExchangeHandler exchangeHandler, AuthenticationHandler<String> authenticationHandler, Authenticator authenticator)
public AuthenticatingAsyncDecorator(AsyncServerExchangeHandler exchangeHandler, Authenticator authenticator)
protected void customizeUnauthorizedResponse(HttpResponse unauthorized)
public void handleRequest(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context) throws HttpException, IOException
handleRequest in interface AsyncServerExchangeHandlerHttpExceptionIOExceptionpublic final void updateCapacity(CapacityChannel capacityChannel) throws IOException
updateCapacity in interface AsyncDataConsumerIOExceptionpublic final void consume(ByteBuffer src) throws IOException
consume in interface AsyncDataConsumerIOExceptionpublic final void streamEnd(List<? extends Header> trailers) throws HttpException, IOException
streamEnd in interface AsyncDataConsumerHttpExceptionIOExceptionpublic final int available()
available in interface AsyncDataProducerpublic final void produce(DataStreamChannel channel) throws IOException
produce in interface AsyncDataProducerIOExceptionpublic final void failed(Exception cause)
failed in interface AsyncDataExchangeHandlerpublic final void releaseResources()
releaseResources in interface ResourceHolderCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.