public class NettyHttpServer extends Object implements cloud.piranha.api.HttpServer
| Constructor and Description |
|---|
NettyHttpServer()
Constructor.
|
NettyHttpServer(int serverPort)
Constructor.
|
NettyHttpServer(int serverPort,
cloud.piranha.api.HttpServerProcessor httpServerProcessor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning()
Is the server running?
|
void |
start()
Start the server.
|
void |
stop()
Stops the server.
|
public NettyHttpServer()
public NettyHttpServer(int serverPort)
serverPort - the server port.public NettyHttpServer(int serverPort,
cloud.piranha.api.HttpServerProcessor httpServerProcessor)
serverPort - the server port.httpServerProcessor - the HTTP server processor.public boolean isRunning()
isRunning in interface cloud.piranha.api.HttpServerpublic void start()
start in interface cloud.piranha.api.HttpServerpublic void stop()
stop in interface cloud.piranha.api.HttpServerCopyright © 2020. All rights reserved.