All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.grizzly.http.webxml.schema.WebApp Maven / Gradle / Ivy

/**
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. *
 * Copyright 2007-2008 Sun Microsystems, Inc. All rights reserved. *
 * The contents of this file are subject to the terms of either the GNU
 * General Public License Version 2 only ("GPL") or the Common Development
 * and Distribution License("CDDL") (collectively, the "License").  You
 * may not use this file except in compliance with the License. You can obtain
 * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
 * or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific
 * language governing permissions and limitations under the License.
 *
 * When distributing the software, include this License Header Notice in each
 * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
 * Sun designates this particular file as subject to the "Classpath" exception
 * as provided by Sun in the GPL Version 2 section of the License file that
 * accompanied this code.  If applicable, add the following below the License
 * Header, with the fields enclosed by brackets [] replaced by your own
 * identifying information: "Portions Copyrighted [year]
 * [name of copyright owner]"
 *
 * Contributor(s):
 *
 * If you wish your version of this file to be governed by only the CDDL or
 * only the GPL Version 2, indicate your decision by adding "[Contributor]
 * elects to include this software in this distribution under the [CDDL or GPL
 * Version 2] license."  If you don't indicate a single choice of license, a
 * recipient has the option to distribute your version of this file under
 * either the CDDL, the GPL Version 2 or to extend the choice of license to
 * its licensees as provided above.  However, if you add GPL Version 2 code
 * and therefore, elected the GPL Version 2 license, then the option applies
 * only if the new code is made subject to such option by the copyright
 * holder.
 *
 */
package com.sun.grizzly.http.webxml.schema;

import java.util.List;

/**
 * This class represent a web.xml.  
 * 
 * web-app 2.2, 2.3, 2.4, 2.5 and 3.0 are supported
 * 
 * This is a generic class for all web-app versions.  You will have
 * to call the methods that are supported by your web.xml version.
 * 
 * To understand which informations will be available, 
 * please check the dtd or schemas.
 * 
 * web-app 2.2
 * http://java.sun.com/j2ee/dtds/web-app_2_2.dtd
 * 
 * web-app 2.3
 * http://java.sun.com/dtd/web-app_2_3.dtd
 * 
 * web-app 2.4
 * http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
 * 
 * web-app 2.5
 * http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
 * 
 * web-app 3.0
 * http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
 * 
 */
public class WebApp {

	public List icon;
	public List displayName;
	public List description;
	public boolean distributable;
	public List contextParam;
	public List filter;
	public List filterMapping;
	public List listener;
	public List servlet;
	public List servletMapping;
	public List sessionConfig;
	public List mimeMapping;
	public List welcomeFileList;
	public List errorPage;
	public List taglib;
	public List resourceEnvRef;
	public List resourceRef;
	public List securityConstraint;
	public List loginConfig;
	public List securityRole;
	public List envEntry;
	public List ejbRef;
	public List ejbLocalRef;
	public List jspConfig;
	public List serviceRef;
	public List messageDestination;
	public List messageDestinationRef;
	public List persistenceContextRef;
	public List persistenceUnitRef;
	public List postConstruct;
	public List preDestroy;
	public List localeEncodingMappingList;

	/**
	 * 
	 *	token
	 *	token
	 * 
	 */
	public List getIcon() {
		return icon;
	}

	public void setIcon(List icon) {
		this.icon = icon;
	}
	
	/**
	 * name 
	 */
	public List getDisplayName() {
		return displayName;
	}

	public void setDisplayName(List displayName) {
		this.displayName = displayName;
	}

	/**
	 * description
	 */
	public List getDescription() {
		return description;
	}

	public void setDescription(List description) {
		this.description = description;
	}
	
	/**
	 * 
	 */
	public boolean getDistributable() {
		return distributable;
	}

	public void setDistributable(boolean distributable) {
		this.distributable = distributable;
	}

	/**
	 * 
     *  Hello
     *	ca.sebastiendionne.HelloWorld
     *	1
  	 * 
	 */
	public List getServlet() {
		return servlet;
	}

	public void setServlet(List servlet) {
		this.servlet = servlet;
	}

	/**
	 * 
     *   filter
     *   ca.sebastiendionne.TestFilter
     *   
     *    paramName
     *    paramValue
     *   
     *  
	 */
	public List getFilter() {
		return filter;
	}

	public void setFilter(List filter) {
		this.filter = filter;
	}
	
	/**
	 * 
	 *	description
	 *	token
	 *  value
	 * 
	 */
	public List getContextParam() {
		return contextParam;
	}

	public void setContextParam(List contextParam) {
		this.contextParam = contextParam;
	}
	
	/**
	 * 
	 *	description
	 *	token
	 *	Session
	 *	token
	 *	token
	 *	token
	 *	string
	 *	
	 *		token
	 *		$
	 *	
	 * 
	 */
	public List getEjbLocalRef() {
		return ejbLocalRef;
	}

	public void setEjbLocalRef(List ejbLocalRef) {
		this.ejbLocalRef = ejbLocalRef;
	}

	/**
	 * 
	 *  description
	 *	token
	 *	Session
	 *	token
	 *	token
	 *	token
	 *	string
	 *	
	 *		token
	 *		$
	 *	
	 * 
	 */
	public List getEjbRef() {
		return ejbRef;
	}

	public void setEjbRef(List ejbRef) {
		this.ejbRef = ejbRef;
	}
	
	/**
	 * 
	 *	description
	 *	token
	 *	java.lang.Double
	 *	string
	 *	string
	 *	
	 *		token
	 *		$
	 *	
	 * 
	 */
	public List getEnvEntry() {
		return envEntry;
	}

	public void setEnvEntry(List envEntry) {
		this.envEntry = envEntry;
	}
	
	/**
	 * 
	 *	404
	 *	token
	 *	/
	 * 
	 */
	public List getErrorPage() {
		return errorPage;
	}

	public void setErrorPage(List errorPage) {
		this.errorPage = errorPage;
	}
	
	/**
	 * 
	 *	
	 *	string
	 *	
	 *	string
	 *	
	 *	string
	 *	
	 *	ERROR
	 * 
	 */
	public List getFilterMapping() {
		return filterMapping;
	}

	public void setFilterMapping(List filterMapping) {
		this.filterMapping = filterMapping;
	}

	/**
	 * 
	 *	description
	 *	token
	 *	
	 *		token
	 *		token
	 *	
	 *	token
	 * 
	 */
	public List getListener() {
		return listener;
	}

	public void setListener(List listener) {
		this.listener = listener;
	}
	
	/**
	 * 
	 *	token
	 *	token
	 *	
	 *		/
	 *		/
	 *	
	 * 
	 */
	public List getLoginConfig() {
		return loginConfig;
	}

	public void setLoginConfig(List loginConfig) {
		this.loginConfig = loginConfig;
	}
	
	/**
	 * 
	 *	token
	 *	!/!
	 * 
	 */
	public List getMimeMapping() {
		return mimeMapping;
	}

	public void setMimeMapping(List mimeMapping) {
		this.mimeMapping = mimeMapping;
	}
	
	/**
	 * 
	 *	description
	 *	token
	 *	token
	 *	string
	 *	
	 *		token
	 *		$
	 *	
	 * 
	 */
	public List getResourceEnvRef() {
		return resourceEnvRef;
	}

	public void setResourceEnvRef(List resourceEnvRef) {
		this.resourceEnvRef = resourceEnvRef;
	}
	
	/**
	 * 
	 *	displayname
	 *	
	 *		token
	 *		description
	 *		string
	 *		t
	 *	
	 *	
	 *		description
	 *		CONFIDENTIAL
	 *	
	 * 
	 */
	public List getSecurityConstraint() {
		return securityConstraint;
	}

	public void setSecurityConstraint(List securityConstraint) {
		this.securityConstraint = securityConstraint;
	}
	
	/**
	 * 
	 *	servletname
	 *	/*.jsp
	 * 
	 */
	public List getServletMapping() {
		return servletMapping;
	}

	public void setServletMapping(List servletMapping) {
		this.servletMapping = servletMapping;
	}
	
	/**
	 * 
	 *	120
	 *	
	 *		name
	 *		domain
	 *		path
	 *		comment
	 *		true
	 *		true
	 *	
	 *	SSL
	 * 
	 */
	public List getSessionConfig() {
		return sessionConfig;
	}

	public void setSessionConfig(List sessionConfig) {
		this.sessionConfig = sessionConfig;
	}
	
	/**
	 * 
	 *		uri
	 *		location
	 *	
	 */
	public List getTaglib() {
		return taglib;
	}

	public void setTaglib(List taglib) {
		this.taglib = taglib;
	}
	
	/**
	 * 
	 *	description
	 *	token
	 * 
	 */
	public List getSecurityRole() {
		return securityRole;
	}

	public void setSecurityRole(List securityRole) {
		this.securityRole = securityRole;
	}

	/**
	 * 
	 *	description
	 *	token
	 *	token
	 *	Container
	 *	Unshareable
	 *	string
	 *	
	 *		token
	 *		$
	 *	
	 * 
	 */
	public List getResourceRef() {
		return resourceRef;
	}

	public void setResourceRef(List resourceRef) {
		this.resourceRef = resourceRef;
	}
	
	/**
	 * 
	 *	index.jsp
	 *	index.html
	 * 
	 */
	public List getWelcomeFileList() {
		return welcomeFileList;
	}

	public void setWelcomeFileList(List welcomeFileList) {
		this.welcomeFileList = welcomeFileList;
	}
	
	/**
	 * 
	 *	
	 *		uri
	 *		localtion
	 *	
	 *	
	 *		description
	 *		displayname
	 *		
	 *			token
	 *			token
	 *		
	 *		string
	 *		true
	 *		token
	 *		true
	 *		true
	 *		token
	 *		token
	 *		true
	 *		true
	 *		token
	 *		token
	 *		true
	 *	
	 * 
	 */
	public List getJspConfig() {
		return jspConfig;
	}

	public void setJspConfig(List jspConfig) {
		this.jspConfig = jspConfig;
	}

	/**
	 * 
	 *	description
	 *	token
	 *	
	 *		token
	 *		token
	 *	
	 *	token
	 *	token
	 *	token
	 *	 URI
	 *	token
	 *	pref:name
	 *	
	 *		token
	 *		true
	 *		token
	 *	
	 *	
	 *		description
	 *		token
	 *		
	 *			token
	 *			token
	 *		
	 *		token
	 *		token
	 *		
	 *			string
	 *			token
	 *			string
	 *		
	 *		pref:name
	 *		token
	 *		token
	 *	
	 *	
	 *		
	 *			*
	 *			*
	 *			
	 *			
	 *				string
	 *				token
	 *				
	 *					token
	 *					token
	 *				
	 *				token
	 *				token
	 *				
	 *					string
	 *					token
	 *					string
	 *				
	 *				pref:name
	 *				token
	 *				token
	 *			
	 *		
	 *	
	 *	string
	 *	
	 *		token
	 *		$
	 *	
	 * 
	 */
	public List getServiceRef() {
		return serviceRef;
	}

	public void setServiceRef(List serviceRef) {
		this.serviceRef = serviceRef;
	}
	
	/**
	 * 
	 *	string
	 *	token
	 *	
	 *		token
	 *		token
	 *	
	 *	token
	 *	string
	 * 
	 */
	public List getMessageDestination() {
		return messageDestination;
	}

	public void setMessageDestination(List messageDestination) {
		this.messageDestination = messageDestination;
	}

	/**
	 * 
	 *	string
	 *	token
	 *	token
	 *	ConsumesProduces
	 *	token
	 *	string
	 *	
	 *		token
	 *		$
	 *	
	 * 
	 */
	public List getMessageDestinationRef() {
		return messageDestinationRef;
	}

	public void setMessageDestinationRef(List messageDestinationRef) {
		this.messageDestinationRef = messageDestinationRef;
	}
	
	/**
	 * 
	 *	string
	 *	token
	 *	token
	 *	Extended
	 *	
	 *		string
	 *		string
	 *	
	 *	string
	 *	
	 *		token
	 *		$
	 *	
	 * 
	 */
	public List getPersistenceContextRef() {
		return persistenceContextRef;
	}

	public void setPersistenceContextRef(List persistenceContextRef) {
		this.persistenceContextRef = persistenceContextRef;
	}

	/**
	 * 
	 *	string
	 *	token
	 *	token
	 *	string
	 *	
	 *		token
	 *		$
	 *	
	 * 
	 */
	public List getPersistenceUnitRef() {
		return persistenceUnitRef;
	}

	public void setPersistenceUnitRef(List persistenceUnitRef) {
		this.persistenceUnitRef = persistenceUnitRef;
	}
	
	/**
	 * 
	 *	token
	 *	$
	 * 
	 */
	public List getPostConstruct() {
		return postConstruct;
	}
	
	public void setPostConstruct(List postConstruct) {
		this.postConstruct = postConstruct;
	}
	
	/**
	 * 
	 *	token
	 *	$
	 * 
	 */
	public List getPreDestroy() {
		return preDestroy;
	}

	public void setPreDestroy(List preDestroy) {
		this.preDestroy = preDestroy;
	}

	/**
	 * 
	 *	
	 *		st_ri
	 *		s
	 *	
	 * 
	 */
	public List getLocaleEncodingMappingList() {
		return localeEncodingMappingList;
	}

	public void setLocaleEncodingMappingList(List localeEncodingMappingList) {
		this.localeEncodingMappingList = localeEncodingMappingList;
	}

	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("").append("\n");

		if (distributable) {
			buffer.append("").append("").append("\n");
		}

		if (icon != null && icon.size() > 0) {
			List list = icon;

			for (Icon item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (description != null && description.size() > 0) {
			List list = description;

			for (String item : list) {
				buffer.append("").append(item).append("").append("\n");
			}
		}

		if (displayName != null && displayName.size() > 0) {
			List list = displayName;

			for (String item : list) {
				buffer.append("").append(item).append("").append("\n");
			}
		}

		if (contextParam != null) {
			List list = contextParam;

			for (ContextParam item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (filter != null) {
			List list = filter;

			for (Filter item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (filterMapping != null) {
			List list = filterMapping;

			for (FilterMapping item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (listener != null) {
			List list = listener;

			for (Listener item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (servlet != null) {
			List list = servlet;

			for (Servlet item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (servletMapping != null) {
			List list = servletMapping;

			for (ServletMapping item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (sessionConfig != null) {
			List list = sessionConfig;

			for (SessionConfig item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (mimeMapping != null) {
			List list = mimeMapping;

			for (MimeMapping item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (welcomeFileList != null) {
			List list = welcomeFileList;

			for (WelcomeFileList item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (errorPage != null) {
			List list = errorPage;

			for (ErrorPage item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (taglib != null) {
			List list = taglib;

			for (Taglib item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (resourceRef != null) {
			List list = resourceRef;

			for (ResourceRef item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (resourceEnvRef != null) {
			List list = resourceEnvRef;

			for (ResourceEnvRef item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (securityConstraint != null) {
			List list = securityConstraint;

			for (SecurityConstraint item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (loginConfig != null) {
			List list = loginConfig;

			for (LoginConfig item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (securityRole != null) {
			List list = securityRole;

			for (SecurityRole item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (ejbRef != null) {
			List list = ejbRef;

			for (EjbRef item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (ejbLocalRef != null) {
			List list = ejbLocalRef;

			for (EjbLocalRef item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (envEntry != null) {
			List list = envEntry;

			for (EnvEntry item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (jspConfig != null) {
			List list = jspConfig;

			for (JspConfig item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (serviceRef != null) {
			List list = serviceRef;

			for (ServiceRef item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (messageDestination != null) {
			List list = messageDestination;

			for (MessageDestination item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (messageDestinationRef != null) {
			List list = messageDestinationRef;

			for (MessageDestinationRef item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (persistenceContextRef != null) {
			List list = persistenceContextRef;

			for (PersistenceContextRef item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (persistenceUnitRef != null) {
			List list = persistenceUnitRef;

			for (PersistenceUnitRef item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (postConstruct != null) {
			List list = postConstruct;

			for (LifecycleCallback item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (preDestroy != null) {
			List list = preDestroy;

			for (LifecycleCallback item : list) {
				buffer.append(item).append("\n");
			}
		}

		if (localeEncodingMappingList != null) {
			List list = localeEncodingMappingList;

			for (LocaleEncodingMappingList item : list) {
				buffer.append(item).append("\n");
			}
		}

		buffer.append("");
		return buffer.toString();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy