public final class NoOpHttpServerImpl extends Object implements HttpServer
| Modifier and Type | Method and Description |
|---|---|
void |
addHttpHandler(HttpHandler httpHandler)
Add a httpHandler to the server.
|
int |
getPort()
get port number of the server.
|
void |
start()
start the server.
|
void |
stop()
stop the server.
|
public void start() throws Exception
HttpServerstart in interface HttpServerExceptionpublic void stop() throws Exception
HttpServerstop in interface HttpServerExceptionpublic int getPort()
HttpServergetPort in interface HttpServerpublic void addHttpHandler(HttpHandler httpHandler)
HttpServeraddHttpHandler in interface HttpServerCopyright © 2017 The Apache Software Foundation. All rights reserved.