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

  • Constructor Details

    • AbstractSubsystem

      public AbstractSubsystem(SshConnection con)
  • Method Details

    • getConnection

      public final 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 SshException
      Throws:
      SshException
    • onCloseSession

      protected void onCloseSession(SessionChannelNG session)
    • sendMessage

      public void sendMessage(Packet msg) throws SshException
      Throws:
      SshException