public abstract class NettyServerTemplate extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
charset |
protected ApplicationProperties |
consulProperties |
static String |
DEFAULT_NAME |
protected String |
name |
protected Integer |
port |
protected static String |
PROPERTIES_NAME |
protected List<Class<? extends AbstractResourceHandler>> |
resourceHandlerList |
protected ResourceServerHandler |
resourceServerHandler |
| 限定符和类型 | 方法和说明 |
|---|---|
protected io.netty.channel.ChannelHandler[] |
createHandlers() |
protected abstract ResourceServerHandler |
resourceHandler() |
void |
setResourceHandlers(Class<? extends AbstractResourceHandler>[] resourceHandler) |
void |
start() |
void |
stop() |
protected List<Class<? extends AbstractResourceHandler>> resourceHandlerList
protected Integer port
protected String name
public static String DEFAULT_NAME
protected static String PROPERTIES_NAME
protected String charset
protected ApplicationProperties consulProperties
protected ResourceServerHandler resourceServerHandler
protected io.netty.channel.ChannelHandler[] createHandlers()
throws Exception
Exceptionpublic void stop()
public void setResourceHandlers(Class<? extends AbstractResourceHandler>[] resourceHandler) throws Exception
Exceptionprotected abstract ResourceServerHandler resourceHandler() throws Exception
ExceptionCopyright © 2019. All rights reserved.