Interface JettyHttpServerFactoryLoader
-
public interface JettyHttpServerFactoryLoaderJetty's version-dependentHttpServerFactoryloader that accepts the Jetty's major version into account while creating the factory instance.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static HttpServerFactorycreate(java.lang.String jettyVersion)Create the Jetty's version-dependentHttpServerFactoryinstance using Java'sServiceLoadermechanism or throws an exception if none of the factories could be created.java.util.Optional<HttpServerFactory>getHttpServerFactory(java.lang.String jettyMajorVersion)Jetty's version-dependentHttpServerFactoryloader that accepts the Jetty's major version into account while creating the factory instance.
-
-
-
Method Detail
-
getHttpServerFactory
java.util.Optional<HttpServerFactory> getHttpServerFactory(java.lang.String jettyMajorVersion)
Jetty's version-dependentHttpServerFactoryloader that accepts the Jetty's major version into account while creating the factory instance.- Parameters:
jettyMajorVersion- Jetty's major version- Returns:
- non-empty
Optionalif the loader support this Jetty version,Optional.empty()otherwise.
-
create
static HttpServerFactory create(java.lang.String jettyVersion)
Create the Jetty's version-dependentHttpServerFactoryinstance using Java'sServiceLoadermechanism or throws an exception if none of the factories could be created.- Parameters:
jettyVersion- Jetty version at runtime- Returns:
HttpServerFactoryinstance
-
-