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
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final InternalLogger
(package private) static final String
(package private) static final String
private final Promise
<org.bouncycastle.cert.ocsp.OCSPResp> -
Constructor Summary
ConstructorsConstructorDescriptionOcspHttpHandler
(Promise<org.bouncycastle.cert.ocsp.OCSPResp> responsePromise) Create newOcspHttpHandler
instance -
Method Summary
Modifier and TypeMethodDescriptionprotected void
channelRead0
(ChannelHandlerContext ctx, FullHttpResponse response) Is called for each message of typeSimpleChannelInboundHandler
.void
exceptionCaught
(ChannelHandlerContext ctx, 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 Details
-
LOGGER
-
responseFuture
-
OCSP_REQUEST_TYPE
- See Also:
-
OCSP_RESPONSE_TYPE
- See Also:
-
-
Constructor Details
-
OcspHttpHandler
OcspHttpHandler(Promise<org.bouncycastle.cert.ocsp.OCSPResp> responsePromise) Create newOcspHttpHandler
instance- Parameters:
responsePromise
-Promise
ofOCSPResp
-
-
Method Details
-
channelRead0
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:
Exception
- is thrown if an error occurred
-
exceptionCaught
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
-