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 void
close()
String
createDisplay(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen)
void
exceptionCaught(IoSession session, Throwable cause)
protected Closeable
getInnerCloseable()
void
messageReceived(IoSession session, Readable message)
void
sessionClosed(IoSession session)
void
sessionCreated(IoSession session)
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
-
-
-
-
Constructor Detail
-
DefaultX11ForwardSupport
public DefaultX11ForwardSupport(ConnectionService service)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getInnerCloseable
protected Closeable getInnerCloseable()
- Specified by:
getInnerCloseable
in classAbstractInnerCloseable
-
createDisplay
public String createDisplay(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen) throws IOException
- Specified by:
createDisplay
in interfaceX11ForwardSupport
- Throws:
IOException
-
sessionCreated
public void sessionCreated(IoSession session) throws Exception
- Specified by:
sessionCreated
in interfaceIoHandler
- Throws:
Exception
-
sessionClosed
public void sessionClosed(IoSession session) throws Exception
- Specified by:
sessionClosed
in interfaceIoHandler
- Throws:
Exception
-
messageReceived
public void messageReceived(IoSession session, Readable message) throws Exception
- Specified by:
messageReceived
in interfaceIoHandler
- Throws:
Exception
-
exceptionCaught
public void exceptionCaught(IoSession session, Throwable cause) throws Exception
- Specified by:
exceptionCaught
in interfaceIoHandler
- Throws:
Exception
-
-