public abstract class AbstractHttpServer extends Object implements HttpServer
| Constructor and Description |
|---|
AbstractHttpServer(URL url,
HttpHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close the channel.
|
void |
close(int timeout)
Graceful close the channel.
|
HttpHandler |
getHttpHandler()
get http handler.
|
InetSocketAddress |
getLocalAddress()
get local address.
|
URL |
getUrl()
get url.
|
boolean |
isBound()
is bound.
|
boolean |
isClosed()
is closed.
|
void |
reset(URL url)
reset.
|
public AbstractHttpServer(URL url, HttpHandler handler)
public HttpHandler getHttpHandler()
HttpServergetHttpHandler in interface HttpServerpublic URL getUrl()
HttpServergetUrl in interface HttpServerpublic boolean isBound()
HttpServerisBound in interface HttpServerpublic InetSocketAddress getLocalAddress()
HttpServergetLocalAddress in interface HttpServerpublic void close()
HttpServerclose in interface HttpServerpublic void close(int timeout)
HttpServerclose in interface HttpServerpublic boolean isClosed()
HttpServerisClosed in interface HttpServerCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.