Class TelnetTask.TelnetSubTask

java.lang.Object
org.apache.tools.ant.taskdefs.optional.net.TelnetTask.TelnetSubTask
Direct Known Subclasses:
TelnetTask.TelnetRead, TelnetTask.TelnetWrite
Enclosing class:
TelnetTask

public class TelnetTask.TelnetSubTask extends Object
This class is the parent of the Read and Write tasks. It handles the common attributes for both.
  • Field Details

    • taskString

      protected String taskString
  • Constructor Details

    • TelnetSubTask

      public TelnetSubTask()
  • Method Details

    • execute

      public void execute(TelnetTask.AntTelnetClient telnet) throws BuildException
      Execute the subtask.
      Parameters:
      telnet - the client
      Throws:
      BuildException - always as it is not allowed to instantiate this object
    • addText

      public void addText(String s)
      the message as nested text
      Parameters:
      s - the nested text
    • setString

      public void setString(String s)
      the message as an attribute
      Parameters:
      s - a String value