Package org.eclipse.jetty.server
Interface ConnectionFactory
-
- All Known Subinterfaces:
ConnectionFactory.Detecting
,ConnectionFactory.Upgrading
- All Known Implementing Classes:
AbstractConnectionFactory
,DetectorConnectionFactory
,HttpConnectionFactory
,NegotiatingServerConnectionFactory
,OptionalSslConnectionFactory
,ProxyConnectionFactory
,SslConnectionFactory
@Deprecated(since="2021-05-27") public interface ConnectionFactory
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A Factory to createConnection
instances forConnector
s.A Connection factory is responsible for instantiating and configuring a
Connection
instance to handle anEndPoint
accepted by aConnector
.A ConnectionFactory has a protocol name that represents the protocol of the Connections created. Example of protocol names include:
- http
- Creates an HTTP connection that can handle multiple versions of HTTP from 0.9 to 1.1
- h2
- Creates an HTTP/2 connection that handles the HTTP/2 protocol
- SSL-XYZ
- Create an SSL connection chained to a connection obtained from a connection factory with a protocol "XYZ".
- SSL-http
- Create an SSL connection chained to an HTTP connection (aka https)
- SSL-ALPN
- Create an SSL connection chained to a ALPN connection, that uses a negotiation with the client to determine the next protocol.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ConnectionFactory.Detecting
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
ConnectionFactory.Upgrading
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getProtocol()
Deprecated.java.util.List<java.lang.String>
getProtocols()
Deprecated.Connection
newConnection(Connector connector, EndPoint endPoint)
Deprecated.Creates a newConnection
with the given parameters
-
-
-
Method Detail
-
getProtocol
java.lang.String getProtocol()
Deprecated.- Returns:
- A string representing the primary protocol name.
-
getProtocols
java.util.List<java.lang.String> getProtocols()
Deprecated.- Returns:
- A list of alternative protocol names/versions including the primary protocol.
-
newConnection
Connection newConnection(Connector connector, EndPoint endPoint)
Deprecated.Creates a new
Connection
with the given parameters- Parameters:
connector
- TheConnector
creating this connectionendPoint
- theEndPoint
associated with the connection- Returns:
- a new
Connection
-
-