org.apache.sshd.server.x11
Class X11ForwardSupport

java.lang.Object
  extended by org.apache.mina.core.service.IoHandlerAdapter
      extended by org.apache.sshd.server.x11.X11ForwardSupport
All Implemented Interfaces:
org.apache.mina.core.service.IoHandler

public class X11ForwardSupport
extends org.apache.mina.core.service.IoHandlerAdapter

Author:
Apache MINA SSHD Project

Nested Class Summary
static class X11ForwardSupport.ChannelForwardedX11
           
 
Field Summary
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 Summary
X11ForwardSupport(ServerSession session)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter
messageSent, sessionIdle, sessionOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X11_DISPLAY_OFFSET

public static final int X11_DISPLAY_OFFSET
See Also:
Constant Field Values

MAX_DISPLAYS

public static final int MAX_DISPLAYS
See Also:
Constant Field Values

ENV_DISPLAY

public static final String ENV_DISPLAY
Key for the user DISPLAY variable

See Also:
Constant Field Values

log

protected final org.slf4j.Logger log
Constructor Detail

X11ForwardSupport

public X11ForwardSupport(ServerSession session)
Method Detail

initialize

public void initialize()

close

public void close()

createDisplay

public String createDisplay(boolean singleConnection,
                            String authenticationProtocol,
                            String authenticationCookie,
                            int screen)
                     throws IOException
Throws:
IOException

sessionCreated

public void sessionCreated(org.apache.mina.core.session.IoSession session)
                    throws Exception
Specified by:
sessionCreated in interface org.apache.mina.core.service.IoHandler
Overrides:
sessionCreated in class org.apache.mina.core.service.IoHandlerAdapter
Throws:
Exception

sessionClosed

public void sessionClosed(org.apache.mina.core.session.IoSession session)
                   throws Exception
Specified by:
sessionClosed in interface org.apache.mina.core.service.IoHandler
Overrides:
sessionClosed in class org.apache.mina.core.service.IoHandlerAdapter
Throws:
Exception

messageReceived

public void messageReceived(org.apache.mina.core.session.IoSession session,
                            Object message)
                     throws Exception
Specified by:
messageReceived in interface org.apache.mina.core.service.IoHandler
Overrides:
messageReceived in class org.apache.mina.core.service.IoHandlerAdapter
Throws:
Exception

exceptionCaught

public void exceptionCaught(org.apache.mina.core.session.IoSession session,
                            Throwable cause)
                     throws Exception
Specified by:
exceptionCaught in interface org.apache.mina.core.service.IoHandler
Overrides:
exceptionCaught in class org.apache.mina.core.service.IoHandlerAdapter
Throws:
Exception


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.