[jboss-cvs] JBossAS SVN: r91612 - projects/metadata/web/trunk/src/main/java/org/jboss/metadata/web/spec.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jul 23 12:53:00 EDT 2009


Author: remy.maucherat at jboss.com
Date: 2009-07-23 12:53:00 -0400 (Thu, 23 Jul 2009)
New Revision: 91612

Added:
   projects/metadata/web/trunk/src/main/java/org/jboss/metadata/web/spec/MultipartConfigMetaData.java
Log:
- Add metadata for the multipart annotation.

Added: projects/metadata/web/trunk/src/main/java/org/jboss/metadata/web/spec/MultipartConfigMetaData.java
===================================================================
--- projects/metadata/web/trunk/src/main/java/org/jboss/metadata/web/spec/MultipartConfigMetaData.java	                        (rev 0)
+++ projects/metadata/web/trunk/src/main/java/org/jboss/metadata/web/spec/MultipartConfigMetaData.java	2009-07-23 16:53:00 UTC (rev 91612)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.web.spec;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision: 83549 $
+ */
+public class MultipartConfigMetaData extends IdMetaDataImpl
+{
+   private static final long serialVersionUID = 1;
+
+   private String location;
+   private long maxFileSize;
+   private long maxRequestSize;
+   private int fileSizeThreshold;
+
+   public String getLocation()
+   {
+      return location;
+   }
+   public void setLocation(String location)
+   {
+      this.location = location;
+   }
+
+   public long getMaxFileSize()
+   {
+      return maxFileSize;
+   }
+   public void setMaxFileSize(long maxFileSize)
+   {
+      this.maxFileSize = maxFileSize;
+   }
+
+   public long getMaxRequestSize()
+   {
+      return maxRequestSize;
+   }
+   public void setMaxRequestSize(long maxRequestSize)
+   {
+      this.maxRequestSize = maxRequestSize;
+   }
+
+   public int getFileSizeThreshold()
+   {
+      return fileSizeThreshold;
+   }
+   public void setFileSizeThreshold(int fileSizeThreshold)
+   {
+      this.fileSizeThreshold = fileSizeThreshold;
+   }
+
+}




More information about the jboss-cvs-commits mailing list