[jboss-cvs] jboss-portal/portlet/src/main/org/jboss/portal/test/portlet/jsr168/ext/session ...

Julien Viet julien at jboss.com
Sun Aug 20 18:53:50 EDT 2006


  User: julien  
  Date: 06/08/20 18:53:50

  Modified:    portlet/src/main/org/jboss/portal/test/portlet/jsr168/ext/session 
                        Tag: JBoss_Portal_Branch_2_4
                        SessionSequenceBuilder.java
  Log:
  backport of JBPORTAL-984 to 2.4.1 : Provice access to HTTP headers in request dispatch to a servlet from a portlet.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.1   +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.3.2.1
  diff -u -b -r1.3 -r1.3.2.1
  --- SessionSequenceBuilder.java	6 Jul 2006 12:50:17 -0000	1.3
  +++ SessionSequenceBuilder.java	20 Aug 2006 22:53:50 -0000	1.3.2.1
  @@ -56,7 +56,7 @@
   
   /**
    * @author <a href="mailto:boleslaw.dawidowicz at jboss.org">Boleslaw Dawidowicz</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.3.2.1 $
    */
   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