Class WebWhoisToken
java.lang.Object
google.registry.monitoring.blackbox.token.Token
google.registry.monitoring.blackbox.token.WebWhoisToken
Token
subtype designed for WebWhois sequence.
Between loops of a WebWhois sequence the only thing changing is the tld we are probing. As a
result, we maintain the list of topLevelDomains
and on each call to next, have our index
looking at the next topLevelDomain
.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWebWhoisToken
(com.google.common.collect.ImmutableList<String> topLevelDomainsList) -
Method Summary
Modifier and TypeMethodDescriptionhost()
Returns host as the concatenation of fixedprefix
and current value oftopLevelDomains
.modifyMessage
(OutboundMessageType original) Modifies message to reflect the new host coming from the new top level domain.next()
Moves on to next top level domain intldCycleIterator
.Methods inherited from class google.registry.monitoring.blackbox.token.Token
channel, setChannel
-
Constructor Details
-
WebWhoisToken
-
-
Method Details
-
next
Moves on to next top level domain intldCycleIterator
. -
modifyMessage
public OutboundMessageType modifyMessage(OutboundMessageType original) throws UndeterminedStateException Modifies message to reflect the new host coming from the new top level domain.- Specified by:
modifyMessage
in classToken
- Throws:
UndeterminedStateException
-
host
Returns host as the concatenation of fixedprefix
and current value oftopLevelDomains
.
-