class NettyEndpointFactory extends AbstractEndpointFactory {

    @Override
    protected RestServer innerCreateServer(URL url) {<FILL_FUNCTION_BODY>}

}

        NettyJaxrsServer server = new NettyJaxrsServer();
        server.setMaxRequestSize(url.getIntParameter(URLParamType.maxContentLength.getName(),
                URLParamType.maxContentLength.getIntValue()));

        ResteasyDeployment deployment = new ResteasyDeployment();

        server.setDeployment(deployment);
        server.setExecutorThreadCount(url.getIntParameter(URLParamType.maxWorkerThread.getName(),
                URLParamType.maxWorkerThread.getIntValue()));
        server.setPort(url.getPort());
        server.setRootResourcePath("");
        server.setSecurityDomain(null);

        deployment.setInjectorFactoryClass(RestfulInjectorFactory.class.getName());
        deployment.getProviderClasses().add(RpcExceptionMapper.class.getName());

        return new EmbedRestServer(server);
    
<methods>public non-sealed void <init>() ,public ResteasyWebTarget createClient(com.weibo.api.motan.rpc.URL) ,public com.weibo.api.motan.protocol.restful.RestServer createServer(com.weibo.api.motan.rpc.URL) ,public void safeReleaseResource(com.weibo.api.motan.protocol.restful.RestServer, com.weibo.api.motan.rpc.URL) ,public void safeReleaseResource(ResteasyWebTarget, com.weibo.api.motan.rpc.URL) <variables>protected Map<ResteasyWebTarget,Set<java.lang.String>> client2UrlsShareChannel,protected final Map<java.lang.String,ResteasyWebTarget> ipPort2ClientShareChannel,protected final Map<java.lang.String,com.weibo.api.motan.protocol.restful.RestServer> ipPort2ServerShareChannel,protected Map<com.weibo.api.motan.protocol.restful.RestServer,Set<java.lang.String>> server2UrlsShareChannel