Class Token

  • Direct Known Subclasses:
    EppToken, WebWhoisToken

    public abstract class Token
    extends java.lang.Object
    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

      Fields 
      Modifier and Type Field Description
      protected io.netty.channel.Channel channel
      Channel that always starts out as null.
    • Constructor Summary

      Constructors 
      Constructor Description
      Token()  
    • Field Detail

      • channel

        protected io.netty.channel.Channel channel
        Channel 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 Detail

      • Token

        public Token()
    • Method Detail

      • next

        public abstract Token next()
        Obtains next Token for next loop in sequence.
      • host

        public abstract java.lang.String host()
        String corresponding to host that is relevant for loop in sequence.
      • setChannel

        public void setChannel​(io.netty.channel.Channel channel)
        Set method for channel
      • channel

        public io.netty.channel.Channel channel()
        Get method for channel.