Class ConnectionProtocolServer

java.lang.Object
com.sshtools.common.ssh.ExecutorOperationSupport<com.sshtools.synergy.ssh.SshContext>
com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
com.sshtools.server.ConnectionProtocolServer
All Implemented Interfaces:
com.sshtools.synergy.ssh.Service

public class ConnectionProtocolServer extends com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
  • Field Summary

    Fields inherited from class com.sshtools.synergy.ssh.ConnectionProtocol

    con, outstandingRequests, SERVICE_NAME, username

    Fields inherited from class com.sshtools.common.ssh.ExecutorOperationSupport

    CALLBACKS, EVENTS, MESSAGES_INCOMING, MESSAGES_OUTGOING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
    createChannel(String channeltype, com.sshtools.synergy.ssh.Connection<SshServerContext> con)
     
     
     
     
    protected boolean
     
    protected void
     
    protected void
     
    protected boolean
    processTCPIPCancel(com.sshtools.common.util.ByteArrayReader bar, com.sshtools.common.util.ByteArrayWriter msg)
     
    protected boolean
    processTCPIPForward(com.sshtools.common.util.ByteArrayReader bar, com.sshtools.common.util.ByteArrayWriter response)
     

    Methods inherited from class com.sshtools.synergy.ssh.ConnectionProtocol

    addGlobalRequestHandler, disconnect, getActiveChannels, getConnection, getIdleLog, getIdleTimeoutSeconds, getLocalAddress, getLocalPort, getMaxChannels, getQueueSize, getRemoteAddress, getSessionIdentifier, getUsername, getUUID, idle, openChannel, processGlobalRequestFailure, processGlobalRequestSuccess, processMessage, sendChannelOpenConfirmation, sendChannelOpenFailure, sendGlobalRequest, start, stop

    Methods inherited from class com.sshtools.common.ssh.ExecutorOperationSupport

    addIncomingTask, addOutgoingTask, addTask, cleanupOperations

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • isClient

      protected boolean isClient()
      Specified by:
      isClient in class com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
    • onStart

      protected void onStart()
      Specified by:
      onStart in class com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
    • getContext

      public SshServerContext getContext()
      Overrides:
      getContext in class com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
    • getTransport

      public TransportProtocolServer getTransport()
      Overrides:
      getTransport in class com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
    • processTCPIPForward

      protected boolean processTCPIPForward(com.sshtools.common.util.ByteArrayReader bar, com.sshtools.common.util.ByteArrayWriter response) throws IOException
      Specified by:
      processTCPIPForward in class com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
      Throws:
      IOException
    • processTCPIPCancel

      protected boolean processTCPIPCancel(com.sshtools.common.util.ByteArrayReader bar, com.sshtools.common.util.ByteArrayWriter msg) throws IOException
      Specified by:
      processTCPIPCancel in class com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
      Throws:
      IOException
    • getName

      public String getName()
    • createChannel

      protected com.sshtools.synergy.ssh.ChannelNG<SshServerContext> createChannel(String channeltype, com.sshtools.synergy.ssh.Connection<SshServerContext> con) throws com.sshtools.common.ssh.UnsupportedChannelException, com.sshtools.common.permissions.PermissionDeniedException, com.sshtools.common.ssh.ChannelOpenException
      Specified by:
      createChannel in class com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>
      Throws:
      com.sshtools.common.ssh.UnsupportedChannelException
      com.sshtools.common.permissions.PermissionDeniedException
      com.sshtools.common.ssh.ChannelOpenException
    • onStop

      protected void onStop()
      Specified by:
      onStop in class com.sshtools.synergy.ssh.ConnectionProtocol<SshServerContext>