Class EmbeddedServers


  • public class EmbeddedServers
    extends java.lang.Object
    Holds and uses the factories for creating different Embedded servers.
    • Constructor Detail

      • EmbeddedServers

        public EmbeddedServers()
    • Method Detail

      • initialize

        public static void initialize()
      • create

        public static EmbeddedServer create​(java.lang.Object identifier,
                                            Routes routeMatcher,
                                            ExceptionMapper exceptionMapper,
                                            StaticFilesConfiguration staticFilesConfiguration,
                                            boolean multipleHandlers)
        Creates an embedded server of type corresponding to the provided identifier.
        Parameters:
        identifier - the identifier
        routeMatcher - the route matcher
        staticFilesConfiguration - the static files configuration object
        multipleHandlers - true if other handlers exist
        Returns:
        the created EmbeddedServer object
      • add

        public static void add​(java.lang.Object identifier,
                               EmbeddedServerFactory factory)
        Adds an Embedded server factory for the provided identifier.
        Parameters:
        identifier - the identifier
        factory - the factory