public class X11ForwardSupport
extends org.apache.mina.core.service.IoHandlerAdapter
Modifier and Type | Class and Description |
---|---|
static class |
X11ForwardSupport.ChannelForwardedX11 |
Modifier and Type | Field and Description |
---|---|
static 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(ServerSession session) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
createDisplay(boolean singleConnection,
String authenticationProtocol,
String authenticationCookie,
int screen) |
void |
exceptionCaught(org.apache.mina.core.session.IoSession session,
Throwable cause) |
void |
initialize() |
void |
messageReceived(org.apache.mina.core.session.IoSession session,
Object message) |
void |
sessionClosed(org.apache.mina.core.session.IoSession session) |
void |
sessionCreated(org.apache.mina.core.session.IoSession session) |
public static final int X11_DISPLAY_OFFSET
public static final int MAX_DISPLAYS
public static final String ENV_DISPLAY
protected final org.slf4j.Logger log
public X11ForwardSupport(ServerSession session)
public void initialize()
public void close()
public String createDisplay(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen) throws IOException
IOException
public void sessionCreated(org.apache.mina.core.session.IoSession session) throws Exception
sessionCreated
in interface org.apache.mina.core.service.IoHandler
sessionCreated
in class org.apache.mina.core.service.IoHandlerAdapter
Exception
public void sessionClosed(org.apache.mina.core.session.IoSession session) throws Exception
sessionClosed
in interface org.apache.mina.core.service.IoHandler
sessionClosed
in class org.apache.mina.core.service.IoHandlerAdapter
Exception
public void messageReceived(org.apache.mina.core.session.IoSession session, Object message) throws Exception
messageReceived
in interface org.apache.mina.core.service.IoHandler
messageReceived
in class org.apache.mina.core.service.IoHandlerAdapter
Exception
public void exceptionCaught(org.apache.mina.core.session.IoSession session, Throwable cause) throws Exception
exceptionCaught
in interface org.apache.mina.core.service.IoHandler
exceptionCaught
in class org.apache.mina.core.service.IoHandlerAdapter
Exception
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.