public class HttpListenerConnectionManager extends Object implements ContextHttpServerFactory, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable
HttpServerFactory.| Constructor and Description |
|---|
HttpListenerConnectionManager(org.mule.runtime.api.scheduler.SchedulerService schedulerService,
org.mule.runtime.api.scheduler.SchedulerConfig schedulersConfig) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsServerFor(org.mule.runtime.http.api.server.ServerAddress serverAddress,
ServerIdentifier identifier) |
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 |
createServer(org.mule.runtime.http.api.server.ServerAddress serverAddress,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier,
boolean usePersistentConnections,
int connectionIdleTimeout,
ServerIdentifier identifier) |
org.mule.runtime.http.api.server.HttpServer |
createSslServer(org.mule.runtime.http.api.server.ServerAddress serverAddress,
org.mule.runtime.api.tls.TlsContextFactory tlsContext,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier,
boolean usePersistentConnections,
int connectionIdleTimeout,
ServerIdentifier identifier) |
void |
dispose() |
void |
initialise() |
org.mule.runtime.http.api.server.HttpServer |
lookup(ServerIdentifier identifier)
Allows to retrieve a previously created
HttpServer. |
public HttpListenerConnectionManager(org.mule.runtime.api.scheduler.SchedulerService schedulerService,
org.mule.runtime.api.scheduler.SchedulerConfig schedulersConfig)
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic 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
ContextHttpServerFactoryHttpServer.create in interface ContextHttpServerFactoryconfiguration - 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.public org.mule.runtime.http.api.server.HttpServer lookup(ServerIdentifier identifier) throws org.mule.runtime.http.api.server.ServerNotFoundException
ContextHttpServerFactoryHttpServer. This will only be possible if used from the same context.lookup in interface ContextHttpServerFactoryidentifier - 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 foundpublic org.mule.runtime.http.api.server.HttpServer createServer(org.mule.runtime.http.api.server.ServerAddress serverAddress,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier,
boolean usePersistentConnections,
int connectionIdleTimeout,
ServerIdentifier identifier)
throws org.mule.runtime.http.api.server.ServerCreationException
org.mule.runtime.http.api.server.ServerCreationExceptionpublic boolean containsServerFor(org.mule.runtime.http.api.server.ServerAddress serverAddress,
ServerIdentifier identifier)
public org.mule.runtime.http.api.server.HttpServer createSslServer(org.mule.runtime.http.api.server.ServerAddress serverAddress,
org.mule.runtime.api.tls.TlsContextFactory tlsContext,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSupplier,
boolean usePersistentConnections,
int connectionIdleTimeout,
ServerIdentifier identifier)
throws org.mule.runtime.http.api.server.ServerCreationException
org.mule.runtime.http.api.server.ServerCreationExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.