Class DefaultX11ForwardSupport

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.closeable.IoBaseCloseable
org.apache.sshd.common.util.closeable.AbstractCloseable
org.apache.sshd.common.util.closeable.AbstractInnerCloseable
org.apache.sshd.server.x11.DefaultX11ForwardSupport
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, org.apache.sshd.common.Closeable, org.apache.sshd.common.io.IoHandler, X11ForwardSupport

public class DefaultX11ForwardSupport extends org.apache.sshd.common.util.closeable.AbstractInnerCloseable implements X11ForwardSupport
Author:
Apache MINA SSHD Project
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable

    org.apache.sshd.common.util.closeable.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 X11ForwardSupport

    ENV_DISPLAY, XAUTH_COMMAND
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    createDisplay(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen)
     
    void
    exceptionCaught(org.apache.sshd.common.io.IoSession session, Throwable cause)
     
    protected org.apache.sshd.common.Closeable
     
    void
    messageReceived(org.apache.sshd.common.io.IoSession session, org.apache.sshd.common.util.Readable message)
     
    void
    sessionClosed(org.apache.sshd.common.io.IoSession session)
     
    void
    sessionCreated(org.apache.sshd.common.io.IoSession session)
     
     

    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 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 Details

    • DefaultX11ForwardSupport

      public DefaultX11ForwardSupport(ConnectionService service)
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Channel
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.sshd.common.Closeable
      Throws:
      IOException
    • getInnerCloseable

      protected org.apache.sshd.common.Closeable getInnerCloseable()
      Specified by:
      getInnerCloseable in class org.apache.sshd.common.util.closeable.AbstractInnerCloseable
    • createDisplay

      public String createDisplay(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen) throws IOException
      Specified by:
      createDisplay in interface X11ForwardSupport
      Throws:
      IOException
    • sessionCreated

      public void sessionCreated(org.apache.sshd.common.io.IoSession session) throws Exception
      Specified by:
      sessionCreated in interface org.apache.sshd.common.io.IoHandler
      Throws:
      Exception
    • sessionClosed

      public void sessionClosed(org.apache.sshd.common.io.IoSession session) throws Exception
      Specified by:
      sessionClosed in interface org.apache.sshd.common.io.IoHandler
      Throws:
      Exception
    • messageReceived

      public void messageReceived(org.apache.sshd.common.io.IoSession session, org.apache.sshd.common.util.Readable message) throws Exception
      Specified by:
      messageReceived in interface org.apache.sshd.common.io.IoHandler
      Throws:
      Exception
    • exceptionCaught

      public void exceptionCaught(org.apache.sshd.common.io.IoSession session, Throwable cause) throws Exception
      Specified by:
      exceptionCaught in interface org.apache.sshd.common.io.IoHandler
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object