Package com.sshtools.daemon.session
Class SessionChannelServer
java.lang.Object
com.sshtools.j2ssh.connection.Channel
com.sshtools.j2ssh.connection.IOChannel
com.sshtools.daemon.session.SessionChannelServer
- Version:
- $Revision: 1.16 $
- Author:
- $author$
-
Field Summary
FieldsFields inherited from class com.sshtools.j2ssh.connection.IOChannel
boundInputStream, boundOutputStream, in, out
Fields inherited from class com.sshtools.j2ssh.connection.Channel
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte[]
protected int
protected int
protected int
protected void
onChangeTerminalDimensions
(int cols, int rows, int width, int height) protected void
protected void
protected void
onChannelExtData
(byte[] data) protected void
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
protected boolean
onStartSubsystem
(String subsystem) Methods inherited from class com.sshtools.j2ssh.connection.IOChannel
bindInputStream, bindOutputStream, getInputStream, getOutputStream, init, onChannelData, onChannelExtData, open, setLocalEOF
Methods inherited from class com.sshtools.j2ssh.connection.Channel
addEventListener, close, finalizeClose, getLocalChannelId, getLocalPacketSize, getLocalWindow, getName, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setName, setRemoteEOF
-
Field Details
-
SESSION_CHANNEL_TYPE
- See Also:
-
-
Constructor Details
-
SessionChannelServer
Creates a new SessionChannelServer object.- Throws:
ConfigurationException
-
-
Method Details
-
onChangeTerminalDimensions
protected void onChangeTerminalDimensions(int cols, int rows, int width, int height) - Parameters:
cols
-rows
-width
-height
-
-
onChannelClose
- Overrides:
onChannelClose
in classIOChannel
- Throws:
IOException
-
onChannelEOF
- Overrides:
onChannelEOF
in classIOChannel
- Throws:
IOException
-
onChannelExtData
- Parameters:
data
-- Throws:
IOException
-
onChannelOpen
- Specified by:
onChannelOpen
in classChannel
- Throws:
InvalidChannelException
-
onExecuteCommand
- Parameters:
command
-- Returns:
- Throws:
IOException
-
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
- Parameters:
name
-value
-
-
onStartShell
- Returns:
- Throws:
IOException
-
onStartSubsystem
- Parameters:
subsystem
-- Returns:
-
getChannelOpenData
public byte[] getChannelOpenData()- Specified by:
getChannelOpenData
in classChannel
- Returns:
-
getChannelConfirmationData
public byte[] getChannelConfirmationData()- Specified by:
getChannelConfirmationData
in classChannel
- Returns:
-
getMinimumWindowSpace
protected int getMinimumWindowSpace()- Specified by:
getMinimumWindowSpace
in classChannel
- Returns:
-
getMaximumWindowSpace
protected int getMaximumWindowSpace()- Specified by:
getMaximumWindowSpace
in classChannel
- Returns:
-
getMaximumPacketSize
protected int getMaximumPacketSize()- Specified by:
getMaximumPacketSize
in classChannel
- Returns:
-
getChannelType
- Specified by:
getChannelType
in classChannel
- Returns:
-
onChannelRequest
protected void onChannelRequest(String requestType, boolean wantReply, byte[] requestData) throws IOException - Specified by:
onChannelRequest
in classChannel
- Parameters:
requestType
-wantReply
-requestData
-- Throws:
IOException
-