public class SessionChannelServer extends IOChannel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SESSION_CHANNEL_TYPE |
boundInputStream, boundOutputStream, in, outconnection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state| Constructor and Description |
|---|
SessionChannelServer()
Creates a new SessionChannelServer object.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getChannelConfirmationData() |
byte[] |
getChannelOpenData() |
java.lang.String |
getChannelType() |
protected int |
getMaximumPacketSize() |
protected int |
getMaximumWindowSpace() |
protected int |
getMinimumWindowSpace() |
protected void |
onChangeTerminalDimensions(int cols,
int rows,
int width,
int height) |
protected void |
onChannelClose() |
protected void |
onChannelEOF() |
protected void |
onChannelExtData(byte[] data) |
protected void |
onChannelOpen() |
protected void |
onChannelRequest(java.lang.String requestType,
boolean wantReply,
byte[] requestData) |
protected boolean |
onExecuteCommand(java.lang.String command) |
protected boolean |
onRequestPseudoTerminal(java.lang.String term,
int cols,
int rows,
int width,
int height,
java.lang.String modes) |
protected void |
onSetEnvironmentVariable(java.lang.String name,
java.lang.String value) |
protected boolean |
onStartShell() |
protected boolean |
onStartSubsystem(java.lang.String subsystem) |
bindInputStream, bindOutputStream, getInputStream, getOutputStream, init, onChannelData, onChannelExtData, open, setLocalEOFaddEventListener, close, finalizeClose, getLocalChannelId, getLocalPacketSize, getLocalWindow, getName, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setName, setRemoteEOFpublic static final java.lang.String SESSION_CHANNEL_TYPE
public SessionChannelServer()
throws ConfigurationException
ConfigurationExceptionprotected void onChangeTerminalDimensions(int cols,
int rows,
int width,
int height)
cols - rows - width - height - protected void onChannelClose()
throws java.io.IOException
onChannelClose in class IOChanneljava.io.IOExceptionprotected void onChannelEOF()
throws java.io.IOException
onChannelEOF in class IOChanneljava.io.IOExceptionprotected void onChannelExtData(byte[] data)
throws java.io.IOException
data - java.io.IOExceptionprotected void onChannelOpen()
throws InvalidChannelException
onChannelOpen in class ChannelInvalidChannelExceptionprotected boolean onExecuteCommand(java.lang.String command)
throws java.io.IOException
command - java.io.IOExceptionprotected boolean onRequestPseudoTerminal(java.lang.String term,
int cols,
int rows,
int width,
int height,
java.lang.String modes)
term - cols - rows - width - height - modes - protected void onSetEnvironmentVariable(java.lang.String name,
java.lang.String value)
name - value - protected boolean onStartShell()
throws java.io.IOException
java.io.IOExceptionprotected boolean onStartSubsystem(java.lang.String subsystem)
subsystem - public byte[] getChannelOpenData()
getChannelOpenData in class Channelpublic byte[] getChannelConfirmationData()
getChannelConfirmationData in class Channelprotected int getMinimumWindowSpace()
getMinimumWindowSpace in class Channelprotected int getMaximumWindowSpace()
getMaximumWindowSpace in class Channelprotected int getMaximumPacketSize()
getMaximumPacketSize in class Channelpublic java.lang.String getChannelType()
getChannelType in class Channelprotected void onChannelRequest(java.lang.String requestType,
boolean wantReply,
byte[] requestData)
throws java.io.IOException
onChannelRequest in class ChannelrequestType - wantReply - requestData - java.io.IOExceptionCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.