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 Stringprotected final Connectionprotected final org.slf4j.Logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractForwardedChannelOpener(String chanType, Connection conn) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcallListener(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, waitMethods 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:ForwardedChannelOpenerReturns the name of the channel type this opener can next.- Specified by:
getChannelTypein interfaceForwardedChannelOpener
-
callListener
Calls the listener with the new channel in a separate thread.
-