Class WebWhoisActionHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<InboundMessageType>
google.registry.monitoring.blackbox.handler.ActionHandler
google.registry.monitoring.blackbox.handler.WebWhoisActionHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
Subclass of
ActionHandler
that deals with the WebWhois Sequence
Main purpose is to verify HttpResponseMessage
received is valid. If the response
implies a redirection it follows the redirection until either an Error Response is received, or
HttpResponseStatus.OK
is received
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Fields inherited from class google.registry.monitoring.blackbox.handler.ActionHandler
finished
-
Constructor Summary
ConstructorDescriptionWebWhoisActionHandler
(io.netty.bootstrap.Bootstrap bootstrap, Protocol httpWhoisProtocol, Protocol httpsWhoisProtocol, HttpRequestMessage requestMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
channelRead0
(io.netty.channel.ChannelHandlerContext ctx, InboundMessageType msg) After receivingHttpResponseMessage
, either notes success and marks future as finished, notes an error in the receivedURL
and throws aConnectionException
, received a response indicating a Failure, or receives a redirection response, where it follows the redirects until receiving one of the previous three responses.Methods inherited from class google.registry.monitoring.blackbox.handler.ActionHandler
exceptionCaught, getFinishedFuture, handlerAdded
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, 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
handlerRemoved
-
Constructor Details
-
WebWhoisActionHandler
@Inject public WebWhoisActionHandler(io.netty.bootstrap.Bootstrap bootstrap, Protocol httpWhoisProtocol, Protocol httpsWhoisProtocol, HttpRequestMessage requestMessage)
-
-
Method Details
-
channelRead0
public void channelRead0(io.netty.channel.ChannelHandlerContext ctx, InboundMessageType msg) throws FailureException, UndeterminedStateException After receivingHttpResponseMessage
, either notes success and marks future as finished, notes an error in the receivedURL
and throws aConnectionException
, received a response indicating a Failure, or receives a redirection response, where it follows the redirects until receiving one of the previous three responses.- Overrides:
channelRead0
in classActionHandler
- Throws:
FailureException
UndeterminedStateException
-