Class SessionChannelClient


  • public class SessionChannelClient
    extends IOChannel
    Version:
    $Revision: 1.52 $
    Author:
    $author$
    • Constructor Detail

      • SessionChannelClient

        public SessionChannelClient()
        Creates a new SessionChannelClient object.
    • Method Detail

      • getChannelType

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

        public void setSignalListener​(SignalListener signalListener)
        Parameters:
        signalListener -
      • setEnvironmentVariable

        public boolean setEnvironmentVariable​(java.lang.String name,
                                              java.lang.String value)
                                       throws java.io.IOException
        Parameters:
        name -
        value -
        Returns:
        Throws:
        java.io.IOException
      • requestX11Forwarding

        public boolean requestX11Forwarding​(int display,
                                            java.lang.String cookie)
                                     throws java.io.IOException
        Parameters:
        display -
        cookie -
        Returns:
        Throws:
        java.io.IOException
      • getExitCode

        public java.lang.Integer getExitCode()
        Returns:
      • changeTerminalDimensions

        public void changeTerminalDimensions​(PseudoTerminal term)
                                      throws java.io.IOException
        Parameters:
        term -
        Throws:
        java.io.IOException
      • executeCommand

        public boolean executeCommand​(java.lang.String command)
                               throws java.io.IOException
        Parameters:
        command -
        Returns:
        Throws:
        java.io.IOException
      • requestPseudoTerminal

        public boolean requestPseudoTerminal​(java.lang.String term,
                                             int cols,
                                             int rows,
                                             int width,
                                             int height,
                                             java.lang.String terminalModes)
                                      throws java.io.IOException
        Parameters:
        term -
        cols -
        rows -
        width -
        height -
        terminalModes -
        Returns:
        Throws:
        java.io.IOException
      • requestPseudoTerminal

        public boolean requestPseudoTerminal​(PseudoTerminal term)
                                      throws java.io.IOException
        Parameters:
        term -
        Returns:
        Throws:
        java.io.IOException
      • startShell

        public boolean startShell()
                           throws java.io.IOException
        Returns:
        Throws:
        java.io.IOException
      • startSubsystem

        public boolean startSubsystem​(java.lang.String subsystem)
                               throws java.io.IOException
        Parameters:
        subsystem -
        Returns:
        Throws:
        java.io.IOException
      • startSubsystem

        public boolean startSubsystem​(SubsystemClient subsystem)
                               throws java.io.IOException
        Parameters:
        subsystem -
        Returns:
        Throws:
        java.io.IOException
      • isLocalFlowControlEnabled

        public boolean isLocalFlowControlEnabled()
        Returns:
      • getSessionType

        public java.lang.String getSessionType()
        Returns:
      • setSessionType

        public void setSessionType​(java.lang.String sessionType)
        Parameters:
        sessionType -
      • onChannelClose

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

        protected void onChannelOpen()
                              throws java.io.IOException
        Specified by:
        onChannelOpen in class Channel
        Throws:
        java.io.IOException
      • getStderrInputStream

        public java.io.InputStream getStderrInputStream()
                                                 throws java.io.IOException
        Returns:
        Throws:
        java.io.IOException
      • 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