Class AbstractDirectChannel
java.lang.Object
net.schmizz.sshj.connection.channel.AbstractChannel
net.schmizz.sshj.connection.channel.direct.AbstractDirectChannel
- All Implemented Interfaces:
Closeable, AutoCloseable, ErrorNotifiable, SSHPacketHandler, Channel, Channel.Direct
- Direct Known Subclasses:
DirectTCPIPChannel, SessionChannel
Base class for direct channels whose open is initiated by the client.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractChannel
AbstractChannel.TransportRunnableNested classes/interfaces inherited from interface Channel
Channel.Direct, Channel.ForwardedNested classes/interfaces inherited from interface ErrorNotifiable
ErrorNotifiable.Util -
Field Summary
Fields inherited from class AbstractChannel
closeEvent, conn, log, loggerFactory, lwin, openEvent, rwin, trans -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDirectChannel(Connection conn, String type) protectedAbstractDirectChannel(Connection conn, String type, Charset remoteCharset) -
Method Summary
Modifier and TypeMethodDescriptionprotected SSHPacketprivate voidprivate voidgotOpenFailure(SSHPacket buf) protected voidgotUnknown(Message cmd, SSHPacket buf) voidopen()Request opening this channel from remote end.Methods inherited from class AbstractChannel
close, closeAllStreams, eofInputStreams, finishOff, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getLoggerFactory, getOutputStream, getRecipient, getRemoteCharset, getRemoteMaxPacketSize, getRemoteWinSize, getType, gotExtendedData, handle, handleRequest, init, isEOF, isOpen, join, join, newBuffer, notifyError, receiveInto, sendChannelRequest, sendClose, setAutoExpand, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Channel
close, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getLoggerFactory, getOutputStream, getRecipient, getRemoteCharset, getRemoteMaxPacketSize, getRemoteWinSize, getType, isEOF, isOpen, join, join, setAutoExpandMethods inherited from interface ErrorNotifiable
notifyErrorMethods inherited from interface SSHPacketHandler
handle
-
Constructor Details
-
AbstractDirectChannel
-
AbstractDirectChannel
-
-
Method Details
-
open
Description copied from interface:Channel.DirectRequest opening this channel from remote end.- Specified by:
openin interfaceChannel.Direct- Throws:
ConnectionException- other connection-layer errorTransportException- error writing packets etc.
-
gotOpenConfirmation
- Throws:
ConnectionException
-
gotOpenFailure
- Throws:
ConnectionException
-
buildOpenReq
-
gotUnknown
protected void gotUnknown(Message cmd, SSHPacket buf) throws ConnectionException, TransportException - Overrides:
gotUnknownin classAbstractChannel- Throws:
ConnectionExceptionTransportException
-