Class 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.LifeCycle
    Enclosing interface:
    ClientConnectionFactory

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

    A holder for a list of protocol strings identifying a network protocol (for example ["h2", "h2-17", "h2-16"]) and a ClientConnectionFactory that creates connections that speak that network protocol.

    • 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.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
      Info​(java.util.List<java.lang.String> protocols, ClientConnectionFactory factory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ClientConnectionFactory getClientConnectionFactory()  
      java.util.List<java.lang.String> getProtocols()  
      boolean matches​(java.util.List<java.lang.String> candidates)
      Tests whether one of the protocols of this class is also present in the given candidates list.
      java.lang.String toString()  
      void upgrade​(EndPoint endPoint, java.util.Map<java.lang.String,​java.lang.Object> context)  
      • 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
      • 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.util.component.Container

        getCachedBeans, getEventListeners
      • Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

        dumpSelf
    • Method Detail

      • getProtocols

        public java.util.List<java.lang.String> getProtocols()
      • matches

        public boolean matches​(java.util.List<java.lang.String> candidates)
        Tests whether one of the protocols of this class is also present in the given candidates list.
        Parameters:
        candidates - the candidates to match against
        Returns:
        whether one of the protocols of this class is present in the candidates
      • upgrade

        public void upgrade​(EndPoint endPoint,
                            java.util.Map<java.lang.String,​java.lang.Object> context)
      • toString

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