当前位置: 首页>>代码示例>>Java>>正文


Java RootContextPath类代码示例

本文整理汇总了Java中com.alibaba.dubbo.governance.web.common.pulltool.RootContextPath的典型用法代码示例。如果您正苦于以下问题:Java RootContextPath类的具体用法?Java RootContextPath怎么用?Java RootContextPath使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RootContextPath类属于com.alibaba.dubbo.governance.web.common.pulltool包,在下文中一共展示了RootContextPath类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: execute

import com.alibaba.dubbo.governance.web.common.pulltool.RootContextPath; //导入依赖的package包/类
public void execute(HttpSession session, Context context, CookieParser parser) {
    
    User user = (User) session.getAttribute(WebConstants.CURRENT_USER_KEY);
    if (user != null) context.put("operator", user.getUsername());
    
    RootContextPath rootContextPath = new RootContextPath(request.getContextPath());
    context.put("rootContextPath", rootContextPath);
    if (! context.containsKey("bucLogoutAddress")) {
    	context.put("bucLogoutAddress", rootContextPath.getURI("logout"));
    }
    if (! context.containsKey("helpUrl")) {
    	context.put("helpUrl", "http://code.alibabatech.com/wiki/display/dubbo");
    }
    context.put(WebConstants.CURRENT_USER_KEY, user);
    context.put("language", parser.getString("locale"));
    context.put("registryServerSync", registryServerSync);
}
 
开发者ID:dachengxi,项目名称:EatDubbo,代码行数:18,代码来源:Menu.java

示例2: execute

import com.alibaba.dubbo.governance.web.common.pulltool.RootContextPath; //导入依赖的package包/类
public void execute(HttpSession session, Context context, CookieParser parser) {
    
    User user = (User) session.getAttribute(WebConstants.CURRENT_USER_KEY);
    if (user != null) context.put("operator", user.getUsername());
    
    RootContextPath rootContextPath = new RootContextPath(request.getContextPath());
    context.put("rootContextPath", rootContextPath);
    if (! context.containsKey("bucLogoutAddress")) {
    	context.put("bucLogoutAddress", rootContextPath.getURI("logout"));
    }
    if (! context.containsKey("helpUrl")) {
    	context.put("helpUrl", "https://github.com/dangdangdotcom/dubbox/wiki");
    }
    context.put(WebConstants.CURRENT_USER_KEY, user);
    context.put("language", parser.getString("locale"));
    context.put("registryServerSync", registryServerSync);
}
 
开发者ID:zhuxiaolei,项目名称:dubbo2,代码行数:18,代码来源:Menu.java

示例3: execute

import com.alibaba.dubbo.governance.web.common.pulltool.RootContextPath; //导入依赖的package包/类
public void execute(HttpSession session, Context context, CookieParser parser) {

        User user = (User) session.getAttribute(WebConstants.CURRENT_USER_KEY);
        if (user != null) context.put("operator", user.getUsername());

        RootContextPath rootContextPath = new RootContextPath(request.getContextPath());
        context.put("rootContextPath", rootContextPath);
        if (!context.containsKey("bucLogoutAddress")) {
            context.put("bucLogoutAddress", rootContextPath.getURI("logout"));
        }
        if (!context.containsKey("helpUrl")) {
            context.put("helpUrl", "http://code.alibabatech.com/wiki/display/dubbo");
        }
        context.put(WebConstants.CURRENT_USER_KEY, user);
        context.put("language", parser.getString("locale"));
        context.put("registryServerSync", registryServerSync);
    }
 
开发者ID:l1325169021,项目名称:github-test,代码行数:18,代码来源:Menu.java

示例4: execute

import com.alibaba.dubbo.governance.web.common.pulltool.RootContextPath; //导入依赖的package包/类
public void execute(Map<String, Object> context) throws Throwable {
	String contextPath = (String) context.get("request.contextPath");
       context.put("rootContextPath", new RootContextPath(contextPath));
}
 
开发者ID:dachengxi,项目名称:EatDubbo,代码行数:5,代码来源:Error_other.java

示例5: execute

import com.alibaba.dubbo.governance.web.common.pulltool.RootContextPath; //导入依赖的package包/类
public void execute(Map<String, Object> context) throws Throwable {
    String contextPath = (String) context.get("request.contextPath");
    context.put("rootContextPath", new RootContextPath(contextPath));
}
 
开发者ID:l1325169021,项目名称:github-test,代码行数:5,代码来源:Error_other.java


注:本文中的com.alibaba.dubbo.governance.web.common.pulltool.RootContextPath类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。