public class X11ForwardSupport extends AbstractInnerCloseable implements IoHandler
Modifier and Type | Class and Description |
---|---|
static class |
X11ForwardSupport.ChannelForwardedX11 |
AbstractCloseable.State
Modifier and Type | Field and Description |
---|---|
static String |
CHANNEL_OPEN_TIMEOUT_PROP
Configuration value on the
FactoryManager to control the
channel open timeout. |
static long |
DEFAULT_CHANNEL_OPEN_TIMEOUT |
static String |
ENV_DISPLAY
Key for the user DISPLAY variable
|
static int |
MAX_DISPLAYS |
static int |
X11_DISPLAY_OFFSET |
closeFuture, lock, state
log
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, doCloseImmediately
builder, close, isClosed, isClosing, preClose
isOpen
public static final String CHANNEL_OPEN_TIMEOUT_PROP
FactoryManager
to control the
channel open timeout. If not specified then DEFAULT_CHANNEL_OPEN_TIMEOUT
value is usedpublic static final long DEFAULT_CHANNEL_OPEN_TIMEOUT
public 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() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
close
in class IoBaseCloseable
IOException
protected Closeable getInnerCloseable()
getInnerCloseable
in class AbstractInnerCloseable
public String createDisplay(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen) throws IOException
IOException
public void sessionCreated(IoSession session) throws Exception
sessionCreated
in interface IoHandler
Exception
public void sessionClosed(IoSession session) throws Exception
sessionClosed
in interface IoHandler
Exception
public void messageReceived(IoSession session, Readable message) throws Exception
messageReceived
in interface IoHandler
Exception
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.