Package org.eclipse.jetty.server
Class ProxyConnectionFactory
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.server.AbstractConnectionFactory
-
- org.eclipse.jetty.server.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProxyConnectionFactory.ProxyEndPointstatic classProxyConnectionFactory.ProxyProtocolV1ConnectionclassProxyConnectionFactory.ProxyProtocolV1orV2ConnectionclassProxyConnectionFactory.ProxyProtocolV2Connection-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.ConnectionFactory
ConnectionFactory.Upgrading
-
-
Field Summary
Fields Modifier and Type Field Description static StringTLS_VERSION
-
Constructor Summary
Constructors Constructor Description ProxyConnectionFactory()Proxy Connection Factory that uses the next ConnectionFactory on the connector as the next protocolProxyConnectionFactory(String nextProtocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxProxyHeader()org.eclipse.jetty.io.ConnectionnewConnection(Connector connector, org.eclipse.jetty.io.EndPoint endp)Creates a newConnectionwith the given parametersvoidsetMaxProxyHeader(int maxProxyHeader)-
Methods inherited from class org.eclipse.jetty.server.AbstractConnectionFactory
configure, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toString
-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
-
-
-
-
Field Detail
-
TLS_VERSION
public static final String TLS_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProxyConnectionFactory
public ProxyConnectionFactory()
Proxy Connection Factory that uses the next ConnectionFactory on the connector as the next protocol
-
ProxyConnectionFactory
public ProxyConnectionFactory(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:ConnectionFactoryCreates a new
Connectionwith the given parameters- Parameters:
connector- TheConnectorcreating this connectionendp- theEndPointassociated with the connection- Returns:
- a new
Connection
-
-