cziegeler 01/07/20 02:04:23
Modified: src/org/apache/cocoon/environment/http HttpRequest.java
Log:
MaybeUpload is now optional
Revision Changes Path
1.5 +2 -24
xml-cocoon2/src/org/apache/cocoon/environment/http/HttpRequest.java
Index: HttpRequest.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/org/apache/cocoon/environment/http/HttpRequest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- HttpRequest.java 2001/07/12 19:23:37 1.4
+++ HttpRequest.java 2001/07/20 09:04:23 1.5
@@ -28,7 +28,7 @@
* to provide request information for HTTP servlets.
*
* @author <a href="mailto:giacomo@apache,org">Giacomo Pati</a>
- * @version CVS $Id: HttpRequest.java,v 1.4 2001/07/12 19:23:37 balld Exp $
+ * @version CVS $Id: HttpRequest.java,v 1.5 2001/07/20 09:04:23 cziegeler Exp $
*/
public class HttpRequest implements Request {
@@ -51,29 +51,7 @@
/* The HttpServletRequest interface methods */
public Object get(String name) {
- if (this.req instanceof RequestWrapper) {
- return ((RequestWrapper) this.req).get(name);
- } else {
- String[] values = this.getParameterValues(name);
-
- if (values == null) return null;
-
- if (values.length == 1) {
- return values[0];
- }
-
- if (values.length > 1) {
- Vector vect = new Vector(values.length);
-
- for (int i = 0; i < values.length; i++) {
- vect.add(values[i]);
- }
-
- return vect;
- }
- }
-
- return null;
+ return RequestWrapper.get(this.req, name);
}
public String getAuthType() {
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]