public interface ContextHttpServerFactory
HttpServer that partitions them considering a given creation context in which they can be later
shared.| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.http.api.server.HttpServer |
create(org.mule.runtime.http.api.server.HttpServerConfiguration configuration,
String context)
Creates a new
HttpServer. |
org.mule.runtime.http.api.server.HttpServer |
lookup(ServerIdentifier identifier)
Allows to retrieve a previously created
HttpServer. |
org.mule.runtime.http.api.server.HttpServer create(org.mule.runtime.http.api.server.HttpServerConfiguration configuration,
String context)
throws org.mule.runtime.http.api.server.ServerCreationException
HttpServer.configuration - a HttpServerConfiguration specifying the desired server.context - the context under which this server will be createdHttpServer based on the configuration.org.mule.runtime.http.api.server.ServerCreationException - if the server cannot be created based on the configuration.org.mule.runtime.http.api.server.HttpServer lookup(ServerIdentifier identifier) throws org.mule.runtime.http.api.server.ServerNotFoundException
HttpServer. This will only be possible if used from the same context.identifier - the identifier of the serverOptional with the server or an empty one, if none was found.org.mule.runtime.http.api.server.ServerNotFoundException - when the desired server was not foundCopyright © 2003–2018 MuleSoft, Inc.. All rights reserved.