类 AbstractHttpServer
- java.lang.Object
-
- com.alibaba.dubbo.remoting.http.support.AbstractHttpServer
-
- 所有已实现的接口:
Resetable,HttpServer
- 直接已知子类:
JettyHttpServer,ServletHttpServer,TomcatHttpServer
public abstract class AbstractHttpServer extends Object implements HttpServer
AbstractHttpServer
-
-
构造器概要
构造器 构造器 说明 AbstractHttpServer(URL url, HttpHandler handler)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.voidreset(URL url)reset.
-
-
-
构造器详细资料
-
AbstractHttpServer
public AbstractHttpServer(URL url, HttpHandler handler)
-
-
方法详细资料
-
getHttpHandler
public HttpHandler getHttpHandler()
从接口复制的说明:HttpServerget http handler.- 指定者:
getHttpHandler在接口中HttpServer- 返回:
- http handler.
-
getUrl
public URL getUrl()
从接口复制的说明:HttpServerget url.- 指定者:
getUrl在接口中HttpServer- 返回:
- url
-
isBound
public boolean isBound()
从接口复制的说明:HttpServeris bound.- 指定者:
isBound在接口中HttpServer- 返回:
- bound
-
getLocalAddress
public InetSocketAddress getLocalAddress()
从接口复制的说明:HttpServerget local address.- 指定者:
getLocalAddress在接口中HttpServer- 返回:
- local address.
-
close
public void close()
从接口复制的说明:HttpServerclose the channel.- 指定者:
close在接口中HttpServer
-
close
public void close(int timeout)
从接口复制的说明:HttpServerGraceful close the channel.- 指定者:
close在接口中HttpServer
-
isClosed
public boolean isClosed()
从接口复制的说明:HttpServeris closed.- 指定者:
isClosed在接口中HttpServer- 返回:
- closed
-
-