Interface JettyHttpServerFactoryLoader


  • public interface JettyHttpServerFactoryLoader
    Jetty's version-dependent HttpServerFactory loader 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-dependent HttpServerFactory loader that accepts the Jetty's major version into account while creating the factory instance.
        Parameters:
        jettyMajorVersion - Jetty's major version
        Returns:
        non-empty Optional if the loader support this Jetty version, Optional.empty() otherwise.
      • create

        static HttpServerFactory create​(java.lang.String jettyVersion)
        Create the Jetty's version-dependent HttpServerFactory instance using Java's ServiceLoader mechanism or throws an exception if none of the factories could be created.
        Parameters:
        jettyVersion - Jetty version at runtime
        Returns:
        HttpServerFactory instance