public class GrizzlyHttpServer extends Object implements org.mule.runtime.http.api.server.HttpServer, Supplier<ExecutorService>
HttpServer.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
GrizzlyHttpServer(org.mule.runtime.http.api.server.ServerAddress serverAddress,
org.glassfish.grizzly.nio.transport.TCPNIOTransport transport,
HttpListenerRegistry listenerRegistry,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSource,
Runnable schedulerDisposer,
GrizzlyAddressFilter<org.glassfish.grizzly.ssl.SSLFilter> sslFilter,
Supplier<Long> shutdownTimeoutSupplier) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.http.api.server.RequestHandlerManager |
addRequestHandler(Collection<String> methods,
String path,
org.mule.runtime.http.api.server.RequestHandler requestHandler) |
org.mule.runtime.http.api.server.RequestHandlerManager |
addRequestHandler(String path,
org.mule.runtime.http.api.server.RequestHandler requestHandler) |
void |
disableTls() |
void |
dispose() |
void |
enableTls(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory) |
ExecutorService |
get() |
org.mule.runtime.http.api.HttpConstants.Protocol |
getProtocol() |
org.mule.runtime.http.api.server.ServerAddress |
getServerAddress() |
boolean |
isStopped() |
boolean |
isStopping() |
org.mule.runtime.http.api.server.HttpServer |
start() |
org.mule.runtime.http.api.server.HttpServer |
stop() |
public GrizzlyHttpServer(org.mule.runtime.http.api.server.ServerAddress serverAddress,
org.glassfish.grizzly.nio.transport.TCPNIOTransport transport,
HttpListenerRegistry listenerRegistry,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSource,
Runnable schedulerDisposer,
GrizzlyAddressFilter<org.glassfish.grizzly.ssl.SSLFilter> sslFilter,
Supplier<Long> shutdownTimeoutSupplier)
public org.mule.runtime.http.api.server.HttpServer start()
throws IOException
start in interface org.mule.runtime.http.api.server.HttpServerIOExceptionpublic org.mule.runtime.http.api.server.HttpServer stop()
stop in interface org.mule.runtime.http.api.server.HttpServerpublic void dispose()
dispose in interface org.mule.runtime.http.api.server.HttpServerpublic org.mule.runtime.http.api.server.ServerAddress getServerAddress()
getServerAddress in interface org.mule.runtime.http.api.server.HttpServerpublic org.mule.runtime.http.api.HttpConstants.Protocol getProtocol()
getProtocol in interface org.mule.runtime.http.api.server.HttpServerpublic boolean isStopping()
isStopping in interface org.mule.runtime.http.api.server.HttpServerpublic boolean isStopped()
isStopped in interface org.mule.runtime.http.api.server.HttpServerpublic org.mule.runtime.http.api.server.RequestHandlerManager addRequestHandler(Collection<String> methods, String path, org.mule.runtime.http.api.server.RequestHandler requestHandler)
addRequestHandler in interface org.mule.runtime.http.api.server.HttpServerpublic org.mule.runtime.http.api.server.RequestHandlerManager addRequestHandler(String path, org.mule.runtime.http.api.server.RequestHandler requestHandler)
addRequestHandler in interface org.mule.runtime.http.api.server.HttpServerpublic ExecutorService get()
get in interface Supplier<ExecutorService>public void enableTls(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory)
enableTls in interface org.mule.runtime.http.api.server.HttpServerpublic void disableTls()
disableTls in interface org.mule.runtime.http.api.server.HttpServerCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.