class NettyAdminServerFactory implements AdminServerFactory {

    @Override
    public AdminServer createServer(URL url, AdminHandler adminHandler) {<FILL_FUNCTION_BODY>}
}

        if (adminHandler == null) {
            throw new MotanFrameworkException("AdminHandler can not be null");
        }
        String protocol = url.getProtocol();
        if ("http".equals(protocol)) {
            return new AdminHttpServer(url, adminHandler);
        } else if ("motan2".equals(protocol)) {
            return new AdminRpcServer(url, adminHandler);
        }
        throw new MotanFrameworkException("unsupported admin server protocol: " + protocol);
    
<no_super_class>