public class X11ForwardSupport extends CloseableUtils.AbstractInnerCloseable implements IoHandler, Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
X11ForwardSupport.ChannelForwardedX11 |
CloseableUtils.AbstractCloseable.State| Modifier and Type | Field and Description |
|---|---|
static String |
ENV_DISPLAY
Key for the user DISPLAY variable
|
static int |
MAX_DISPLAYS |
static int |
X11_DISPLAY_OFFSET |
closeFuture, lock, log, state| Constructor and Description |
|---|
X11ForwardSupport(ConnectionService service) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
createDisplay(boolean singleConnection,
String authenticationProtocol,
String authenticationCookie,
int screen) |
void |
exceptionCaught(IoSession session,
Throwable cause) |
protected Closeable |
getInnerCloseable() |
void |
messageReceived(IoSession session,
Readable message) |
void |
sessionClosed(IoSession session) |
void |
sessionCreated(IoSession session) |
doCloseGracefully, doCloseImmediatelybuilder, close, isClosed, isClosing, preClosepublic static final int X11_DISPLAY_OFFSET
public static final int MAX_DISPLAYS
public static final String ENV_DISPLAY
public X11ForwardSupport(ConnectionService service)
public void close()
protected Closeable getInnerCloseable()
getInnerCloseable in class CloseableUtils.AbstractInnerCloseablepublic String createDisplay(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen) throws IOException
IOExceptionpublic void sessionCreated(IoSession session) throws Exception
sessionCreated in interface IoHandlerExceptionpublic void sessionClosed(IoSession session) throws Exception
sessionClosed in interface IoHandlerExceptionpublic void messageReceived(IoSession session, Readable message) throws Exception
messageReceived in interface IoHandlerExceptionCopyright © 2008–2014 The Apache Software Foundation. All rights reserved.