Class SessionChannelServer


  • public class SessionChannelServer
    extends IOChannel
    Version:
    $Revision: 1.16 $
    Author:
    $author$
    • Field Detail

      • SESSION_CHANNEL_TYPE

        public static final java.lang.String SESSION_CHANNEL_TYPE
        See Also:
        Constant Field Values
    • Method Detail

      • onChangeTerminalDimensions

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

        protected void onChannelClose()
                               throws java.io.IOException
        Overrides:
        onChannelClose in class IOChannel
        Throws:
        java.io.IOException
      • onChannelEOF

        protected void onChannelEOF()
                             throws java.io.IOException
        Overrides:
        onChannelEOF in class IOChannel
        Throws:
        java.io.IOException
      • onChannelExtData

        protected void onChannelExtData​(byte[] data)
                                 throws java.io.IOException
        Parameters:
        data -
        Throws:
        java.io.IOException
      • onExecuteCommand

        protected boolean onExecuteCommand​(java.lang.String command)
                                    throws java.io.IOException
        Parameters:
        command -
        Returns:
        Throws:
        java.io.IOException
      • onRequestPseudoTerminal

        protected boolean onRequestPseudoTerminal​(java.lang.String term,
                                                  int cols,
                                                  int rows,
                                                  int width,
                                                  int height,
                                                  java.lang.String modes)
        Parameters:
        term -
        cols -
        rows -
        width -
        height -
        modes -
        Returns:
      • onSetEnvironmentVariable

        protected void onSetEnvironmentVariable​(java.lang.String name,
                                                java.lang.String value)
        Parameters:
        name -
        value -
      • onStartShell

        protected boolean onStartShell()
                                throws java.io.IOException
        Returns:
        Throws:
        java.io.IOException
      • onStartSubsystem

        protected boolean onStartSubsystem​(java.lang.String subsystem)
        Parameters:
        subsystem -
        Returns:
      • getChannelType

        public java.lang.String getChannelType()
        Specified by:
        getChannelType in class Channel
        Returns:
      • onChannelRequest

        protected void onChannelRequest​(java.lang.String requestType,
                                        boolean wantReply,
                                        byte[] requestData)
                                 throws java.io.IOException
        Specified by:
        onChannelRequest in class Channel
        Parameters:
        requestType -
        wantReply -
        requestData -
        Throws:
        java.io.IOException