public abstract class AbstractHttpServer extends Object implements HttpServer
| 构造器和说明 |
|---|
AbstractHttpServer(URL url,
HttpHandler handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 HttpServerpublic URL getUrl()
HttpServergetUrl 在接口中 HttpServerpublic boolean isBound()
HttpServerisBound 在接口中 HttpServerpublic InetSocketAddress getLocalAddress()
HttpServergetLocalAddress 在接口中 HttpServerpublic void close()
HttpServerclose 在接口中 HttpServerpublic void close(int timeout)
HttpServerclose 在接口中 HttpServerpublic boolean isClosed()
HttpServerisClosed 在接口中 HttpServerCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.