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 forwardedx11channels. The actual request to forward X11 should be made from the specificSession.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classX11Forwarder.X11ChannelAnx11forwarded channel.
-
Field Summary
-
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
Modifier and Type Method Description voidhandleOpen(SSHPacket buf)Internal APIvoidstop()Stop handlingx11channel open requests.-
Methods inherited from class net.schmizz.sshj.connection.channel.forwarded.AbstractForwardedChannelOpener
callListener, getChannelType
-
-
-
-
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-SSHPacketcontaining the request except for the message identifier and channel type field- Throws:
ConnectionExceptionTransportException
-
stop
public void stop()
Stop handlingx11channel open requests. De-registers itself with connection layer.
-
-