Class AbstractConnectionFactory

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.AbstractConnectionFactory
All Implemented Interfaces:
ConnectionFactory, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.LifeCycle
Direct Known Subclasses:
DetectorConnectionFactory, HttpConnectionFactory, NegotiatingServerConnectionFactory, SslConnectionFactory

@ManagedObject public abstract class AbstractConnectionFactory extends org.eclipse.jetty.util.component.ContainerLifeCycle implements ConnectionFactory

Provides the common handling for ConnectionFactory implementations.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException

    Nested classes/interfaces inherited from interface org.eclipse.jetty.server.ConnectionFactory

    ConnectionFactory.Configuring, ConnectionFactory.Detecting, ConnectionFactory.Upgrading

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container

    org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable

    org.eclipse.jetty.util.component.Dumpable.DumpableContainer

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

    org.eclipse.jetty.util.component.LifeCycle.Listener
  • Field Summary

    Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    FAILED, STARTED, STARTING, STOPPED, STOPPING

    Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

    KEY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.eclipse.jetty.io.AbstractConnection
    configure(org.eclipse.jetty.io.AbstractConnection connection, Connector connector, org.eclipse.jetty.io.EndPoint endPoint)
     
    protected String
     
    protected static String
    findNextProtocol(Connector connector, String currentProtocol)
     
    getFactories(org.eclipse.jetty.util.ssl.SslContextFactory.Server sslContextFactory, ConnectionFactory... factories)
     
    int
     
     
     
    void
     
     

    Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle

    addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans

    Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.server.ConnectionFactory

    newConnection

    Methods inherited from interface org.eclipse.jetty.util.component.Container

    getCachedBeans, getEventListeners

    Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

    dumpSelf

    Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer

    isDumpable
  • Constructor Details

    • AbstractConnectionFactory

      protected AbstractConnectionFactory(String protocol)
    • AbstractConnectionFactory

      protected AbstractConnectionFactory(String... protocols)
  • Method Details

    • getProtocol

      @ManagedAttribute(value="The protocol name", readonly=true) public String getProtocol()
      Specified by:
      getProtocol in interface ConnectionFactory
      Returns:
      A string representing the primary protocol name.
    • getProtocols

      public List<String> getProtocols()
      Specified by:
      getProtocols in interface ConnectionFactory
      Returns:
      A list of alternative protocol names/versions including the primary protocol.
    • getInputBufferSize

      @ManagedAttribute("The buffer size used to read from the network") public int getInputBufferSize()
    • setInputBufferSize

      public void setInputBufferSize(int size)
    • findNextProtocol

      protected String findNextProtocol(Connector connector)
    • findNextProtocol

      protected static String findNextProtocol(Connector connector, String currentProtocol)
    • configure

      protected org.eclipse.jetty.io.AbstractConnection configure(org.eclipse.jetty.io.AbstractConnection connection, Connector connector, org.eclipse.jetty.io.EndPoint endPoint)
    • toString

      public String toString()
      Overrides:
      toString in class org.eclipse.jetty.util.component.AbstractLifeCycle
    • getFactories

      public static ConnectionFactory[] getFactories(org.eclipse.jetty.util.ssl.SslContextFactory.Server sslContextFactory, ConnectionFactory... factories)