[jboss-cvs] JBossAS SVN: r65928 - in projects/metadata/trunk/src/main/java/org/jboss/metadata: web and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Oct 8 14:26:36 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-10-08 14:26:36 -0400 (Mon, 08 Oct 2007)
New Revision: 65928

Added:
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/jboss/
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DispatcherType.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/ErrorPageMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMappingMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMappingsMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FiltersMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/JspConfigMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/JspPropertyGroup.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/SessionConfigMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TaglibMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/Web5xMetaData.java
   projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/WebMetaData.java
Log:
Checkpoint web metadata work

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DispatcherType.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DispatcherType.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DispatcherType.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,37 @@
+/*
+ * 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 javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * filter mapping dispatcher type
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+ at XmlType(name="dispatcherType")
+ at XmlEnum(String.class)
+public enum DispatcherType
+{
+   FORWARD, REQUEST, INCLUDE, ERROR
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/DispatcherType.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/ErrorPageMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/ErrorPageMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/ErrorPageMetaData.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,68 @@
+/*
+ * 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$
+ */
+public class ErrorPageMetaData extends IdMetaDataImpl
+{
+   private static final long serialVersionUID = 1;
+
+   protected String errorCode;
+   protected String location;
+   protected String exceptionType;
+   
+   public String getErrorCode()
+   {
+      return errorCode;
+   }
+   
+   public void setErrorCode(String errorCode)
+   {
+      this.errorCode = errorCode;
+   }
+   
+   public String getLocation()
+   {
+      return location;
+   }
+   
+   public void setLocation(String location)
+   {
+      this.location = location;
+   }
+   
+   public String getExceptionType()
+   {
+      return exceptionType;
+   }
+
+   public void setExceptionType(String exceptionType)
+   {
+      this.exceptionType = exceptionType;
+   }
+
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/ErrorPageMetaData.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMappingMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMappingMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMappingMetaData.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,79 @@
+/*
+ * 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 java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class FilterMappingMetaData extends NamedMetaDataWithDescriptionGroup
+{
+   private static final long serialVersionUID = 1;
+   protected List<String> urlPatterns;
+   protected List<String> servletNames;
+   protected List<DispatcherType> dispatchers;
+
+   public String getFilterName()
+   {
+      return getName();
+   }
+   public void setFilterName(String name)
+   {
+      super.setName(name);
+   }
+
+   public List<String> getServletNames()
+   {
+      return servletNames;
+   }
+   @XmlElement(name="servlet-name")
+   public void setServletNames(List<String> servletNames)
+   {
+      this.servletNames = servletNames;
+   }
+   public List<String> getUrlPatterns()
+   {
+      return urlPatterns;
+   }
+   @XmlElement(name="url-pattern")
+   public void setUrlPatterns(List<String> urlPatterns)
+   {
+      this.urlPatterns = urlPatterns;
+   }
+   public List<DispatcherType> getDispatchers()
+   {
+      return dispatchers;
+   }
+   @XmlElement(name="dispatcher")
+   public void setDispatchers(List<DispatcherType> dispatchers)
+   {
+      this.dispatchers = dispatchers;
+   }
+
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMappingMetaData.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMappingsMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMappingsMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMappingsMetaData.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,37 @@
+/*
+ * 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.AbstractMappedMetaData;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class FilterMappingsMetaData extends AbstractMappedMetaData<FilterMappingMetaData>
+{
+   private static final long serialVersionUID = 1;
+   public FilterMappingsMetaData()
+   {
+      super("web app filter mappings");
+   }
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMappingsMetaData.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMetaData.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,80 @@
+/*
+ * 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 java.util.List;
+
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.metadata.javaee.spec.ParamValueMetaData;
+import org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+ at XmlType(name = "filterType", propOrder = {
+      "descriptionGroup",
+      "filterName",
+      "filterClass",
+      "initParam",
+      }
+   )
+public class FilterMetaData extends NamedMetaDataWithDescriptionGroup
+{
+   private static final long serialVersionUID = 1;
+
+   /** The filter class */
+   private String filterClass;
+   /** The filter init-params */
+   private List<ParamValueMetaData> initParam;
+
+   public String getFilterName()
+   {
+      return getName();
+   }
+   public void setFilterName(String name)
+   {
+      super.setName(name);
+   }
+
+   public String getFilterClass()
+   {
+      return filterClass;
+   }
+
+   public void setFilterClass(String filterClass)
+   {
+      this.filterClass = filterClass;
+   }
+
+   public List<ParamValueMetaData> getInitParam()
+   {
+      return initParam;
+   }
+
+   public void setInitParam(List<ParamValueMetaData> initParam)
+   {
+      this.initParam = initParam;
+   }
+
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FilterMetaData.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FiltersMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FiltersMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FiltersMetaData.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,37 @@
+/*
+ * 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.AbstractMappedMetaData;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class FiltersMetaData extends AbstractMappedMetaData<FilterMetaData>
+{
+   private static final long serialVersionUID = 1;
+   public FiltersMetaData()
+   {
+      super("web app filters");
+   }
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/FiltersMetaData.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/JspConfigMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/JspConfigMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/JspConfigMetaData.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,62 @@
+/*
+ * 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 java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class JspConfigMetaData extends IdMetaDataImpl
+{
+   private static final long serialVersionUID = 1;
+   private List<TaglibMetaData> taglib;
+   private List<JspPropertyGroup> propertyGroups;
+
+   
+   public List<TaglibMetaData> getTaglibs()
+   {
+      return taglib;
+   }
+   @XmlElement(name="taglib")
+   public void setTaglibs(List<TaglibMetaData> taglib)
+   {
+      this.taglib = taglib;
+   }
+
+   public List<JspPropertyGroup> getPropertyGroups()
+   {
+      return propertyGroups;
+   }
+   @XmlElement(name="jsp-property-group")
+   public void setPropertyGroups(List<JspPropertyGroup> propertyGroups)
+   {
+      this.propertyGroups = propertyGroups;
+   }
+
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/JspConfigMetaData.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/JspPropertyGroup.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/JspPropertyGroup.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/JspPropertyGroup.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,121 @@
+/*
+ * 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 java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class JspPropertyGroup extends IdMetaDataImplWithDescriptionGroup
+{
+   private List<String> urlPatterns;
+   private boolean scriptingInvalid;
+   private boolean elIgnored;
+   private boolean isXml;
+   private boolean deferredSyntaxAllowedAsLiteral;
+   private boolean trimDirectiveWhitespaces;
+   private String pageEncoding;
+   private List<String> includePrelude;
+   private List<String> includeCoda;
+
+   public boolean isDeferredSyntaxAllowedAsLiteral()
+   {
+      return deferredSyntaxAllowedAsLiteral;
+   }
+   public void setDeferredSyntaxAllowedAsLiteral(
+         boolean deferredSyntaxAllowedAsLiteral)
+   {
+      this.deferredSyntaxAllowedAsLiteral = deferredSyntaxAllowedAsLiteral;
+   }
+   public boolean isElIgnored()
+   {
+      return elIgnored;
+   }
+   public void setElIgnored(boolean elIgnored)
+   {
+      this.elIgnored = elIgnored;
+   }
+   public List<String> getIncludeCoda()
+   {
+      return includeCoda;
+   }
+   public void setIncludeCoda(List<String> includeCoda)
+   {
+      this.includeCoda = includeCoda;
+   }
+   public List<String> getIncludePrelude()
+   {
+      return includePrelude;
+   }
+   public void setIncludePrelude(List<String> includePrelude)
+   {
+      this.includePrelude = includePrelude;
+   }
+   public boolean isXml()
+   {
+      return isXml;
+   }
+   @XmlElement(name="is-xml")
+   public void setXml(boolean isXml)
+   {
+      this.isXml = isXml;
+   }
+   public String getPageEncoding()
+   {
+      return pageEncoding;
+   }
+   public void setPageEncoding(String pageEncoding)
+   {
+      this.pageEncoding = pageEncoding;
+   }
+   public boolean isScriptingInvalid()
+   {
+      return scriptingInvalid;
+   }
+   public void setScriptingInvalid(boolean scriptingInvalid)
+   {
+      this.scriptingInvalid = scriptingInvalid;
+   }
+   public boolean isTrimDirectiveWhitespaces()
+   {
+      return trimDirectiveWhitespaces;
+   }
+   public void setTrimDirectiveWhitespaces(boolean trimDirectiveWhitespaces)
+   {
+      this.trimDirectiveWhitespaces = trimDirectiveWhitespaces;
+   }
+   public List<String> getUrlPatterns()
+   {
+      return urlPatterns;
+   }
+   @XmlElement(name="url-pattern")
+   public void setUrlPatterns(List<String> urlPatterns)
+   {
+      this.urlPatterns = urlPatterns;
+   }
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/JspPropertyGroup.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/SessionConfigMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/SessionConfigMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/SessionConfigMetaData.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,47 @@
+/*
+ * 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 javax.xml.bind.annotation.XmlType;
+
+import org.jboss.metadata.javaee.support.IdMetaDataImpl;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+ at XmlType(name="session-configType")
+public class SessionConfigMetaData extends IdMetaDataImpl
+{
+   private static final long serialVersionUID = 1;
+   private int sessionTimeout;
+
+   public int getSessionTimeout()
+   {
+      return sessionTimeout;
+   }
+
+   public void setSessionTimeout(int sessionTimeout)
+   {
+      this.sessionTimeout = sessionTimeout;
+   }
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/SessionConfigMetaData.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TaglibMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TaglibMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TaglibMetaData.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,52 @@
+/*
+ * 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$
+ */
+public class TaglibMetaData extends IdMetaDataImpl
+{
+   private String taglibUri;
+   private String taglibLocation;
+
+   public String getTaglibLocation()
+   {
+      return taglibLocation;
+   }
+   public void setTaglibLocation(String taglibLocation)
+   {
+      this.taglibLocation = taglibLocation;
+   }
+   public String getTaglibUri()
+   {
+      return taglibUri;
+   }
+   public void setTaglibUri(String taglibUri)
+   {
+      this.taglibUri = taglibUri;
+   }
+
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/TaglibMetaData.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/Web5xMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/Web5xMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/Web5xMetaData.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,49 @@
+package org.jboss.metadata.web.spec;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlNs;
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+
+import org.jboss.metadata.javaee.spec.JavaEEMetaDataConstants;
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * Web application spec metadata.
+ *
+ * @author Scott.Stark at jboss.org
+ * @version $Revision: $
+ */
+ at XmlRootElement(name="web-app", namespace=JavaEEMetaDataConstants.JAVAEE_NS)
+ at JBossXmlSchema(
+      xmlns={@XmlNs(namespaceURI = JavaEEMetaDataConstants.JAVAEE_NS, prefix = "jee")},
+      ignoreUnresolvedFieldOrClass=false,
+      namespace=JavaEEMetaDataConstants.JAVAEE_NS,
+      elementFormDefault=XmlNsForm.QUALIFIED)
+public class Web5xMetaData extends WebMetaData
+{
+   private static final long serialVersionUID = 1;
+   private String version;
+   private boolean metadataComplete;
+
+   public boolean isMetadataComplete()
+   {
+      return metadataComplete;
+   }
+
+   @XmlAttribute(name="metadata-complete")
+   public void setMetadataComplete(boolean metadataComplete)
+   {
+      this.metadataComplete = metadataComplete;
+   }
+
+   public String getVersion()
+   {
+      return version;
+   }
+   @XmlAttribute
+   public void setVersion(String version)
+   {
+      this.version = version;
+   }
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/Web5xMetaData.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Added: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/WebMetaData.java
===================================================================
--- projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/WebMetaData.java	                        (rev 0)
+++ projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/WebMetaData.java	2007-10-08 18:26:36 UTC (rev 65928)
@@ -0,0 +1,273 @@
+/*
+ * 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 java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import org.jboss.metadata.javaee.spec.EJBReferenceMetaData;
+import org.jboss.metadata.javaee.spec.EJBReferencesMetaData;
+import org.jboss.metadata.javaee.spec.EmptyMetaData;
+import org.jboss.metadata.javaee.spec.EnvironmentEntriesMetaData;
+import org.jboss.metadata.javaee.spec.EnvironmentEntryMetaData;
+import org.jboss.metadata.javaee.spec.LifecycleCallbacksMetaData;
+import org.jboss.metadata.javaee.spec.MessageDestinationMetaData;
+import org.jboss.metadata.javaee.spec.MessageDestinationReferenceMetaData;
+import org.jboss.metadata.javaee.spec.MessageDestinationReferencesMetaData;
+import org.jboss.metadata.javaee.spec.MessageDestinationsMetaData;
+import org.jboss.metadata.javaee.spec.ParamValueMetaData;
+import org.jboss.metadata.javaee.spec.PersistenceUnitReferenceMetaData;
+import org.jboss.metadata.javaee.spec.PersistenceUnitReferencesMetaData;
+import org.jboss.metadata.javaee.spec.RemoteEnvironment;
+import org.jboss.metadata.javaee.spec.RemoteEnvironmentRefsGroupMetaData;
+import org.jboss.metadata.javaee.spec.ResourceEnvironmentReferenceMetaData;
+import org.jboss.metadata.javaee.spec.ResourceEnvironmentReferencesMetaData;
+import org.jboss.metadata.javaee.spec.ResourceReferenceMetaData;
+import org.jboss.metadata.javaee.spec.ResourceReferencesMetaData;
+import org.jboss.metadata.javaee.support.AbstractMappedMetaData;
+import org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptionGroup;
+
+/**
+ * The web-app spec metadata
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class WebMetaData  extends IdMetaDataImplWithDescriptionGroup
+   implements RemoteEnvironment
+{
+   private static final long serialVersionUID = 1;
+
+   private EmptyMetaData distributable;
+   private List<ParamValueMetaData> contextParams;
+   private SessionConfigMetaData sessionConfig;
+   private FiltersMetaData filters;
+   private FilterMappingsMetaData filterMappings;
+   private List<ErrorPageMetaData> errorPages;
+   private List<JspConfigMetaData> jspConfig;
+
+   /** The environment */
+   private RemoteEnvironmentRefsGroupMetaData jndiEnvironmentRefsGroup;
+   
+   /** The message destinations */
+   private MessageDestinationsMetaData messageDestinations;
+
+   public EmptyMetaData getDistributable()
+   {
+      return distributable;
+   }
+   public void setDistributable(EmptyMetaData distributable)
+   {
+      this.distributable = distributable;
+   }
+   public SessionConfigMetaData getSessionConfig()
+   {
+      return sessionConfig;
+   }
+   public void setSessionConfig(SessionConfigMetaData sessionConfig)
+   {
+      this.sessionConfig = sessionConfig;
+   }
+   public List<ParamValueMetaData> getContextParams()
+   {
+      return contextParams;
+   }
+   @XmlElement(name="context-param")
+   public void setContextParams(List<ParamValueMetaData> params)
+   {
+      this.contextParams = params;
+   }
+
+   public FiltersMetaData getFilters()
+   {
+      return filters;
+   }
+   @XmlElement(name="filter")
+   public void setFilters(FiltersMetaData filters)
+   {
+      this.filters = filters;
+   }
+
+   public FilterMappingsMetaData getFilterMappings()
+   {
+      return filterMappings;
+   }
+   @XmlElement(name="filter-mapping")
+   public void setFilterMappings(FilterMappingsMetaData filterMappings)
+   {
+      this.filterMappings = filterMappings;
+   }
+
+   public List<ErrorPageMetaData> getErrorPages()
+   {
+      return errorPages;
+   }
+   @XmlElement(name="error-page")
+   public void setErrorPages(List<ErrorPageMetaData> errorPages)
+   {
+      this.errorPages = errorPages;
+   }
+
+   public List<JspConfigMetaData> getJspConfig()
+   {
+      return jspConfig;
+   }
+   public void setJspConfig(List<JspConfigMetaData> jspConfig)
+   {
+      this.jspConfig = jspConfig;
+   }
+
+   public EJBReferenceMetaData getEjbReferenceByName(String name)
+   {
+      return AbstractMappedMetaData.getByName(name, getEjbReferences());
+   }
+
+   public EJBReferencesMetaData getEjbReferences()
+   {
+      if (jndiEnvironmentRefsGroup != null)
+         return jndiEnvironmentRefsGroup.getEjbReferences();
+      return null;
+   }
+
+   public EnvironmentEntriesMetaData getEnvironmentEntries()
+   {
+      if (jndiEnvironmentRefsGroup != null)
+         return jndiEnvironmentRefsGroup.getEnvironmentEntries();
+      return null;
+   }
+
+   public EnvironmentEntryMetaData getEnvironmentEntryByName(String name)
+   {
+      return AbstractMappedMetaData.getByName(name, getEnvironmentEntries());
+   }
+
+   protected RemoteEnvironmentRefsGroupMetaData getJndiEnvironmentRefsGroup()
+   {
+      return jndiEnvironmentRefsGroup;
+   }
+
+   /**
+    * Get a message destination
+    * 
+    * @param name the name of the destination
+    * @return the destination or null if not found
+    */
+   public MessageDestinationMetaData getMessageDestinationByName(String name)
+   {
+      if (messageDestinations == null)
+         return null;
+      return messageDestinations.get(name);
+   }
+   
+   public MessageDestinationReferenceMetaData getMessageDestinationReferenceByName(String name)
+   {
+      return AbstractMappedMetaData.getByName(name, getMessageDestinationReferences());
+   }
+
+   public MessageDestinationReferencesMetaData getMessageDestinationReferences()
+   {
+      if (jndiEnvironmentRefsGroup != null)
+         return jndiEnvironmentRefsGroup.getMessageDestinationReferences();
+      return null;
+   }
+
+   /**
+    * Get the messageDestinations.
+    * 
+    * @return the messageDestinations.
+    */
+   public MessageDestinationsMetaData getMessageDestinations()
+   {
+      return messageDestinations;
+   }
+
+   public ResourceEnvironmentReferenceMetaData getResourceEnvironmentReferenceByName(String name)
+   {
+      return AbstractMappedMetaData.getByName(name, getResourceEnvironmentReferences());
+   }
+
+   public PersistenceUnitReferenceMetaData getPersistenceUnitReferenceByName(String name)
+   {
+      return AbstractMappedMetaData.getByName(name, getPersistenceUnitRefs());
+   }
+   
+   public PersistenceUnitReferencesMetaData getPersistenceUnitRefs()
+   {
+      if(jndiEnvironmentRefsGroup != null)
+         return jndiEnvironmentRefsGroup.getPersistenceUnitRefs();
+      return null;
+   }
+   
+   public LifecycleCallbacksMetaData getPostConstructs()
+   {
+      if (jndiEnvironmentRefsGroup != null)
+         return jndiEnvironmentRefsGroup.getPostConstructs();
+      return null;
+   }
+
+   public LifecycleCallbacksMetaData getPreDestroys()
+   {
+      if (jndiEnvironmentRefsGroup != null)
+         return jndiEnvironmentRefsGroup.getPreDestroys();
+      return null;
+   }
+   
+   public ResourceEnvironmentReferencesMetaData getResourceEnvironmentReferences()
+   {
+      if (jndiEnvironmentRefsGroup != null)
+         return jndiEnvironmentRefsGroup.getResourceEnvironmentReferences();
+      return null;
+   }
+
+   public ResourceReferenceMetaData getResourceReferenceByName(String name)
+   {
+      return AbstractMappedMetaData.getByName(name, getResourceReferences());
+   }
+
+   public ResourceReferencesMetaData getResourceReferences()
+   {
+      if (jndiEnvironmentRefsGroup != null)
+         return jndiEnvironmentRefsGroup.getResourceReferences();
+      return null;
+   }
+
+   public void setJndiEnvironmentRefsGroup(RemoteEnvironmentRefsGroupMetaData jndiEnvironmentRefsGroup)
+   {
+      if (jndiEnvironmentRefsGroup == null)
+         throw new IllegalArgumentException("Null jndiEnvironmentRefsGroup");
+      this.jndiEnvironmentRefsGroup = jndiEnvironmentRefsGroup;
+   }
+   
+   /**
+    * Set the messageDestinations.
+    * 
+    * @param messageDestinations the messageDestinations.
+    * @throws IllegalArgumentException for a null messageDestinations
+    */
+   @XmlElement(name="message-destination")
+   public void setMessageDestinations(MessageDestinationsMetaData messageDestinations)
+   {
+      if (messageDestinations == null)
+         throw new IllegalArgumentException("Null messageDestinations");
+      this.messageDestinations = messageDestinations;
+   }
+}


Property changes on: projects/metadata/trunk/src/main/java/org/jboss/metadata/web/spec/WebMetaData.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native




More information about the jboss-cvs-commits mailing list