public class X11ForwardSupport extends java.lang.Object implements IoHandler, Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
X11ForwardSupport.ChannelForwardedX11 |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENV_DISPLAY
Key for the user DISPLAY variable
|
protected org.slf4j.Logger |
log |
static int |
MAX_DISPLAYS |
static int |
X11_DISPLAY_OFFSET |
| Constructor and Description |
|---|
X11ForwardSupport(ConnectionService service) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CloseFuture |
close(boolean immediately)
Close this resource asynchronously and return a future.
|
java.lang.String |
createDisplay(boolean singleConnection,
java.lang.String authenticationProtocol,
java.lang.String authenticationCookie,
int screen) |
void |
exceptionCaught(IoSession session,
java.lang.Throwable cause) |
void |
initialize() |
void |
messageReceived(IoSession session,
Readable message) |
void |
sessionClosed(IoSession session) |
void |
sessionCreated(IoSession session) |
public static final int X11_DISPLAY_OFFSET
public static final int MAX_DISPLAYS
public static final java.lang.String ENV_DISPLAY
protected final org.slf4j.Logger log
public X11ForwardSupport(ConnectionService service)
public void initialize()
public void close()
public CloseFuture close(boolean immediately)
Closeablepublic java.lang.String createDisplay(boolean singleConnection,
java.lang.String authenticationProtocol,
java.lang.String authenticationCookie,
int screen)
throws java.io.IOException
java.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.ExceptionCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.