net.schmizz.sshj.connection.channel.direct
Class AbstractDirectChannel
java.lang.Object
net.schmizz.sshj.connection.channel.AbstractChannel
net.schmizz.sshj.connection.channel.direct.AbstractDirectChannel
- All Implemented Interfaces:
- Closeable, ErrorNotifiable, SSHPacketHandler, Channel, Channel.Direct
- Direct Known Subclasses:
- LocalPortForwarder.DirectTCPIPChannel, SessionChannel
public abstract class AbstractDirectChannel
- extends AbstractChannel
- implements Channel.Direct
Base class for direct channels whose open is initated by the client.
Methods inherited from class net.schmizz.sshj.connection.channel.AbstractChannel |
close, closeAllStreams, eofInputStreams, finishOff, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getOutputStream, getRecipient, getRemoteMaxPacketSize, getRemoteWinSize, getType, gotExtendedData, handle, handleRequest, init, isOpen, join, join, newBuffer, notifyError, receiveInto, sendChannelRequest, sendClose, sendEOF, setAutoExpand, toString |
Methods inherited from interface net.schmizz.sshj.connection.channel.Channel |
close, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getOutputStream, getRecipient, getRemoteMaxPacketSize, getRemoteWinSize, getType, isOpen, join, join, sendEOF, setAutoExpand |
AbstractDirectChannel
protected AbstractDirectChannel(Connection conn,
String type)
open
public void open()
throws ConnectionException,
TransportException
- Description copied from interface:
Channel.Direct
- Request opening this channel from remote end.
- Specified by:
open
in interface Channel.Direct
- Throws:
OpenFailException
- in case the channel open request was rejected
ConnectionException
- other connection-layer error
TransportException
- error writing packets etc.
buildOpenReq
protected SSHPacket buildOpenReq()
gotUnknown
protected void gotUnknown(Message cmd,
SSHPacket buf)
throws ConnectionException,
TransportException
- Overrides:
gotUnknown
in class AbstractChannel
- Throws:
ConnectionException
TransportException
Copyright © 2009-2012. All Rights Reserved.