[jboss-cvs] jboss-portal/test/src/main/org/jboss/portal/test/framework/container/client/command ...

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


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

  Modified:    test/src/main/org/jboss/portal/test/framework/container/client/command 
                        Tag: JBoss_Portal_Branch_2_4 DoGetCommand.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.1.1.1.2.1 +23 -1     jboss-portal/test/src/main/org/jboss/portal/test/framework/container/client/command/DoGetCommand.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: DoGetCommand.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-portal/test/src/main/org/jboss/portal/test/framework/container/client/command/DoGetCommand.java,v
  retrieving revision 1.1.1.1
  retrieving revision 1.1.1.1.2.1
  diff -u -b -r1.1.1.1 -r1.1.1.1.2.1
  --- DoGetCommand.java	5 Mar 2006 13:20:09 -0000	1.1.1.1
  +++ DoGetCommand.java	20 Aug 2006 22:53:51 -0000	1.1.1.1.2.1
  @@ -21,28 +21,50 @@
   */
   package org.jboss.portal.test.framework.container.client.command;
   
  +import java.util.Map;
  +import java.util.Collections;
  +
   /**
    * Perform a get.
    *
    * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
  - * @version $Revision: 1.1.1.1 $
  + * @version $Revision: 1.1.1.1.2.1 $
    */
   public class DoGetCommand extends ClientCommand
   {
   
  +   /** . */
      private String url;
   
  +   /** . */
  +   private Map headers;
  +
      public DoGetCommand(String url)
      {
  +      this(url, Collections.EMPTY_MAP);
  +   }
  +
  +   public DoGetCommand(String url, Map headers)
  +   {
         if (url == null)
         {
            throw new IllegalArgumentException();
         }
  +      if (headers == null)
  +      {
  +         throw new IllegalArgumentException();
  +      }
         this.url = url;
  +      this.headers = headers;
      }
   
      public String getURL()
      {
         return url;
      }
  +
  +   public Map getHeaders()
  +   {
  +      return headers;
  +   }
   }
  
  
  



More information about the jboss-cvs-commits mailing list