/[Apache-SVN]/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoMultipartFormdataRequest.java
ViewVC logotype

Diff of /incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoMultipartFormdataRequest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoMultipartFormdataRequest.java	2006/02/04 21:44:01	374935
+++ incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/webapp/TobagoMultipartFormdataRequest.java	2006/02/04 21:47:46	374936
@@ -1,23 +1,20 @@
+package org.apache.myfaces.tobago.webapp;
+
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
- * 
- *    Licensed under the Apache License, Version 2.0 (the "License");
- *    you may not use this file except in compliance with the License.
- *    You may obtain a copy of the License at
- * 
- *        http://www.apache.org/licenses/LICENSE-2.0
- * 
- *    Unless required by applicable law or agreed to in writing, software
- *    distributed under the License is distributed on an "AS IS" BASIS,
- *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *    See the License for the specific language governing permissions and
- *    limitations under the License.
- */
-/*
- * Created 30.01.2003 17:00:56.
- * $Id$
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  */
-package org.apache.myfaces.tobago.webapp;
 
 import org.apache.commons.fileupload.DiskFileUpload;
 import org.apache.commons.fileupload.FileItem;
@@ -39,24 +36,18 @@ import java.util.Map;
 
 public class TobagoMultipartFormdataRequest extends HttpServletRequestWrapper {
 
-// ///////////////////////////////////////////// constant
-
   private static final Log LOG
       = LogFactory.getLog(TobagoMultipartFormdataRequest.class);
 
-// ///////////////////////////////////////////// attribute
-
   private Map parameters;
 
   private Map fileItems;
 
-// ///////////////////////////////////////////// constructor
-
   TobagoMultipartFormdataRequest(HttpServletRequest request) {
     super(request);
     String contentType = request.getContentType();
-    if (contentType == null ||
-        !contentType.toLowerCase().startsWith("multipart/form-data")) {
+    if (contentType == null
+        || !contentType.toLowerCase().startsWith("multipart/form-data")) {
       String errorText = "contentType is not multipart/form-data but '"
           + contentType + "'";
       LOG.error(errorText);
@@ -131,8 +122,6 @@ public class TobagoMultipartFormdataRequ
     }
   }
 
-// ////////////////////////////////////////////// code
-
   public FileItem getFileItem(String key) {
     if (fileItems != null) {
       return (FileItem) fileItems.get(key);
@@ -140,9 +129,6 @@ public class TobagoMultipartFormdataRequ
     return null;
   }
 
-// ////////////////////////////////////////////// overwriten
-
-
   public String getParameter(String key) {
     String parameter = null;
     String[] values = (String[]) parameters.get(key);

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26