com.sshtools.ant

Class Ssh.Shell

Enclosing Class:
Ssh
Implemented Interfaces:
PseudoTerminal
Known Direct Subclasses:
Ssh.Exec

public class Ssh.Shell
extends SshSubTask
implements PseudoTerminal

Nested Class Summary

class
Ssh.Shell.Read
class
Ssh.Shell.Write

Field Summary

protected SessionOutputReader
output

Fields inherited from class com.sshtools.ant.SshSubTask

parent, taskString

Fields 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

Method Summary

protected void
allocatePseudoTerminal(SessionChannelClient session)
Ssh.Shell.Read
createRead()
Ssh.Shell.Write
createWrite()
Reading/Writing to the session/command
void
execute(SshClient ssh)
int
getColumns()
String
getEncodedTerminalModes()
int
getHeight()
int
getRows()
String
getTerm()
PseduoTermainal interface
int
getWidth()
protected void
performTasks(SessionChannelClient session)
void
setCols(int cols)
void
setRows(int rows)
void
setTerm(String term)
protected void
validate()

Methods inherited from class com.sshtools.ant.SshSubTask

execute, log, log, setParent

Field Details

output

protected SessionOutputReader output

Method Details

allocatePseudoTerminal

protected void allocatePseudoTerminal(SessionChannelClient session)
            throws BuildException

createRead

public Ssh.Shell.Read createRead()

createWrite

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

execute

public void execute(SshClient ssh)
            throws BuildException
Overrides:
execute in interface SshSubTask

getColumns

public int getColumns()
Specified by:
getColumns in interface PseudoTerminal

getEncodedTerminalModes

public String getEncodedTerminalModes()
Specified by:
getEncodedTerminalModes in interface PseudoTerminal

getHeight

public int getHeight()
Specified by:
getHeight in interface PseudoTerminal

getRows

public int getRows()
Specified by:
getRows in interface PseudoTerminal

getTerm

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

getWidth

public int getWidth()
Specified by:
getWidth in interface PseudoTerminal

performTasks

protected void performTasks(SessionChannelClient session)
            throws BuildException

setCols

public void setCols(int cols)

setRows

public void setRows(int rows)

setTerm

public void setTerm(String term)

validate

protected void validate()
            throws BuildException

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.