接口 HttpServer
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidclose()close the channel.voidclose(int timeout)Graceful close the channel.HttpHandlergetHttpHandler()get http handler.InetSocketAddressgetLocalAddress()get local address.URLgetUrl()get url.booleanisBound()is bound.booleanisClosed()is closed.
-
-
-
方法详细资料
-
getHttpHandler
HttpHandler getHttpHandler()
get http handler.- 返回:
- http handler.
-
getUrl
URL getUrl()
get url.- 返回:
- url
-
getLocalAddress
InetSocketAddress getLocalAddress()
get local address.- 返回:
- local address.
-
close
void close()
close the channel.
-
close
void close(int timeout)
Graceful close the channel.
-
isBound
boolean isBound()
is bound.- 返回:
- bound
-
isClosed
boolean isClosed()
is closed.- 返回:
- closed
-
-