public final class HttpServer extends Object implements ProtocolHandler
| Constructor and Description |
|---|
HttpServer(Server server) |
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Method to start HTTP server.
|
void |
stop()
Method to stop HTTP server
|
public HttpServer(Server server)
public void start()
start in interface ProtocolHandlerprovider - required; ApiProvider that will process all incoming
requestsIllegalArgumentException - if provider is nullpublic void stop()
stop in interface ProtocolHandlerCopyright © 2023. All rights reserved.