类 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)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
-
-
-
构造器详细资料
-
AbstractHttpServer
public AbstractHttpServer(URL url, HttpHandler handler)
-
-
方法详细资料
-
getHttpHandler
public HttpHandler getHttpHandler()
从接口复制的说明:HttpServer
get http handler.- 指定者:
getHttpHandler
在接口中HttpServer
- 返回:
- http handler.
-
getUrl
public URL getUrl()
从接口复制的说明:HttpServer
get url.- 指定者:
getUrl
在接口中HttpServer
- 返回:
- url
-
isBound
public boolean isBound()
从接口复制的说明:HttpServer
is bound.- 指定者:
isBound
在接口中HttpServer
- 返回:
- bound
-
getLocalAddress
public InetSocketAddress getLocalAddress()
从接口复制的说明:HttpServer
get local address.- 指定者:
getLocalAddress
在接口中HttpServer
- 返回:
- local address.
-
close
public void close()
从接口复制的说明:HttpServer
close the channel.- 指定者:
close
在接口中HttpServer
-
close
public void close(int timeout)
从接口复制的说明:HttpServer
Graceful close the channel.- 指定者:
close
在接口中HttpServer
-
isClosed
public boolean isClosed()
从接口复制的说明:HttpServer
is closed.- 指定者:
isClosed
在接口中HttpServer
- 返回:
- closed
-
-