Package org.eclipse.jetty.server
Interface ConnectionFactory.Detecting
- All Superinterfaces:
ConnectionFactory
- All Known Implementing Classes:
DetectorConnectionFactory
,OptionalSslConnectionFactory
,ProxyConnectionFactory
,SslConnectionFactory
- Enclosing interface:
ConnectionFactory
@Deprecated(since="2021-05-27")
public static interface ConnectionFactory.Detecting
extends ConnectionFactory
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Connections created by this factory MUST implement Connection.UpgradeTo
.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Deprecated.The possible outcomes of thedetect(ByteBuffer)
method.Nested classes/interfaces inherited from interface org.eclipse.jetty.server.ConnectionFactory
ConnectionFactory.Detecting, ConnectionFactory.Upgrading
-
Method Summary
Modifier and TypeMethodDescriptiondetect
(ByteBuffer buffer) Deprecated.Check the bytes in the givenbuffer
to figure out if thisConnectionFactory.Detecting
instance can work with them or not.Methods inherited from interface org.eclipse.jetty.server.ConnectionFactory
getProtocol, getProtocols, newConnection
-
Method Details
-
detect
Deprecated.Check the bytes in the given
buffer
to figure out if thisConnectionFactory.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.- Parameters:
buffer
- the buffer.- Returns:
- One of:
ConnectionFactory.Detecting.Detection.RECOGNIZED
if thisConnectionFactory.Detecting
instance can work with the bytes in the bufferConnectionFactory.Detecting.Detection.NOT_RECOGNIZED
if thisConnectionFactory.Detecting
instance cannot work with the bytes in the bufferConnectionFactory.Detecting.Detection.NEED_MORE_BYTES
if thisConnectionFactory.Detecting
instance requires more bytes to make a decision
-