public interface HttpServerFactory
HttpServer.| Modifier and Type | Method and Description |
|---|---|
HttpServer |
create(HttpServerConfiguration configuration)
Creates a new
HttpServer. |
HttpServer |
lookup(String name)
Allows to retrieve a previously created
HttpServer, if used from the same context. |
HttpServer create(HttpServerConfiguration configuration) throws ServerCreationException
HttpServer.configuration - a HttpServerConfiguration specifying the desired server.HttpServer based on the configuration.ServerCreationException - if the server cannot be createdHttpServer lookup(String name) throws ServerNotFoundException
HttpServer, if used from the same context. Keep in mind lifecycle changes to
the retrieved instance won't take effect since only the owner of the server can modify it's status.name - the name the desired HttpServer was given when created (see HttpServerConfiguration.getName())ServerNotFoundException - when the desired server was not foundCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.