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,
AuthenticationHandler<String> authenticationHandler,
Authenticator authenticator) |
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, AuthenticationHandler<String> authenticationHandler, Authenticator authenticator)
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.AsyncServerExchangeHandler
org.apache.hc.core5.http.HttpException
IOException
public final void updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel) throws IOException
updateCapacity
in interface org.apache.hc.core5.http.nio.AsyncDataConsumer
IOException
public final void consume(ByteBuffer src) throws IOException
consume
in interface org.apache.hc.core5.http.nio.AsyncDataConsumer
IOException
public 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.AsyncDataConsumer
org.apache.hc.core5.http.HttpException
IOException
public final int available()
available
in interface org.apache.hc.core5.http.nio.AsyncDataProducer
public final void produce(org.apache.hc.core5.http.nio.DataStreamChannel channel) throws IOException
produce
in interface org.apache.hc.core5.http.nio.AsyncDataProducer
IOException
public final void failed(Exception cause)
failed
in interface org.apache.hc.core5.http.nio.AsyncDataExchangeHandler
public final void releaseResources()
releaseResources
in interface org.apache.hc.core5.http.nio.ResourceHolder
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.