Class ClientConnectionFactory.Info

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.io.ClientConnectionFactory.Info
All Implemented Interfaces:
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
Enclosing interface:
ClientConnectionFactory

public abstract static class ClientConnectionFactory.Info extends org.eclipse.jetty.util.component.ContainerLifeCycle

A holder for a list of protocol strings identifiers (for example ["h2", "h2-17", "h2-16"]) and a ClientConnectionFactory that creates connections that speak an application protocol such as HTTP.

  • 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.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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    abstract List<String>
    getProtocols(boolean secure)
     
    boolean
    matches(List<String> candidates, boolean secure)
    Tests whether one of the protocol identifiers of this class is also present in the given candidates list.
    abstract Transport
     
    void
    upgrade(EndPoint endPoint, Map<String,Object> context)
    Upgrades the given EndPoint to the protocol represented by this class.

    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, installBean, installBean, 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, toString

    Methods inherited from class java.lang.Object

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

    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

  • Method Details

    • getProtocols

      public abstract List<String> getProtocols(boolean secure)
      Parameters:
      secure - true for the secure protocol identifiers, false for the clear-text protocol identifiers
      Returns:
      a list of protocol string identifiers
    • getClientConnectionFactory

      public ClientConnectionFactory getClientConnectionFactory()
      Returns:
      the ClientConnectionFactory that speaks the protocol
    • newTransport

      public abstract Transport newTransport()
      Returns:
      the default Transport used by the protocol
    • matches

      public boolean matches(List<String> candidates, boolean secure)

      Tests whether one of the protocol identifiers of this class is also present in the given candidates list.

      Parameters:
      candidates - the candidates to match against
      secure - whether the protocol should be a secure one
      Returns:
      whether one of the protocols of this class is present in the candidates
    • upgrade

      public void upgrade(EndPoint endPoint, Map<String,Object> context)

      Upgrades the given EndPoint to the protocol represented by this class.

      Parameters:
      endPoint - the EndPoint to upgrade
      context - the context information to perform the upgrade