Class AbstractSubsystem

java.lang.Object
com.sshtools.client.tasks.AbstractSubsystem
Direct Known Subclasses:
SftpChannel

public abstract class AbstractSubsystem extends Object
An abstract task for connecting to an SSH subsystem.
  • Field Details

    • timeout

      protected long timeout
    • con

      protected com.sshtools.common.ssh.SshConnection con
    • session

      protected SessionChannelNG session
  • Constructor Details

    • AbstractSubsystem

      public AbstractSubsystem(com.sshtools.common.ssh.SshConnection con)
  • Method Details

    • getConnection

      public final com.sshtools.common.ssh.SshConnection getConnection()
    • getMinimumWindowSize

      protected abstract com.sshtools.common.util.UnsignedInteger32 getMinimumWindowSize()
    • getMaximumWindowSize

      protected abstract com.sshtools.common.util.UnsignedInteger32 getMaximumWindowSize()
    • getMaximumPacketSize

      protected abstract int getMaximumPacketSize()
    • getSession

      protected SessionChannelNG getSession()
    • nextMessage

      public byte[] nextMessage() throws com.sshtools.common.ssh.SshException
      Throws:
      com.sshtools.common.ssh.SshException
    • onCloseSession

      protected void onCloseSession(SessionChannelNG session)
    • sendMessage

      public void sendMessage(com.sshtools.common.ssh.Packet msg) throws com.sshtools.common.ssh.SshException
      Throws:
      com.sshtools.common.ssh.SshException