public interface HttpServer
| Modifier and Type | Method and Description |
|---|---|
RequestHandlerManager |
addRequestHandler(Collection<String> methods,
String path,
RequestHandler requestHandler) |
RequestHandlerManager |
addRequestHandler(String path,
RequestHandler requestHandler) |
void |
dispose()
Removes all secondary data to get rid of the server.
|
ServerAddress |
getServerAddress() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
start()
Binds the ServerSocket to the network interface and starts listening for requests
|
void |
stop()
Unbinds the ServerSocket to the network interface and stops listening for requests.
|
void start()
throws IOException
IOException - if there was a problem binding to the host and port specifiedvoid stop()
void dispose()
ServerAddress getServerAddress()
boolean isStopping()
boolean isStopped()
RequestHandlerManager addRequestHandler(Collection<String> methods, String path, RequestHandler requestHandler)
RequestHandlerManager addRequestHandler(String path, RequestHandler requestHandler)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.