com.alibaba.citrus.service.requestcontext.parser.CookieParser Java Examples
The following examples show how to use
com.alibaba.citrus.service.requestcontext.parser.CookieParser.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Menu.java From dubbox with Apache License 2.0 | 6 votes |
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); }
Example #2
Source File: Menu.java From dubbox-hystrix with Apache License 2.0 | 6 votes |
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); }
Example #3
Source File: Menu.java From dubbo3 with Apache License 2.0 | 6 votes |
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); }
Example #4
Source File: Menu.java From dubbox with Apache License 2.0 | 6 votes |
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); }
Example #5
Source File: Menu.java From dubbox with Apache License 2.0 | 6 votes |
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); }