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 InternalLogger
LOGGER
static java.lang.String
OCSP_REQUEST_TYPE
static java.lang.String
OCSP_RESPONSE_TYPE
private Promise<org.bouncycastle.cert.ocsp.OCSPResp>
responseFuture
-
Constructor Summary
Constructors Constructor Description OcspHttpHandler(Promise<org.bouncycastle.cert.ocsp.OCSPResp> responsePromise)
Create newOcspHttpHandler
instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
channelRead0(ChannelHandlerContext ctx, FullHttpResponse response)
Is called for each message of typeSimpleChannelInboundHandler
.void
exceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause)
CallsChannelHandlerContext.fireExceptionCaught(Throwable)
to forward to the nextChannelHandler
in 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
public static final java.lang.String OCSP_REQUEST_TYPE
- See Also:
- Constant Field Values
-
OCSP_RESPONSE_TYPE
public 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 newOcspHttpHandler
instance- Parameters:
responsePromise
-Promise
ofOCSPResp
-
-
Method Detail
-
channelRead0
protected void channelRead0(ChannelHandlerContext ctx, FullHttpResponse response) throws java.lang.Exception
Description copied from class:SimpleChannelInboundHandler
Is called for each message of typeSimpleChannelInboundHandler
.- Specified by:
channelRead0
in classSimpleChannelInboundHandler<FullHttpResponse>
- Parameters:
ctx
- theChannelHandlerContext
which thisSimpleChannelInboundHandler
belongs 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:ChannelInboundHandlerAdapter
CallsChannelHandlerContext.fireExceptionCaught(Throwable)
to forward to the nextChannelHandler
in theChannelPipeline
. Sub-classes may override this method to change behavior.- Specified by:
exceptionCaught
in interfaceChannelHandler
- Specified by:
exceptionCaught
in interfaceChannelInboundHandler
- Overrides:
exceptionCaught
in classChannelInboundHandlerAdapter
-
-