public class DefaultX11ForwardSupport extends AbstractInnerCloseable implements X11ForwardSupport
AbstractCloseable.State| Modifier and Type | Field and Description |
|---|---|
private IoAcceptor |
acceptor |
private ConnectionService |
service |
closeFuture, futureLock, statelogCHANNEL_OPEN_TIMEOUT_PROP, DEFAULT_CHANNEL_OPEN_TIMEOUT, DEFAULT_X11_BASE_PORT, DEFAULT_X11_BIND_HOST, DEFAULT_X11_DISPLAY_OFFSET, DEFAULT_X11_MAX_DISPLAYS, ENV_DISPLAY, X11_BASE_PORT, X11_BIND_HOST, X11_DISPLAY_OFFSET, X11_MAX_DISPLAYS, XAUTH_COMMANDCLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT| Constructor and Description |
|---|
DefaultX11ForwardSupport(ConnectionService service) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.String |
createDisplay(boolean singleConnection,
java.lang.String authenticationProtocol,
java.lang.String authenticationCookie,
int screen) |
void |
exceptionCaught(IoSession session,
java.lang.Throwable cause) |
protected Closeable |
getInnerCloseable() |
void |
messageReceived(IoSession session,
Readable message) |
void |
sessionClosed(IoSession session) |
void |
sessionCreated(IoSession session) |
java.lang.String |
toString() |
doCloseGracefully, doCloseImmediatelyaddCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListenergetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCloseFutureListener, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenerprivate final ConnectionService service
private IoAcceptor acceptor
public DefaultX11ForwardSupport(ConnectionService service)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionprotected Closeable getInnerCloseable()
getInnerCloseable in class AbstractInnerCloseablepublic java.lang.String createDisplay(boolean singleConnection,
java.lang.String authenticationProtocol,
java.lang.String authenticationCookie,
int screen)
throws java.io.IOException
createDisplay in interface X11ForwardSupportjava.io.IOExceptionpublic void sessionCreated(IoSession session) throws java.lang.Exception
sessionCreated in interface IoHandlerjava.lang.Exceptionpublic void sessionClosed(IoSession session) throws java.lang.Exception
sessionClosed in interface IoHandlerjava.lang.Exceptionpublic void messageReceived(IoSession session, Readable message) throws java.lang.Exception
messageReceived in interface IoHandlerjava.lang.Exceptionpublic void exceptionCaught(IoSession session, java.lang.Throwable cause) throws java.lang.Exception
exceptionCaught in interface IoHandlerjava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Object