Package com.sshtools.ant
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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.sshtools.ant.SshSubTask
parent, taskStringFields inherited from interface com.sshtools.j2ssh.session.PseudoTerminal
CS7, CS8, ECHO, ECHOCTL, ECHOE, ECHOK, ECHOKE, ECHONL, ICANON, ICRNL, IEXTEN, IGNCR, IGNPAR, IMAXBEL, INLCR, INPCK, ISIG, ISTRIP, IUCLC, IXANY, IXOFF, IXON, NOFLSH, OCRNL, OLCUC, ONLCR, ONLRET, ONOCR, OPOST, PARENB, PARMRK, PARODD, PENDIN, TOSTOP, TTY_OP_END, TTY_OP_ISPEED, TTY_OP_OSPEED, VDISCARD, VDSUSP, VEOF, VEOL, VEOL2, VERASE, VFLUSH, VINTR, VKILL, VLNEXT, VQUIT, VREPRINT, VSTART, VSTATUS, VSTOP, VSUSP, VSWTCH, VWERASE, XCASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidReading/Writing to the session/commandvoidintintintgetRows()getTerm()PseduoTermainal interfaceintgetWidth()protected voidperformTasks(SessionChannelClient session) voidsetCols(int cols) voidsetRows(int rows) voidprotected voidvalidate()Methods inherited from class com.sshtools.ant.SshSubTask
log, log, setParent
-
Field Details
-
output
-
-
Constructor Details
-
Shell
public Shell()
-
-
Method Details
-
execute
- Overrides:
executein classSshSubTask- 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
-
setCols
public void setCols(int cols) -
setRows
public void setRows(int rows) -
getTerm
PseduoTermainal interface- Specified by:
getTermin interfacePseudoTerminal- Returns:
-
getColumns
public int getColumns()- Specified by:
getColumnsin interfacePseudoTerminal- Returns:
-
getRows
public int getRows()- Specified by:
getRowsin interfacePseudoTerminal- Returns:
-
getWidth
public int getWidth()- Specified by:
getWidthin interfacePseudoTerminal- Returns:
-
getHeight
public int getHeight()- Specified by:
getHeightin interfacePseudoTerminal- Returns:
-
getEncodedTerminalModes
- Specified by:
getEncodedTerminalModesin interfacePseudoTerminal- Returns:
-
createWrite
Reading/Writing to the session/command -
createRead
-