Class ProxyConnectionFactory

  • 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.LifeCycle

    public class ProxyConnectionFactory
    extends AbstractConnectionFactory

    ConnectionFactory for the PROXY Protocol.

    This factory can be placed in front of any other connection factory to process the proxy v1 or v2 line before the normal protocol handling

    See Also:
    http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TLS_VERSION  
      • 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
      ProxyConnectionFactory()
      Proxy Connection Factory that uses the next ConnectionFactory on the connector as the next protocol
      ProxyConnectionFactory​(java.lang.String nextProtocol)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMaxProxyHeader()  
      org.eclipse.jetty.io.Connection newConnection​(Connector connector, org.eclipse.jetty.io.EndPoint endp)
      Creates a new Connection with the given parameters
      void setMaxProxyHeader​(int maxProxyHeader)  
      • 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, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
      • Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        getEventListeners, getState, getState, getStopTimeout, 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
    • Constructor Detail

      • ProxyConnectionFactory

        public ProxyConnectionFactory()
        Proxy Connection Factory that uses the next ConnectionFactory on the connector as the next protocol
      • ProxyConnectionFactory

        public ProxyConnectionFactory​(java.lang.String nextProtocol)
    • Method Detail

      • getMaxProxyHeader

        public int getMaxProxyHeader()
      • setMaxProxyHeader

        public void setMaxProxyHeader​(int maxProxyHeader)
      • newConnection

        public org.eclipse.jetty.io.Connection newConnection​(Connector connector,
                                                             org.eclipse.jetty.io.EndPoint endp)
        Description copied from interface: ConnectionFactory

        Creates a new Connection with the given parameters

        Parameters:
        connector - The Connector creating this connection
        endp - the EndPoint associated with the connection
        Returns:
        a new Connection