Package com.sshtools.client.tasks
Class AbstractSubsystem
java.lang.Object
com.sshtools.client.tasks.AbstractSubsystem
- Direct Known Subclasses:
SftpChannel
An abstract task for connecting to an SSH subsystem.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.sshtools.common.ssh.SshConnection
protected SessionChannelNG
protected long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.sshtools.common.ssh.SshConnection
protected abstract int
protected abstract com.sshtools.common.util.UnsignedInteger32
protected abstract com.sshtools.common.util.UnsignedInteger32
protected SessionChannelNG
byte[]
protected void
onCloseSession
(SessionChannelNG session) void
sendMessage
(com.sshtools.common.ssh.Packet msg)
-
Field Details
-
timeout
protected long timeout -
con
protected com.sshtools.common.ssh.SshConnection con -
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
-
nextMessage
public byte[] nextMessage() throws com.sshtools.common.ssh.SshException- Throws:
com.sshtools.common.ssh.SshException
-
onCloseSession
-
sendMessage
public void sendMessage(com.sshtools.common.ssh.Packet msg) throws com.sshtools.common.ssh.SshException - Throws:
com.sshtools.common.ssh.SshException
-