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 java.lang.Object implements ForwardedChannelOpener
Base class forForwardedChannelOpener's.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringchanTypeprotected Connectionconnprotected org.slf4j.Loggerlog
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractForwardedChannelOpener(java.lang.String chanType, Connection conn)
-
Method Summary
Modifier and Type Method Description protected voidcallListener(ConnectListener listener, Channel.Forwarded chan)Calls the listener with the new channel in a separate thread.java.lang.StringgetChannelType()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 Detail
-
log
protected final org.slf4j.Logger log
-
chanType
protected final java.lang.String chanType
-
conn
protected final Connection conn
-
-
Constructor Detail
-
AbstractForwardedChannelOpener
protected AbstractForwardedChannelOpener(java.lang.String chanType, Connection conn)
-
-
Method Detail
-
getChannelType
public java.lang.String getChannelType()
Description copied from interface:ForwardedChannelOpenerReturns the name of the channel type this opener can next.- Specified by:
getChannelTypein interfaceForwardedChannelOpener
-
callListener
protected void callListener(ConnectListener listener, Channel.Forwarded chan)
Calls the listener with the new channel in a separate thread.
-
-