[jboss-cvs] jboss-portal/test/src/main/org/jboss/portal/test/framework/container/client/command ...
Julien Viet
julien at jboss.com
Fri Aug 18 14:01:47 EDT 2006
User: julien
Date: 06/08/18 14:01:47
Modified: test/src/main/org/jboss/portal/test/framework/container/client/command
DoGetCommand.java
Log:
fix for JBPORTAL-984 : Provice access to HTTP headers in request dispatch to a servlet from a portlet
Revision Changes Path
1.2 +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
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- DoGetCommand.java 5 Mar 2006 13:20:09 -0000 1.1
+++ DoGetCommand.java 18 Aug 2006 18:01:47 -0000 1.2
@@ -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 $
+ * @version $Revision: 1.2 $
*/
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