| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectcom.sshtools.j2ssh.connection.Channelcom.sshtools.j2ssh.connection.IOChannelcom.sshtools.j2ssh.session.SessionChannelClientpublic class SessionChannelClientextends IOChannelField Summary |
Fields inherited from class com.sshtools.j2ssh.connection.IOChannel | |
boundInputStream, boundOutputStream, in, ios, out | |
Fields inherited from class com.sshtools.j2ssh.connection.Channel | |
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state | |
Constructor Summary | |
| |
Method Summary | |
void | |
boolean |
|
byte[] | |
byte[] | |
String | |
Integer | |
protected int | |
protected int | |
protected int | |
String | |
InputStream | |
SubsystemClient | |
boolean | |
protected void | |
protected void | |
protected void | |
protected void |
|
boolean | |
boolean |
|
boolean | |
boolean |
|
boolean |
|
void |
|
void |
|
boolean | |
boolean |
|
boolean |
|
Methods inherited from class com.sshtools.j2ssh.connection.IOChannel | |
bindInputStream, bindOutputStream, getInputStream, getOutputStream, init, onChannelClose, onChannelData, onChannelEOF, onChannelExtData, open, setLocalEOF | |
Methods inherited from class com.sshtools.j2ssh.connection.Channel | |
addEventListener, close, finalizeClose, getChannelConfirmationData, getChannelOpenData, getChannelType, getLocalChannelId, getLocalPacketSize, getLocalWindow, getMaximumPacketSize, getMaximumWindowSpace, getMinimumWindowSpace, getName, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, onChannelClose, onChannelData, onChannelEOF, onChannelExtData, onChannelOpen, onChannelRequest, open, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setLocalEOF, setName, setRemoteEOF | |
public void changeTerminalDimensions(PseudoTerminal term) throws IOException
- Parameters:
term-
public boolean executeCommand(String command)
throws IOException
- Parameters:
command-
- Returns:
public byte[] getChannelConfirmationData()
- Overrides:
- getChannelConfirmationData in interface Channel
- Returns:
public byte[] getChannelOpenData()
- Overrides:
- getChannelOpenData in interface Channel
- Returns:
public Integer getExitCode()
- Returns:
protected int getMaximumPacketSize()
- Overrides:
- getMaximumPacketSize in interface Channel
- Returns:
protected int getMaximumWindowSpace()
- Overrides:
- getMaximumWindowSpace in interface Channel
- Returns:
protected int getMinimumWindowSpace()
- Overrides:
- getMinimumWindowSpace in interface Channel
- Returns:
public String getSessionType()
- Returns:
public InputStream getStderrInputStream()
throws IOException
- Returns:
public boolean isLocalFlowControlEnabled()
- Returns:
protected void onChannelClose()
throws IOException
- Overrides:
- onChannelClose in interface IOChannel
protected void onChannelExtData(SshMsgChannelExtendedData msg) throws IOException
- Overrides:
- onChannelExtData in interface IOChannel
- Parameters:
msg-
protected void onChannelOpen()
throws IOException
- Overrides:
- onChannelOpen in interface Channel
protected void onChannelRequest(String requestType,
boolean wantReply,
byte[] requestData)
throws IOException
- Overrides:
- onChannelRequest in interface Channel
- Parameters:
requestType-wantReply-requestData-
public boolean requestAgentForwarding()
throws IOException
- Returns:
public boolean requestPseudoTerminal(String term,
int cols,
int rows,
int width,
int height,
String terminalModes)
throws IOException
- Parameters:
term-cols-rows-width-height-terminalModes-
- Returns:
public boolean requestPseudoTerminal(PseudoTerminal term) throws IOException
- Parameters:
term-
- Returns:
public boolean requestX11Forwarding(int display,
String cookie)
throws IOException
- Parameters:
display-cookie-
- Returns:
public boolean setEnvironmentVariable(String name,
String value)
throws IOException
- Parameters:
name-value-
- Returns:
public void setSessionType(String sessionType)
- Parameters:
sessionType-
public void setSignalListener(SignalListener signalListener)
- Parameters:
signalListener-
public boolean startShell()
throws IOException
- Returns:
public boolean startSubsystem(String subsystem)
throws IOException
- Parameters:
subsystem-
- Returns:
public boolean startSubsystem(SubsystemClient subsystem) throws IOException
- Parameters:
subsystem-
- Returns: