Author: jfrederic.clere(a)jboss.com
Date: 2012-01-25 06:04:09 -0500 (Wed, 25 Jan 2012)
New Revision: 1936
Modified:
sandbox/webapps/src/TestFilter.java
Log:
Test for case 00583256.
Modified: sandbox/webapps/src/TestFilter.java
===================================================================
--- sandbox/webapps/src/TestFilter.java 2012-01-17 15:08:13 UTC (rev 1935)
+++ sandbox/webapps/src/TestFilter.java 2012-01-25 11:04:09 UTC (rev 1936)
@@ -81,6 +81,18 @@
chain.doFilter(request, response);
return;
}
+ if (path.compareTo("/MyCount") == 0) {
+ chain.doFilter(request, response);
+ HttpServletResponse resp = (HttpServletResponse)response;
+ if (resp.containsHeader("SET-COOKIE")) {
+ String secure = "; Secure";
+ String sessionid = req.getSession().getId();
+ String contextPath = req.getContextPath();
+ System.out.println("TestFilter.doFilter: " + sessionid);
+ resp.setHeader("SET-COOKIE", "JSESSIONID=" + sessionid +
"; Path=" + contextPath + "; HttpOnly" + secure);
+ }
+ return;
+ }
// get action
String action = req.getParameter("do");
Show replies by date