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 HttpServer
Exception
public void stop() throws Exception
stop
in interface HttpServer
Exception
public int getPort()
HttpServer
getPort
in interface HttpServer
public void addHttpHandler(HttpHandler httpHandler)
addHttpHandler
in interface HttpServer
httpHandler
- Copyright © 2017 The Apache Software Foundation. All rights reserved.