Top Fields Constructors Methods
org.apache.sshd.server.x11

public Class DefaultX11ForwardSupport

extends AbstractInnerCloseable
implements X11ForwardSupport
Class Inheritance
All Implemented Interfaces
org.apache.sshd.server.x11.X11ForwardSupport, org.apache.sshd.common.io.IoHandler, org.apache.sshd.common.Closeable, java.nio.channels.Channel, java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.IOException, .OutputStream, java.net.BindException, .InetSocketAddress, .SocketAddress, java.time.Duration, java.util.Collection, .Objects, org.apache.sshd.common.Closeable, .FactoryManager, org.apache.sshd.common.io.IoAcceptor, .IoServiceFactory, .IoSession, org.apache.sshd.common.session.ConnectionService, .Session, org.apache.sshd.common.util.GenericUtils, .OsUtils, .Readable, org.apache.sshd.common.util.buffer.Buffer, .ByteArrayBuffer, org.apache.sshd.common.util.closeable.AbstractInnerCloseable, org.apache.sshd.core.CoreModuleProperties

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private IoAcceptor
private final ConnectionService

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides default org.apache.sshd.common.Closeable.close.

Closes this channel.

public synchronized String
createDisplay(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen)

Implements org.apache.sshd.server.x11.X11ForwardSupport.createDisplay.

public void
protected Closeable
public void
public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.sshd.common.util.closeable.AbstractInnerCloseable:
doCloseGracefullydoCloseImmediately

Field Detail

acceptorback to summary
private IoAcceptor acceptor
serviceback to summary
private final ConnectionService service

Constructor Detail

DefaultX11ForwardSupportback to summary
public DefaultX11ForwardSupport(ConnectionService service)

Method Detail

closeback to summary
public void close() throws IOException

Overrides default org.apache.sshd.common.Closeable.close.

Doc from java.nio.channels.Channel.close.

Closes this channel.

After a channel is closed, any further attempt to invoke I/O operations upon it will cause a ClosedChannelException to be thrown.

If this channel is already closed then invoking this method has no effect.

This method may be invoked at any time. If some other thread has already invoked it, however, then another invocation will block until the first invocation is complete, after which it will return without effect.

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
createDisplayback to summary
public synchronized String createDisplay(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen) throws IOException

Implements org.apache.sshd.server.x11.X11ForwardSupport.createDisplay.

Annotations
@Override
exceptionCaughtback to summary
public void exceptionCaught(IoSession session, Throwable cause) throws Exception

Implements org.apache.sshd.common.io.IoHandler.exceptionCaught.

Annotations
@Override
getInnerCloseableback to summary
protected Closeable getInnerCloseable()

Implements abstract org.apache.sshd.common.util.closeable.AbstractInnerCloseable.getInnerCloseable.

Annotations
@Override
messageReceivedback to summary
public void messageReceived(IoSession session, Readable message) throws Exception

Implements org.apache.sshd.common.io.IoHandler.messageReceived.

Annotations
@Override
sessionClosedback to summary
public void sessionClosed(IoSession session) throws Exception

Implements org.apache.sshd.common.io.IoHandler.sessionClosed.

Annotations
@Override
sessionCreatedback to summary
public void sessionCreated(IoSession session) throws Exception

Implements org.apache.sshd.common.io.IoHandler.sessionCreated.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override