public class DefaultX11ForwardSupport extends AbstractInnerCloseable implements X11ForwardSupport
AbstractCloseable.State
Modifier and Type | Field and Description |
---|---|
private IoAcceptor |
acceptor |
private ConnectionService |
service |
closeFuture, futureLock, state
log
CHANNEL_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_COMMAND
CLOSE_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, doCloseImmediately
addCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListener
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addCloseFutureListener, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListener
private final ConnectionService service
private IoAcceptor acceptor
public DefaultX11ForwardSupport(ConnectionService service)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
java.io.IOException
protected Closeable getInnerCloseable()
getInnerCloseable
in class AbstractInnerCloseable
public java.lang.String createDisplay(boolean singleConnection, java.lang.String authenticationProtocol, java.lang.String authenticationCookie, int screen) throws java.io.IOException
createDisplay
in interface X11ForwardSupport
java.io.IOException
public void sessionCreated(IoSession session) throws java.lang.Exception
sessionCreated
in interface IoHandler
java.lang.Exception
public void sessionClosed(IoSession session) throws java.lang.Exception
sessionClosed
in interface IoHandler
java.lang.Exception
public void messageReceived(IoSession session, Readable message) throws java.lang.Exception
messageReceived
in interface IoHandler
java.lang.Exception
public void exceptionCaught(IoSession session, java.lang.Throwable cause) throws java.lang.Exception
exceptionCaught
in interface IoHandler
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object