Package org.apache.sshd.server.x11
Class DefaultX11ForwardSupport
- java.lang.Object
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.nio.channels.Channel
,Closeable
,IoHandler
,X11ForwardSupport
public class DefaultX11ForwardSupport extends AbstractInnerCloseable implements X11ForwardSupport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
AbstractCloseable.State
-
-
Field Summary
Fields Modifier and Type Field Description private IoAcceptor
acceptor
private ConnectionService
service
-
Fields inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
closeFuture, futureLock, state
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.server.x11.X11ForwardSupport
ENV_DISPLAY, XAUTH_COMMAND
-
-
Constructor Summary
Constructors Constructor Description DefaultX11ForwardSupport(ConnectionService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.String
createDisplay(boolean singleConnection, java.lang.String authenticationProtocol, java.lang.String authenticationCookie, int screen)
void
exceptionCaught(IoSession session, java.lang.Throwable cause)
protected Closeable
getInnerCloseable()
void
messageReceived(IoSession session, Readable message)
void
sessionClosed(IoSession session)
void
sessionCreated(IoSession session)
java.lang.String
toString()
-
Methods inherited from class org.apache.sshd.common.util.closeable.AbstractInnerCloseable
doCloseGracefully, doCloseImmediately
-
Methods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
addCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListener
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, isClosed, isClosing, isOpen, removeCloseFutureListener
-
-
-
-
Field Detail
-
service
private final ConnectionService service
-
acceptor
private IoAcceptor acceptor
-
-
Constructor Detail
-
DefaultX11ForwardSupport
public DefaultX11ForwardSupport(ConnectionService service)
-
-
Method Detail
-
close
public void close() throws java.io.IOException
-
getInnerCloseable
protected Closeable getInnerCloseable()
- Specified by:
getInnerCloseable
in classAbstractInnerCloseable
-
createDisplay
public java.lang.String createDisplay(boolean singleConnection, java.lang.String authenticationProtocol, java.lang.String authenticationCookie, int screen) throws java.io.IOException
- Specified by:
createDisplay
in interfaceX11ForwardSupport
- Throws:
java.io.IOException
-
sessionCreated
public void sessionCreated(IoSession session) throws java.lang.Exception
- Specified by:
sessionCreated
in interfaceIoHandler
- Throws:
java.lang.Exception
-
sessionClosed
public void sessionClosed(IoSession session) throws java.lang.Exception
- Specified by:
sessionClosed
in interfaceIoHandler
- Throws:
java.lang.Exception
-
messageReceived
public void messageReceived(IoSession session, Readable message) throws java.lang.Exception
- Specified by:
messageReceived
in interfaceIoHandler
- Throws:
java.lang.Exception
-
exceptionCaught
public void exceptionCaught(IoSession session, java.lang.Throwable cause) throws java.lang.Exception
- Specified by:
exceptionCaught
in interfaceIoHandler
- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-