public class HttpConnector extends NettyConnector
logger| 构造器和说明 |
|---|
HttpConnector(String protocol,
AppContext appContext,
ReceivedListener receivedListener,
ConnectionAccepter accepter) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connectionTo(InterAddress hostAddress,
net.hasor.utils.future.BasicFuture<RsfChannel> channelFuture)
连接到远程机器
|
protected ProtocolHandlerFactory |
createHandler(String protocol,
AppContext appContext)
创建 ProtocolHandlerFactory 对象。
|
protected HttpHandler |
getHttpHandler() |
void |
shutdownListener()
停止监听器
|
void |
startListener(AppContext appContext)
启动本地监听器
|
acceptIn, getWorkerGroup, receivedDataacceptChannel, configListener, findRsfChannelByHostPort, getBindAddress, getOrConnectionTo, getProtocol, getRsfEnvironment, getSechma, shutdown, toStringpublic HttpConnector(String protocol, AppContext appContext, ReceivedListener receivedListener, ConnectionAccepter accepter) throws ClassNotFoundException
protected HttpHandler getHttpHandler()
public void startListener(AppContext appContext) throws Throwable
NettyConnectorstartListener 在类中 NettyConnectorThrowablepublic void shutdownListener()
NettyConnectorshutdownListener 在类中 NettyConnectorprotected ProtocolHandlerFactory createHandler(String protocol, AppContext appContext) throws ClassNotFoundException
NettyConnectorcreateHandler 在类中 NettyConnectorClassNotFoundExceptionpublic void connectionTo(InterAddress hostAddress, net.hasor.utils.future.BasicFuture<RsfChannel> channelFuture)
NettyConnectorconnectionTo 在类中 NettyConnectorCopyright © 2020–2021. All rights reserved.