Package org.apache.sshd.server.x11
Class DefaultX11ForwardSupport
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,Closeable,IoHandler,X11ForwardSupport
public class DefaultX11ForwardSupport extends AbstractInnerCloseable implements X11ForwardSupport
- Author:
- Apache MINA SSHD Project
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
AbstractCloseable.State
-
-
Field Summary
-
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()StringcreateDisplay(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen)voidexceptionCaught(IoSession session, Throwable cause)protected CloseablegetInnerCloseable()voidmessageReceived(IoSession session, Readable message)voidsessionClosed(IoSession session)voidsessionCreated(IoSession session)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
-
-
-
-
Constructor Detail
-
DefaultX11ForwardSupport
public DefaultX11ForwardSupport(ConnectionService service)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getInnerCloseable
protected Closeable getInnerCloseable()
- Specified by:
getInnerCloseablein classAbstractInnerCloseable
-
createDisplay
public String createDisplay(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen) throws IOException
- Specified by:
createDisplayin interfaceX11ForwardSupport- Throws:
IOException
-
sessionCreated
public void sessionCreated(IoSession session) throws Exception
- Specified by:
sessionCreatedin interfaceIoHandler- Throws:
Exception
-
sessionClosed
public void sessionClosed(IoSession session) throws Exception
- Specified by:
sessionClosedin interfaceIoHandler- Throws:
Exception
-
messageReceived
public void messageReceived(IoSession session, Readable message) throws Exception
- Specified by:
messageReceivedin interfaceIoHandler- Throws:
Exception
-
exceptionCaught
public void exceptionCaught(IoSession session, Throwable cause) throws Exception
- Specified by:
exceptionCaughtin interfaceIoHandler- Throws:
Exception
-
-