Package org.apache.felix.http.jetty
Interface ConnectorFactory
-
@ConsumerType @Deprecated(since="2021-05-27") public interface ConnectorFactory
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.TheConnectorFactoryis a service interface which allows extensions to inject custom JettyConnectorinstances to add to the Jetty server. Example connectors would be a SPDY connector or an SSL capable connector with a customSslContextFactory.ConnectorFactoryservices are responsible for creating theConnectorinstances and providing base configuration. Global configuration such as TCP/IP timeouts or buffer sizes are handled by the Jetty server launcher. Likewise the life cycle of the connectors is managed by the Jetty server and its launcher.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ConnectorcreateConnector(Server server)Deprecated.Creates new JettyConnectorinstances.
-
-
-
Method Detail
-
createConnector
Connector createConnector(Server server)
Deprecated.Creates new JettyConnectorinstances.The instances must be configured. The Jetty server will additionally configure global configuration such as TCP/IP timeouts and buffer settings.
Connectors returned from this method are not started yet. Callers must add them to the Jetty server and start them.
If the
ConnectorFactoryservice is stopped any connectors still active in Jetty servers must be stopped and removed from these Jetty servers.- Parameters:
server- The Jetty server object- Returns:
- A configured Jetty
Connectorinstance.
-
-