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, outFields 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 intprotected intprotected intprotected voidonChangeTerminalDimensions(int cols, int rows, int width, int height) protected voidprotected voidprotected voidonChannelExtData(byte[] data) protected voidprotected voidonChannelRequest(String requestType, boolean wantReply, byte[] requestData) protected booleanonExecuteCommand(String command) protected booleanonRequestPseudoTerminal(String term, int cols, int rows, int width, int height, String modes) protected voidonSetEnvironmentVariable(String name, String value) protected booleanprotected booleanonStartSubsystem(String subsystem) Methods inherited from class com.sshtools.j2ssh.connection.IOChannel
bindInputStream, bindOutputStream, getInputStream, getOutputStream, init, onChannelData, onChannelExtData, open, setLocalEOFMethods 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:
onChannelClosein classIOChannel- Throws:
IOException
-
onChannelEOF
- Overrides:
onChannelEOFin classIOChannel- Throws:
IOException
-
onChannelExtData
- Parameters:
data-- Throws:
IOException
-
onChannelOpen
- Specified by:
onChannelOpenin 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:
getChannelOpenDatain classChannel- Returns:
-
getChannelConfirmationData
public byte[] getChannelConfirmationData()- Specified by:
getChannelConfirmationDatain classChannel- Returns:
-
getMinimumWindowSpace
protected int getMinimumWindowSpace()- Specified by:
getMinimumWindowSpacein classChannel- Returns:
-
getMaximumWindowSpace
protected int getMaximumWindowSpace()- Specified by:
getMaximumWindowSpacein classChannel- Returns:
-
getMaximumPacketSize
protected int getMaximumPacketSize()- Specified by:
getMaximumPacketSizein classChannel- Returns:
-
getChannelType
- Specified by:
getChannelTypein classChannel- Returns:
-
onChannelRequest
protected void onChannelRequest(String requestType, boolean wantReply, byte[] requestData) throws IOException - Specified by:
onChannelRequestin classChannel- Parameters:
requestType-wantReply-requestData-- Throws:
IOException
-