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 IoAcceptoracceptorprivate ConnectionServiceservice-
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 voidclose()java.lang.StringcreateDisplay(boolean singleConnection, java.lang.String authenticationProtocol, java.lang.String authenticationCookie, int screen)voidexceptionCaught(IoSession session, java.lang.Throwable cause)protected CloseablegetInnerCloseable()voidmessageReceived(IoSession session, Readable message)voidsessionClosed(IoSession session)voidsessionCreated(IoSession session)java.lang.StringtoString()-
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:
getInnerCloseablein 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:
createDisplayin interfaceX11ForwardSupport- Throws:
java.io.IOException
-
sessionCreated
public void sessionCreated(IoSession session) throws java.lang.Exception
- Specified by:
sessionCreatedin interfaceIoHandler- Throws:
java.lang.Exception
-
sessionClosed
public void sessionClosed(IoSession session) throws java.lang.Exception
- Specified by:
sessionClosedin interfaceIoHandler- Throws:
java.lang.Exception
-
messageReceived
public void messageReceived(IoSession session, Readable message) throws java.lang.Exception
- Specified by:
messageReceivedin interfaceIoHandler- Throws:
java.lang.Exception
-
exceptionCaught
public void exceptionCaught(IoSession session, java.lang.Throwable cause) throws java.lang.Exception
- Specified by:
exceptionCaughtin interfaceIoHandler- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-