Package io.netty.handler.ssl.ocsp
Class OcspHttpHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<FullHttpResponse>
-
- io.netty.handler.ssl.ocsp.OcspHttpHandler
-
- All Implemented Interfaces:
ChannelHandler,ChannelInboundHandler
final class OcspHttpHandler extends SimpleChannelInboundHandler<FullHttpResponse>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Field Summary
Fields Modifier and Type Field Description private static InternalLoggerLOGGER(package private) static java.lang.StringOCSP_REQUEST_TYPE(package private) static java.lang.StringOCSP_RESPONSE_TYPEprivate Promise<org.bouncycastle.cert.ocsp.OCSPResp>responseFuture
-
Constructor Summary
Constructors Constructor Description OcspHttpHandler(Promise<org.bouncycastle.cert.ocsp.OCSPResp> responsePromise)Create newOcspHttpHandlerinstance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidchannelRead0(ChannelHandlerContext ctx, FullHttpResponse response)Is called for each message of typeSimpleChannelInboundHandler.voidexceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause)CallsChannelHandlerContext.fireExceptionCaught(Throwable)to forward to the nextChannelHandlerin theChannelPipeline.-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
-
-
-
Field Detail
-
LOGGER
private static final InternalLogger LOGGER
-
responseFuture
private final Promise<org.bouncycastle.cert.ocsp.OCSPResp> responseFuture
-
OCSP_REQUEST_TYPE
static final java.lang.String OCSP_REQUEST_TYPE
- See Also:
- Constant Field Values
-
OCSP_RESPONSE_TYPE
static final java.lang.String OCSP_RESPONSE_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OcspHttpHandler
OcspHttpHandler(Promise<org.bouncycastle.cert.ocsp.OCSPResp> responsePromise)
Create newOcspHttpHandlerinstance- Parameters:
responsePromise-PromiseofOCSPResp
-
-
Method Detail
-
channelRead0
protected void channelRead0(ChannelHandlerContext ctx, FullHttpResponse response) throws java.lang.Exception
Description copied from class:SimpleChannelInboundHandlerIs called for each message of typeSimpleChannelInboundHandler.- Specified by:
channelRead0in classSimpleChannelInboundHandler<FullHttpResponse>- Parameters:
ctx- theChannelHandlerContextwhich thisSimpleChannelInboundHandlerbelongs toresponse- the message to handle- Throws:
java.lang.Exception- is thrown if an error occurred
-
exceptionCaught
public void exceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause)
Description copied from class:ChannelInboundHandlerAdapterCallsChannelHandlerContext.fireExceptionCaught(Throwable)to forward to the nextChannelHandlerin theChannelPipeline. Sub-classes may override this method to change behavior.- Specified by:
exceptionCaughtin interfaceChannelHandler- Specified by:
exceptionCaughtin interfaceChannelInboundHandler- Overrides:
exceptionCaughtin classChannelInboundHandlerAdapter
-
-