Class EppActionHandler
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.EppActionHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
Subclass of
ActionHandler
that deals with the Epp Sequence
Main purpose is to verify EppResponseMessage
received is valid. If not it throws the
requisite error which is dealt with by the parent ActionHandler
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
channelRead0
(io.netty.channel.ChannelHandlerContext ctx, InboundMessageType msg) Decodes the received response to ensure that it is what we expect and resets future in caseEppActionHandler
is reused.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
-
EppActionHandler
@Inject public EppActionHandler()
-
-
Method Details
-
channelRead0
public void channelRead0(io.netty.channel.ChannelHandlerContext ctx, InboundMessageType msg) throws FailureException, UndeterminedStateException Decodes the received response to ensure that it is what we expect and resets future in caseEppActionHandler
is reused.- Overrides:
channelRead0
in classActionHandler
- Throws:
FailureException
- if we receive a failed response from the serverUndeterminedStateException
-