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