public final class HttpServerImpl extends Object implements HttpServer
| Modifier and Type | Method and Description |
|---|---|
void |
addHttpHandler(HttpHandler httpHandler)
Add a HttpHandler to Jetty Handler.
|
int |
getPort()
get port number of the server.
|
void |
start()
It will be called from RuntimeStartHandler.
|
void |
stop()
stop Jetty Server.
|
public void start() throws Exception
start in interface HttpServerExceptionpublic void stop() throws Exception
stop in interface HttpServerExceptionpublic int getPort()
HttpServergetPort in interface HttpServerpublic void addHttpHandler(HttpHandler httpHandler)
addHttpHandler in interface HttpServerhttpHandler - Copyright © 2017 The Apache Software Foundation. All rights reserved.