public class SessionChannelServer extends IOChannel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SESSION_CHANNEL_TYPE |
boundInputStream, boundOutputStream, in, out
connection, 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, setLocalEOF
addEventListener, close, finalizeClose, getLocalChannelId, getLocalPacketSize, getLocalWindow, getName, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setName, setRemoteEOF
public static final java.lang.String SESSION_CHANNEL_TYPE
public SessionChannelServer() throws ConfigurationException
ConfigurationException
protected void onChangeTerminalDimensions(int cols, int rows, int width, int height)
cols
- rows
- width
- height
- protected void onChannelClose() throws java.io.IOException
onChannelClose
in class IOChannel
java.io.IOException
protected void onChannelEOF() throws java.io.IOException
onChannelEOF
in class IOChannel
java.io.IOException
protected void onChannelExtData(byte[] data) throws java.io.IOException
data
- java.io.IOException
protected void onChannelOpen() throws InvalidChannelException
onChannelOpen
in class Channel
InvalidChannelException
protected boolean onExecuteCommand(java.lang.String command) throws java.io.IOException
command
- java.io.IOException
protected 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.IOException
protected boolean onStartSubsystem(java.lang.String subsystem)
subsystem
- public byte[] getChannelOpenData()
getChannelOpenData
in class Channel
public byte[] getChannelConfirmationData()
getChannelConfirmationData
in class Channel
protected int getMinimumWindowSpace()
getMinimumWindowSpace
in class Channel
protected int getMaximumWindowSpace()
getMaximumWindowSpace
in class Channel
protected int getMaximumPacketSize()
getMaximumPacketSize
in class Channel
public java.lang.String getChannelType()
getChannelType
in class Channel
protected void onChannelRequest(java.lang.String requestType, boolean wantReply, byte[] requestData) throws java.io.IOException
onChannelRequest
in class Channel
requestType
- wantReply
- requestData
- java.io.IOException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.