click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r920177 - /click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java
Date Mon, 08 Mar 2010 02:49:50 GMT
Author: sabob
Date: Mon Mar  8 02:49:50 2010
New Revision: 920177

URL: http://svn.apache.org/viewvc?rev=920177&view=rev
Log:
exposed mock request headers for manipulation

Modified:
    click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java

Modified: click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java?rev=920177&r1=920176&r2=920177&view=diff
==============================================================================
--- click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java (original)
+++ click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java Mon Mar  8 02:49:50
2010
@@ -444,6 +444,15 @@
     }
 
     /**
+     * Return the map of headers for this request.
+     *
+     * @return the map of headers for this request
+     */
+    public Map getHeaders() {
+        return headers;
+    }
+
+    /**
      * Returns an input stream if there has been added some uploaded files. Use
      * {@link #addFile(String, File, String)} to add some uploaded files.
      *



Mime
View raw message