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.String
chanType
protected Connection
conn
protected org.slf4j.Logger
log
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractForwardedChannelOpener(java.lang.String chanType, Connection conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
callListener(ConnectListener listener, Channel.Forwarded chan)
Calls the listener with the new channel in a separate thread.java.lang.String
getChannelType()
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:ForwardedChannelOpener
Returns the name of the channel type this opener can next.- Specified by:
getChannelType
in interfaceForwardedChannelOpener
-
callListener
protected void callListener(ConnectListener listener, Channel.Forwarded chan)
Calls the listener with the new channel in a separate thread.
-
-