[jboss-cvs] jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/jsr168/ext/session ...
Julien Viet
julien at jboss.com
Fri Aug 18 14:01:47 EDT 2006
User: julien
Date: 06/08/18 14:01:47
Modified: portlet/src/main/org/jboss/portal/test/portlet/jsr168/ext/session
SessionSequenceBuilder.java
Log:
fix for JBPORTAL-984 : Provice access to HTTP headers in request dispatch to a servlet from a portlet
Revision Changes Path
1.4 +3 -5 jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/jsr168/ext/session/SessionSequenceBuilder.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SessionSequenceBuilder.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/jsr168/ext/session/SessionSequenceBuilder.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- SessionSequenceBuilder.java 6 Jul 2006 12:50:17 -0000 1.3
+++ SessionSequenceBuilder.java 18 Aug 2006 18:01:47 -0000 1.4
@@ -56,7 +56,7 @@
/**
* @author <a href="mailto:boleslaw.dawidowicz at jboss.org">Boleslaw Dawidowicz</a>
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class SessionSequenceBuilder extends SequenceRegistryBuilder
{
@@ -97,8 +97,7 @@
PortletSession session = request.getPortletSession();
assertNotNull(session);
session.setAttribute("foo_1", "bar_1");
- InvokeGetResult igr = new InvokeGetResult();
- igr.setURL(response.createActionURL().toString());
+ InvokeGetResult igr = new InvokeGetResult(response.createActionURL().toString());
return igr;
}
});
@@ -144,9 +143,8 @@
{
PortletSession session = request.getPortletSession();
session.setAttribute("key", "value", PortletSession.APPLICATION_SCOPE);
- InvokeGetResult igr = new InvokeGetResult();
String path = request.getContextPath();
- igr.setURL(path + "/universalServletA");
+ InvokeGetResult igr = new InvokeGetResult(path + "/universalServletA");
return igr;
}
});
More information about the jboss-cvs-commits
mailing list