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

public class WebWhoisActionHandler extends ActionHandler
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

    Constructors
    Constructor
    Description
    WebWhoisActionHandler(io.netty.bootstrap.Bootstrap bootstrap, Protocol httpWhoisProtocol, Protocol httpsWhoisProtocol, HttpRequestMessage requestMessage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    channelRead0(io.netty.channel.ChannelHandlerContext ctx, InboundMessageType msg)
    After receiving HttpResponseMessage, either notes success and marks future as finished, notes an error in the received URL and throws a ConnectionException, 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