public abstract class AbstractHttpServer extends Object implements HttpServer
| 构造器和说明 |
|---|
AbstractHttpServer(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.
|
Channel |
getChannel(InetSocketAddress remoteAddress)
get channel.
|
ChannelHandler |
getChannelHandler()
get channel handler.
|
Collection<Channel> |
getChannels()
get channels.
|
HttpHandler |
getHttpHandler()
get http handler.
|
InetSocketAddress |
getLocalAddress()
get local address.
|
URL |
getUrl()
get url.
|
boolean |
isBound()
is bound.
|
boolean |
isClosed()
is closed.
|
void |
reset(Parameters parameters) |
void |
reset(URL url)
reset.
|
void |
send(Object message)
send message.
|
void |
send(Object message,
boolean sent)
send message.
|
void |
startClose() |
public AbstractHttpServer(URL url, HttpHandler handler)
public HttpHandler getHttpHandler()
HttpServergetHttpHandler 在接口中 HttpServerpublic URL getUrl()
HttpServergetUrl 在接口中 EndpointgetUrl 在接口中 HttpServerpublic boolean isBound()
HttpServerisBound 在接口中 HttpServerisBound 在接口中 RemotingServerpublic InetSocketAddress getLocalAddress()
HttpServergetLocalAddress 在接口中 EndpointgetLocalAddress 在接口中 HttpServerpublic void close()
HttpServerclose 在接口中 Endpointclose 在接口中 HttpServerpublic void close(int timeout)
HttpServerclose 在接口中 Endpointclose 在接口中 HttpServerpublic boolean isClosed()
HttpServerisClosed 在接口中 EndpointisClosed 在接口中 HttpServerpublic boolean canHandleIdle()
canHandleIdle 在接口中 IdleSensiblepublic Collection<Channel> getChannels()
RemotingServergetChannels 在接口中 RemotingServerpublic Channel getChannel(InetSocketAddress remoteAddress)
RemotingServergetChannel 在接口中 RemotingServerpublic void reset(Parameters parameters)
reset 在接口中 RemotingServerpublic ChannelHandler getChannelHandler()
EndpointgetChannelHandler 在接口中 Endpointpublic void send(Object message) throws RemotingException
Endpointsend 在接口中 EndpointRemotingExceptionpublic void send(Object message, boolean sent) throws RemotingException
Endpointsend 在接口中 Endpointsent - already sent to socket?RemotingExceptionpublic void startClose()
startClose 在接口中 EndpointCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.