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 ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final InternalLogger(package private) static final String(package private) static final Stringprivate final Promise<org.bouncycastle.cert.ocsp.OCSPResp> -
Constructor Summary
ConstructorsConstructorDescriptionOcspHttpHandler(Promise<org.bouncycastle.cert.ocsp.OCSPResp> responsePromise) Create newOcspHttpHandlerinstance -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchannelRead0(ChannelHandlerContext ctx, FullHttpResponse response) Is called for each message of typeI.voidexceptionCaught(ChannelHandlerContext ctx, Throwable cause) CallsChannelHandlerContext.fireExceptionCaught(Throwable)to forward to the nextChannelHandlerin theChannelPipeline.Methods inherited from class SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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 newOcspHttpHandlerinstance- Parameters:
responsePromise-PromiseofOCSPResp
-
-
Method Details
-
channelRead0
Description copied from class:SimpleChannelInboundHandlerIs called for each message of typeI.- Specified by:
channelRead0in classSimpleChannelInboundHandler<FullHttpResponse>- Parameters:
ctx- theChannelHandlerContextwhich thisSimpleChannelInboundHandlerbelongs toresponse- the message to handle- Throws:
Exception- is thrown if an error occurred
-
exceptionCaught
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
-