Class Token
java.lang.Object
google.registry.monitoring.blackbox.token.Token
- Direct Known Subclasses:
EppToken
,WebWhoisToken
Superclass that represents information passed to each
ProbingStep
in a single loop of a
ProbingSequence
.
Modifies the message passed in to reflect information relevant to a single loop in a ProbingSequence
. Additionally, passes on channel that remains unchanged within a loop of the
sequence.
Also obtains the next Token
corresponding to the next iteration of a loop in the
sequence.
-
Field Summary
Modifier and TypeFieldDescriptionprotected io.netty.channel.Channel
Channel
that always starts out as null. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.Channel
channel()
Get method forchannel
.abstract String
host()
String corresponding to host that is relevant for loop in sequence.abstract OutboundMessageType
modifyMessage
(OutboundMessageType messageType) Modifies theOutboundMessageType
in the manner necessary for each loopabstract Token
next()
Obtains nextToken
for next loop in sequence.void
setChannel
(io.netty.channel.Channel channel) Set method forchannel
-
Field Details
-
channel
protected io.netty.channel.Channel channelChannel
that always starts out as null. Once a persistent connection is made (such as EPP), that channel is stored in the token and passed on to later steps in the sequence until a new loop begins.
-
-
Constructor Details
-
Token
public Token()
-
-
Method Details
-
next
Obtains nextToken
for next loop in sequence. -
host
String corresponding to host that is relevant for loop in sequence. -
modifyMessage
public abstract OutboundMessageType modifyMessage(OutboundMessageType messageType) throws UndeterminedStateException Modifies theOutboundMessageType
in the manner necessary for each loop- Throws:
UndeterminedStateException
-
setChannel
public void setChannel(io.netty.channel.Channel channel) Set method forchannel
-
channel
public io.netty.channel.Channel channel()Get method forchannel
.
-