com.sshtools.daemon.session

Class SessionChannelServer


public class SessionChannelServer
extends IOChannel

Version:
$Revision: 1.16 $
Author:
$author$

Field Summary

static String
SESSION_CHANNEL_TYPE

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

SessionChannelServer()
Creates a new SessionChannelServer object.

Method Summary

byte[]
getChannelConfirmationData()
byte[]
getChannelOpenData()
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(String requestType, boolean wantReply, byte[] requestData)
protected boolean
onExecuteCommand(String command)
protected boolean
onRequestPseudoTerminal(String term, int cols, int rows, int width, int height, String modes)
protected void
onSetEnvironmentVariable(String name, String value)
protected boolean
onStartShell()
protected boolean
onStartSubsystem(String subsystem)

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

Field Details

SESSION_CHANNEL_TYPE

public static final String SESSION_CHANNEL_TYPE

Constructor Details

SessionChannelServer

public SessionChannelServer()
            throws ConfigurationException
Creates a new SessionChannelServer object.

Method Details

getChannelConfirmationData

public byte[] getChannelConfirmationData()
Overrides:
getChannelConfirmationData in interface Channel
Returns:

getChannelOpenData

public byte[] getChannelOpenData()
Overrides:
getChannelOpenData in interface Channel
Returns:

getChannelType

public String getChannelType()
Overrides:
getChannelType in interface Channel
Returns:

getMaximumPacketSize

protected int getMaximumPacketSize()
Overrides:
getMaximumPacketSize in interface Channel
Returns:

getMaximumWindowSpace

protected int getMaximumWindowSpace()
Overrides:
getMaximumWindowSpace in interface Channel
Returns:

getMinimumWindowSpace

protected int getMinimumWindowSpace()
Overrides:
getMinimumWindowSpace in interface Channel
Returns:

onChangeTerminalDimensions

protected void onChangeTerminalDimensions(int cols,
                                          int rows,
                                          int width,
                                          int height)
Parameters:
cols -
rows -
width -
height -

onChannelClose

protected void onChannelClose()
            throws IOException
Overrides:
onChannelClose in interface IOChannel

onChannelEOF

protected void onChannelEOF()
            throws IOException
Overrides:
onChannelEOF in interface IOChannel

onChannelExtData

protected void onChannelExtData(byte[] data)
            throws IOException
Parameters:
data -

onChannelOpen

protected void onChannelOpen()
            throws InvalidChannelException
Overrides:
onChannelOpen in interface Channel

onChannelRequest

protected void onChannelRequest(String requestType,
                                boolean wantReply,
                                byte[] requestData)
            throws IOException
Overrides:
onChannelRequest in interface Channel
Parameters:
requestType -
wantReply -
requestData -

onExecuteCommand

protected boolean onExecuteCommand(String command)
            throws IOException
Parameters:
command -
Returns:

onRequestPseudoTerminal

protected boolean onRequestPseudoTerminal(String term,
                                          int cols,
                                          int rows,
                                          int width,
                                          int height,
                                          String modes)
Parameters:
term -
cols -
rows -
width -
height -
modes -
Returns:

onSetEnvironmentVariable

protected void onSetEnvironmentVariable(String name,
                                        String value)
Parameters:
name -
value -

onStartShell

protected boolean onStartShell()
            throws IOException
Returns:

onStartSubsystem

protected boolean onStartSubsystem(String subsystem)
Parameters:
subsystem -
Returns:

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