Class Ssh.Shell

java.lang.Object
com.sshtools.ant.SshSubTask
com.sshtools.ant.Ssh.Shell
All Implemented Interfaces:
PseudoTerminal
Direct Known Subclasses:
Ssh.Exec
Enclosing class:
Ssh

public class Ssh.Shell extends SshSubTask implements PseudoTerminal
  • Field Details

  • Constructor Details

    • Shell

      public Shell()
  • Method Details

    • execute

      public void execute(SshClient ssh) throws org.apache.tools.ant.BuildException
      Overrides:
      execute in class SshSubTask
      Throws:
      org.apache.tools.ant.BuildException
    • validate

      protected void validate() throws org.apache.tools.ant.BuildException
      Throws:
      org.apache.tools.ant.BuildException
    • allocatePseudoTerminal

      protected void allocatePseudoTerminal(SessionChannelClient session) throws org.apache.tools.ant.BuildException
      Throws:
      org.apache.tools.ant.BuildException
    • performTasks

      protected void performTasks(SessionChannelClient session) throws org.apache.tools.ant.BuildException
      Throws:
      org.apache.tools.ant.BuildException
    • setTerm

      public void setTerm(String term)
    • setCols

      public void setCols(int cols)
    • setRows

      public void setRows(int rows)
    • getTerm

      public String getTerm()
      PseduoTermainal interface
      Specified by:
      getTerm in interface PseudoTerminal
      Returns:
    • getColumns

      public int getColumns()
      Specified by:
      getColumns in interface PseudoTerminal
      Returns:
    • getRows

      public int getRows()
      Specified by:
      getRows in interface PseudoTerminal
      Returns:
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface PseudoTerminal
      Returns:
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface PseudoTerminal
      Returns:
    • getEncodedTerminalModes

      public String getEncodedTerminalModes()
      Specified by:
      getEncodedTerminalModes in interface PseudoTerminal
      Returns:
    • createWrite

      public Ssh.Shell.Write createWrite()
      Reading/Writing to the session/command
    • createRead

      public Ssh.Shell.Read createRead()