public class GrizzlyHttpServer extends Object implements org.mule.runtime.http.api.server.HttpServer, Supplier<ExecutorService>
HttpServer.| 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,
org.mule.runtime.http.api.HttpConstants.Protocol protocol) |
| 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 |
dispose() |
ExecutorService |
get() |
org.mule.runtime.http.api.HttpConstants.Protocol |
getProtocol() |
org.mule.runtime.http.api.server.ServerAddress |
getServerAddress() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
start() |
void |
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,
org.mule.runtime.http.api.HttpConstants.Protocol protocol)
public void start()
throws IOException
start in interface org.mule.runtime.http.api.server.HttpServerIOExceptionpublic void 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>Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.