- 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 class
ProxyConnectionFactory.ProxyEndPoint
static class
ProxyConnectionFactory.ProxyProtocolV1Connection
class
ProxyConnectionFactory.ProxyProtocolV1orV2Connection
class
ProxyConnectionFactory.ProxyProtocolV2Connection
-
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.Upgrading
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TLS_VERSION
-
Constructor Summary
Constructors Constructor Description ProxyConnectionFactory()
Proxy Connection Factory that uses the next ConnectionFactory on the connector as the next protocolProxyConnectionFactory(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 newConnection
with the given parametersvoid
setMaxProxyHeader(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, 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
-
-
-
-
Field Detail
-
TLS_VERSION
public static final java.lang.String TLS_VERSION
- See Also:
- Constant Field Values
-
-
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
- TheConnector
creating this connectionendp
- theEndPoint
associated with the connection- Returns:
- a new
Connection
-
-