Class NegotiatingServerConnection

java.lang.Object
org.eclipse.jetty.io.AbstractConnection
org.eclipse.jetty.server.NegotiatingServerConnection
All Implemented Interfaces:
Closeable, AutoCloseable, Connection

public abstract class NegotiatingServerConnection extends AbstractConnection
  • Field Details

    • LOG

      private static final Logger LOG
    • connector

      private final Connector connector
    • engine

      private final SSLEngine engine
    • protocols

      private final List<String> protocols
    • defaultProtocol

      private final String defaultProtocol
    • protocol

      private String protocol
  • Constructor Details

  • Method Details

    • getProtocols

      public List<String> getProtocols()
    • getDefaultProtocol

      public String getDefaultProtocol()
    • getConnector

      public Connector getConnector()
    • getSSLEngine

      public SSLEngine getSSLEngine()
    • getProtocol

      public String getProtocol()
    • setProtocol

      protected void setProtocol(String protocol)
    • onOpen

      public void onOpen()
      Description copied from interface: Connection

      Callback method invoked when this connection is opened.

      Creators of the connection implementation are responsible for calling this method.

      Specified by:
      onOpen in interface Connection
      Overrides:
      onOpen in class AbstractConnection
    • onFillable

      public void onFillable()
      Description copied from class: AbstractConnection

      Callback method invoked when the endpoint is ready to be read.

      Specified by:
      onFillable in class AbstractConnection
      See Also:
    • fill

      private int fill()
    • close

      public void close()
      Description copied from interface: Connection

      Performs a logical close of this connection.

      For simple connections, this may just mean to delegate the close to the associated EndPoint but, for example, SSL connections should write the SSL close message before closing the associated EndPoint.

      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Connection
      Overrides:
      close in class AbstractConnection