public class GrizzlyHttpServer extends Object implements HttpServer, Supplier<ExecutorService>
HttpServer.| Constructor and Description |
|---|
GrizzlyHttpServer(ServerAddress serverAddress,
org.glassfish.grizzly.nio.transport.TCPNIOTransport transport,
HttpListenerRegistry listenerRegistry,
Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSource,
Runnable schedulerDisposer) |
| Modifier and Type | Method and Description |
|---|---|
RequestHandlerManager |
addRequestHandler(Collection<String> methods,
String path,
RequestHandler requestHandler) |
RequestHandlerManager |
addRequestHandler(String path,
RequestHandler requestHandler) |
void |
dispose() |
ExecutorService |
get() |
ServerAddress |
getServerAddress() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
start() |
void |
stop() |
public GrizzlyHttpServer(ServerAddress serverAddress, org.glassfish.grizzly.nio.transport.TCPNIOTransport transport, HttpListenerRegistry listenerRegistry, Supplier<org.mule.runtime.api.scheduler.Scheduler> schedulerSource, Runnable schedulerDisposer)
public void start()
throws IOException
start in interface HttpServerIOExceptionpublic void stop()
stop in interface HttpServerpublic void dispose()
dispose in interface HttpServerpublic ServerAddress getServerAddress()
getServerAddress in interface HttpServerpublic boolean isStopping()
isStopping in interface HttpServerpublic boolean isStopped()
isStopped in interface HttpServerpublic RequestHandlerManager addRequestHandler(Collection<String> methods, String path, RequestHandler requestHandler)
addRequestHandler in interface HttpServerpublic RequestHandlerManager addRequestHandler(String path, RequestHandler requestHandler)
addRequestHandler in interface HttpServerpublic ExecutorService get()
get in interface Supplier<ExecutorService>Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.