Class WhoisServiceHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.netty.handler.codec.ByteToMessageCodec<io.netty.handler.codec.http.FullHttpResponse>
google.registry.proxy.handler.HttpsRelayServiceHandler
google.registry.proxy.handler.WhoisServiceHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler

public final class WhoisServiceHandler extends HttpsRelayServiceHandler
Handler that processes WHOIS protocol logic.
  • Constructor Details

  • Method Details

    • channelActive

      public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      channelActive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelActive in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • decodeFullHttpRequest

      protected io.netty.handler.codec.http.FullHttpRequest decodeFullHttpRequest(io.netty.buffer.ByteBuf byteBuf)
      Description copied from class: HttpsRelayServiceHandler
      Construct the FullHttpRequest.

      This default method creates a bare-bone FullHttpRequest that may need to be modified, e.g. adding headers specific for each protocol.

      Overrides:
      decodeFullHttpRequest in class HttpsRelayServiceHandler
      Parameters:
      byteBuf - inbound message.
    • write

      public void write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise) throws Exception
      Description copied from class: HttpsRelayServiceHandler
      Terminates connection upon outbound exception.
      Specified by:
      write in interface io.netty.channel.ChannelOutboundHandler
      Overrides:
      write in class HttpsRelayServiceHandler
      Throws:
      Exception