Author: craigmcc
Date: Sat Feb 4 19:13:02 2006
New Revision: 374967
URL: http://svn.apache.org/viewcvs?rev=374967&view=rev
Log:
Add convenience accessors for maps of request headers and request parameters
included in the current request.
PR: Bugzilla #38510.
Submitted by: Matthias Wessendorf <mailings AT matthias-wessendorf.de>
Modified:
struts/shale/trunk/core-library/src/java/org/apache/shale/view/AbstractFacesBean.java
Modified:
struts/shale/trunk/core-library/src/java/org/apache/shale/view/AbstractFacesBean.java
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/core-library/src/java/org/apache/shale/view/AbstractFacesBean.java?rev=374967&r1=374966&r2=374967&view=diff
==============================================================================
---
struts/shale/trunk/core-library/src/java/org/apache/shale/view/AbstractFacesBean.java
(original)
+++
struts/shale/trunk/core-library/src/java/org/apache/shale/view/AbstractFacesBean.java
Sat Feb 4 19:13:02 2006
@@ -105,12 +105,36 @@
/**
+ * <p>Return a <code>Map</code> of the request headers included in this
+ * request. If there is more than one header for a particular header
+ * name, only the first value is included in this map.</p>
+ */
+ protected Map getRequestHeaderMap() {
+
+ return getExternalContext().getRequestHeaderMap();
+
+ }
+
+
+ /**
* <p>Return a <code>Map</code> of the request scope attributes
* for this request.</p>
*/
protected Map getRequestMap() {
return getExternalContext().getRequestMap();
+
+ }
+
+
+ /**
+ * <p>Return a <code>Map</code> of the request parameters included in this
+ * request. If there is more than one value for a particular parameter
+ * name, only the first value is included in this map.</p>
+ */
+ protected Map getRequestParameterMap() {
+
+ return getExternalContext().getRequestParameterMap();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]