Class ProxyConnectionFactory.ProxyV2ConnectionFactory
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.ProxyV2ConnectionFactory
- All Implemented Interfaces:
ConnectionFactory, ConnectionFactory.Detecting, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle
- Enclosing class:
ProxyConnectionFactory
private static class ProxyConnectionFactory.ProxyV2ConnectionFactory
extends AbstractConnectionFactory
implements ConnectionFactory.Detecting
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enumprivate classprivate static enumNested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface ConnectionFactory
ConnectionFactory.Detecting, ConnectionFactory.UpgradingNested classes/interfaces inherited from interface ConnectionFactory.Detecting
ConnectionFactory.Detecting.DetectionNested classes/interfaces inherited from interface Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetect(ByteBuffer buffer) Check the bytes in the givenbufferto figure out if thisConnectionFactory.Detectinginstance can work with them or not.intnewConnection(Connector connector, EndPoint endp) Creates a newConnectionwith the given parametersvoidsetMaxProxyHeader(int maxProxyHeader) Methods inherited from class AbstractConnectionFactory
configure, findNextProtocol, findNextProtocol, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toStringMethods inherited from class ContainerLifeCycle
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, updateBeansMethods inherited from class AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ConnectionFactory
getProtocol, getProtocolsMethods inherited from interface Dumpable.DumpableContainer
isDumpable
-
Field Details
-
SIGNATURE
private static final byte[] SIGNATURE -
_nextProtocol
-
_maxProxyHeader
private int _maxProxyHeader
-
-
Constructor Details
-
ProxyV2ConnectionFactory
-
-
Method Details
-
detect
Description copied from interface:ConnectionFactory.DetectingCheck the bytes in the given
bufferto figure out if thisConnectionFactory.Detectinginstance can work with them or not.The
bufferMUST be left untouched by this method: bytes MUST NOT be consumed and MUST NOT be modified.- Specified by:
detectin interfaceConnectionFactory.Detecting- Parameters:
buffer- the buffer.- Returns:
- One of:
ConnectionFactory.Detecting.Detection.RECOGNIZEDif thisConnectionFactory.Detectinginstance can work with the bytes in the bufferConnectionFactory.Detecting.Detection.NOT_RECOGNIZEDif thisConnectionFactory.Detectinginstance cannot work with the bytes in the bufferConnectionFactory.Detecting.Detection.NEED_MORE_BYTESif thisConnectionFactory.Detectinginstance requires more bytes to make a decision
-
getMaxProxyHeader
public int getMaxProxyHeader() -
setMaxProxyHeader
public void setMaxProxyHeader(int maxProxyHeader) -
newConnection
Description copied from interface:ConnectionFactoryCreates a new
Connectionwith the given parameters- Specified by:
newConnectionin interfaceConnectionFactory- Parameters:
connector- TheConnectorcreating this connectionendp- theEndPointassociated with the connection- Returns:
- a new
Connection
-