本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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));
}
示例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));
}