类 AbstractHttpServer
- java.lang.Object
-
- org.apache.dubbo.remoting.http.support.AbstractHttpServer
-
- 所有已实现的接口:
Resetable,Endpoint,HttpServer,IdleSensible,RemotingServer
- 直接已知子类:
JettyHttpServer,ServletHttpServer,TomcatHttpServer
public abstract class AbstractHttpServer extends Object implements HttpServer
AbstractHttpServer
-
-
构造器概要
构造器 构造器 说明 AbstractHttpServer(URL url, HttpHandler handler)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanHandleIdle()Following methods are extended from RemotingServer, useless for http serversvoidclose()close the channel.voidclose(int timeout)Graceful close the channel.ChannelgetChannel(InetSocketAddress remoteAddress)get channel.ChannelHandlergetChannelHandler()get channel handler.Collection<Channel>getChannels()get channels.HttpHandlergetHttpHandler()get http handler.InetSocketAddressgetLocalAddress()get local address.URLgetUrl()get url.booleanisBound()is bound.booleanisClosed()is closed.voidreset(Parameters parameters)voidreset(URL url)reset.voidsend(Object message)send message.voidsend(Object message, boolean sent)send message.voidstartClose()
-
-
-
构造器详细资料
-
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在接口中Endpoint- 指定者:
getUrl在接口中HttpServer- 返回:
- url
-
isBound
public boolean isBound()
从接口复制的说明:HttpServeris bound.- 指定者:
isBound在接口中HttpServer- 指定者:
isBound在接口中RemotingServer- 返回:
- bound
-
getLocalAddress
public InetSocketAddress getLocalAddress()
从接口复制的说明:HttpServerget local address.- 指定者:
getLocalAddress在接口中Endpoint- 指定者:
getLocalAddress在接口中HttpServer- 返回:
- local address.
-
close
public void close()
从接口复制的说明:HttpServerclose the channel.- 指定者:
close在接口中Endpoint- 指定者:
close在接口中HttpServer
-
close
public void close(int timeout)
从接口复制的说明:HttpServerGraceful close the channel.- 指定者:
close在接口中Endpoint- 指定者:
close在接口中HttpServer
-
isClosed
public boolean isClosed()
从接口复制的说明:HttpServeris closed.- 指定者:
isClosed在接口中Endpoint- 指定者:
isClosed在接口中HttpServer- 返回:
- closed
-
canHandleIdle
public boolean canHandleIdle()
Following methods are extended from RemotingServer, useless for http servers- 指定者:
canHandleIdle在接口中IdleSensible- 返回:
- whether has the ability to handle idle connection
-
getChannels
public Collection<Channel> getChannels()
从接口复制的说明:RemotingServerget channels.- 指定者:
getChannels在接口中RemotingServer- 返回:
- channels
-
getChannel
public Channel getChannel(InetSocketAddress remoteAddress)
从接口复制的说明:RemotingServerget channel.- 指定者:
getChannel在接口中RemotingServer- 返回:
- channel
-
reset
public void reset(Parameters parameters)
- 指定者:
reset在接口中RemotingServer
-
getChannelHandler
public ChannelHandler getChannelHandler()
从接口复制的说明:Endpointget channel handler.- 指定者:
getChannelHandler在接口中Endpoint- 返回:
- channel handler
-
send
public void send(Object message) throws RemotingException
从接口复制的说明:Endpointsend message.- 指定者:
send在接口中Endpoint- 抛出:
RemotingException
-
send
public void send(Object message, boolean sent) throws RemotingException
从接口复制的说明:Endpointsend message.- 指定者:
send在接口中Endpointsent- already sent to socket?- 抛出:
RemotingException
-
startClose
public void startClose()
- 指定者:
startClose在接口中Endpoint
-
-