private static class ProxyConnectionFactory.ProxyV1ConnectionFactory extends AbstractConnectionFactory implements ConnectionFactory.Detecting
| Modifier and Type | Class and Description |
|---|---|
private static class |
ProxyConnectionFactory.ProxyV1ConnectionFactory.ProxyProtocolV1Connection |
AbstractLifeCycle.AbstractLifeCycleListenerConnectionFactory.Detecting.DetectionConnectionFactory.Detecting, ConnectionFactory.UpgradingContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_nextProtocol |
private static byte[] |
SIGNATURE |
| Modifier | Constructor and Description |
|---|---|
private |
ProxyV1ConnectionFactory(java.lang.String nextProtocol) |
| Modifier and Type | Method and Description |
|---|---|
ConnectionFactory.Detecting.Detection |
detect(java.nio.ByteBuffer buffer)
Check the bytes in the given
buffer to figure out if this ConnectionFactory.Detecting instance
can work with them or not. |
Connection |
newConnection(Connector connector,
EndPoint endp)
Creates a new
Connection with the given parameters |
configure, findNextProtocol, findNextProtocol, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toStringaddBean, 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, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProtocol, getProtocolsdumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, namedprivate static final byte[] SIGNATURE
private final java.lang.String _nextProtocol
private ProxyV1ConnectionFactory(java.lang.String nextProtocol)
public ConnectionFactory.Detecting.Detection detect(java.nio.ByteBuffer buffer)
ConnectionFactory.DetectingCheck the bytes in the given buffer to figure out if this ConnectionFactory.Detecting instance
can work with them or not.
The buffer MUST be left untouched by this method: bytes MUST NOT be consumed and MUST NOT be modified.
detect in interface ConnectionFactory.Detectingbuffer - the buffer.ConnectionFactory.Detecting.Detection.RECOGNIZED if this ConnectionFactory.Detecting instance can work with the bytes in the bufferConnectionFactory.Detecting.Detection.NOT_RECOGNIZED if this ConnectionFactory.Detecting instance cannot work with the bytes in the bufferConnectionFactory.Detecting.Detection.NEED_MORE_BYTES if this ConnectionFactory.Detecting instance requires more bytes to make a decisionpublic Connection newConnection(Connector connector, EndPoint endp)
ConnectionFactoryCreates a new Connection with the given parameters
newConnection in interface ConnectionFactoryconnector - The Connector creating this connectionendp - the EndPoint associated with the connectionConnection