public abstract class AbstractHttpServer extends Object implements HttpServer
| 构造器和说明 |
|---|
AbstractHttpServer(org.apache.dubbo.common.URL url,
HttpHandler handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canHandleIdle()
Following methods are extended from RemotingServer, useless for http servers
|
void |
close()
close the channel.
|
void |
close(int timeout)
Graceful close the channel.
|
org.apache.dubbo.remoting.Channel |
getChannel(InetSocketAddress remoteAddress) |
org.apache.dubbo.remoting.ChannelHandler |
getChannelHandler() |
Collection<org.apache.dubbo.remoting.Channel> |
getChannels() |
HttpHandler |
getHttpHandler()
get http handler.
|
InetSocketAddress |
getLocalAddress()
get local address.
|
org.apache.dubbo.common.URL |
getUrl()
get url.
|
boolean |
isBound()
is bound.
|
boolean |
isClosed()
is closed.
|
void |
reset(org.apache.dubbo.common.Parameters parameters) |
void |
reset(org.apache.dubbo.common.URL url) |
void |
send(Object message) |
void |
send(Object message,
boolean sent) |
void |
startClose() |
public AbstractHttpServer(org.apache.dubbo.common.URL url,
HttpHandler handler)
public HttpHandler getHttpHandler()
HttpServergetHttpHandler 在接口中 HttpServerpublic org.apache.dubbo.common.URL getUrl()
HttpServergetUrl 在接口中 org.apache.dubbo.remoting.EndpointgetUrl 在接口中 HttpServerpublic void reset(org.apache.dubbo.common.URL url)
reset 在接口中 org.apache.dubbo.common.Resetablepublic boolean isBound()
HttpServerisBound 在接口中 HttpServerisBound 在接口中 org.apache.dubbo.remoting.RemotingServerpublic InetSocketAddress getLocalAddress()
HttpServergetLocalAddress 在接口中 org.apache.dubbo.remoting.EndpointgetLocalAddress 在接口中 HttpServerpublic void close()
HttpServerclose 在接口中 org.apache.dubbo.remoting.Endpointclose 在接口中 HttpServerpublic void close(int timeout)
HttpServerclose 在接口中 org.apache.dubbo.remoting.Endpointclose 在接口中 HttpServerpublic boolean isClosed()
HttpServerisClosed 在接口中 org.apache.dubbo.remoting.EndpointisClosed 在接口中 HttpServerpublic boolean canHandleIdle()
canHandleIdle 在接口中 org.apache.dubbo.remoting.IdleSensiblepublic Collection<org.apache.dubbo.remoting.Channel> getChannels()
getChannels 在接口中 org.apache.dubbo.remoting.RemotingServerpublic org.apache.dubbo.remoting.Channel getChannel(InetSocketAddress remoteAddress)
getChannel 在接口中 org.apache.dubbo.remoting.RemotingServerpublic void reset(org.apache.dubbo.common.Parameters parameters)
reset 在接口中 org.apache.dubbo.remoting.RemotingServerpublic org.apache.dubbo.remoting.ChannelHandler getChannelHandler()
getChannelHandler 在接口中 org.apache.dubbo.remoting.Endpointpublic void send(Object message) throws org.apache.dubbo.remoting.RemotingException
send 在接口中 org.apache.dubbo.remoting.Endpointorg.apache.dubbo.remoting.RemotingExceptionpublic void send(Object message, boolean sent) throws org.apache.dubbo.remoting.RemotingException
send 在接口中 org.apache.dubbo.remoting.Endpointorg.apache.dubbo.remoting.RemotingExceptionpublic void startClose()
startClose 在接口中 org.apache.dubbo.remoting.EndpointCopyright © 2024 The Apache Software Foundation. All rights reserved.