public class ProxyConnectionFactory extends AbstractConnectionFactory
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
Modifier and Type | Class and Description |
---|---|
static class |
ProxyConnectionFactory.ProxyEndPoint |
static class |
ProxyConnectionFactory.ProxyProtocolV1Connection |
class |
ProxyConnectionFactory.ProxyProtocolV1orV2Connection |
class |
ProxyConnectionFactory.ProxyProtocolV2Connection |
AbstractLifeCycle.AbstractLifeCycleListener
ConnectionFactory.Upgrading
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
static String |
TLS_VERSION |
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING
Constructor and Description |
---|
ProxyConnectionFactory()
Proxy Connection Factory that uses the next ConnectionFactory
on the connector as the next protocol
|
ProxyConnectionFactory(String nextProtocol) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxProxyHeader() |
Connection |
newConnection(Connector connector,
EndPoint endp)
Creates a new
Connection with the given parameters |
void |
setMaxProxyHeader(int maxProxyHeader) |
configure, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toString
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public static final String TLS_VERSION
public ProxyConnectionFactory()
public ProxyConnectionFactory(String nextProtocol)
public int getMaxProxyHeader()
public void setMaxProxyHeader(int maxProxyHeader)
public Connection newConnection(Connector connector, EndPoint endp)
ConnectionFactory
Creates a new Connection
with the given parameters
connector
- The Connector
creating this connectionendp
- the EndPoint
associated with the connectionConnection
Copyright © 1995–2017 Webtide. All rights reserved.