Class X11Forwarder
- java.lang.Object
-
- net.schmizz.sshj.connection.channel.forwarded.AbstractForwardedChannelOpener
-
- net.schmizz.sshj.connection.channel.forwarded.X11Forwarder
-
- All Implemented Interfaces:
ForwardedChannelOpener
public class X11Forwarder extends AbstractForwardedChannelOpener
Handles forwardedx11
channels. The actual request to forward X11 should be made from the specificSession
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
X11Forwarder.X11Channel
Anx11
forwarded channel.
-
Field Summary
Fields Modifier and Type Field Description private ConnectListener
listener
-
Fields inherited from class net.schmizz.sshj.connection.channel.forwarded.AbstractForwardedChannelOpener
chanType, conn, log
-
-
Constructor Summary
Constructors Constructor Description X11Forwarder(Connection conn, ConnectListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleOpen(SSHPacket buf)
Internal APIvoid
stop()
Stop handlingx11
channel open requests.-
Methods inherited from class net.schmizz.sshj.connection.channel.forwarded.AbstractForwardedChannelOpener
callListener, getChannelType
-
-
-
-
Field Detail
-
listener
private final ConnectListener listener
-
-
Constructor Detail
-
X11Forwarder
public X11Forwarder(Connection conn, ConnectListener listener)
- Parameters:
conn
- connection layerlistener
- listener which will be delegatedX11Forwarder.X11Channel
's to next
-
-
Method Detail
-
handleOpen
public void handleOpen(SSHPacket buf) throws ConnectionException, TransportException
Internal API- Parameters:
buf
-SSHPacket
containing the request except for the message identifier and channel type field- Throws:
ConnectionException
TransportException
-
stop
public void stop()
Stop handlingx11
channel open requests. De-registers itself with connection layer.
-
-