Package com.alibaba.dubbo.governance.web.common.pulltool

Examples of com.alibaba.dubbo.governance.web.common.pulltool.RootContextPath


    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);
View Full Code Here


        }
        for (Consumer c : cList) {
            applications.add(c.getApplication());
            services.add(c.getService());
        }
        context.put("rootContextPath", new RootContextPath(request.getContextPath()));
        context.put("services", services.size());
        context.put("providers", pList.size());
        context.put("consumers", cList.size());
        context.put("applications", applications.size());
    }
View Full Code Here

public class Error_other {
 
  public void execute(Map<String, Object> context) throws Throwable {
    String contextPath = (String) context.get("request.contextPath");
        context.put("rootContextPath", new RootContextPath(contextPath));
  }
View Full Code Here

public class Error_404 {
 
  public void execute(Map<String, Object> context) throws Throwable {
    String contextPath = (String) context.get("request.contextPath");
        context.put("rootContextPath", new RootContextPath(contextPath));
  }
View Full Code Here

        context.put("currentRegistry", currentRegistry);
       
        String httpMethod = (String) context.get("request.method");
        String method = (String) context.get("_method");
        String contextPath = (String) context.get("request.contextPath");
        context.put("rootContextPath", new RootContextPath(contextPath));
       
        // 分析Method
        if (method == null || method.length() == 0) {
            String id = (String) context.get("id");
            if(id == null || id.length() == 0) {
View Full Code Here

TOP

Related Classes of com.alibaba.dubbo.governance.web.common.pulltool.RootContextPath

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.