Class AbstractForwardedChannelOpener
java.lang.Object
net.schmizz.sshj.connection.channel.forwarded.AbstractForwardedChannelOpener
- All Implemented Interfaces:
ForwardedChannelOpener
- Direct Known Subclasses:
RemotePortForwarder
,X11Forwarder
public abstract class AbstractForwardedChannelOpener
extends Object
implements ForwardedChannelOpener
Base class for
ForwardedChannelOpener
's.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
protected final Connection
protected final org.slf4j.Logger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractForwardedChannelOpener
(String chanType, Connection conn) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
callListener
(ConnectListener listener, Channel.Forwarded chan) Calls the listener with the new channel in a separate thread.Returns the name of the channel type this opener can next.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.schmizz.sshj.connection.channel.forwarded.ForwardedChannelOpener
handleOpen
-
Field Details
-
log
protected final org.slf4j.Logger log -
chanType
-
conn
-
-
Constructor Details
-
AbstractForwardedChannelOpener
-
-
Method Details
-
getChannelType
Description copied from interface:ForwardedChannelOpener
Returns the name of the channel type this opener can next.- Specified by:
getChannelType
in interfaceForwardedChannelOpener
-
callListener
Calls the listener with the new channel in a separate thread.
-