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

org.apache.openejb.jee.sun.SunWebApp Maven / Gradle / Ivy

/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You 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.openejb.jee.sun;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.ArrayList;
import java.util.List;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "contextRoot",
    "securityRoleMapping",
    "servlet",
    "idempotentUrlPattern",
    "sessionConfig",
    "ejbRef",
    "resourceRef",
    "resourceEnvRef",
    "serviceRef",
    "messageDestinationRef",
    "cache",
    "classLoader",
    "jspConfig",
    "localeCharsetInfo",
    "parameterEncoding",
    "property",
    "messageDestination",
    "webserviceDescription"
})
@XmlRootElement(name = "sun-web-app")
public class SunWebApp {
    @XmlAttribute(name = "error-url")
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String errorUrl;
    @XmlAttribute(name = "httpservlet-security-provider")
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String httpservletSecurityProvider;
    @XmlElement(name = "context-root")
    protected String contextRoot;
    @XmlElement(name = "security-role-mapping")
    protected List securityRoleMapping;
    protected List servlet;
    @XmlElement(name = "idempotent-url-pattern")
    protected List idempotentUrlPattern;
    @XmlElement(name = "session-config")
    protected SessionConfig sessionConfig;
    @XmlElement(name = "ejb-ref")
    protected List ejbRef;
    @XmlElement(name = "resource-ref")
    protected List resourceRef;
    @XmlElement(name = "resource-env-ref")
    protected List resourceEnvRef;
    @XmlElement(name = "service-ref")
    protected List serviceRef;
    @XmlElement(name = "message-destination-ref")
    protected List messageDestinationRef;
    protected Cache cache;
    @XmlElement(name = "class-loader")
    protected ClassLoader classLoader;
    @XmlElement(name = "jsp-config")
    protected JspConfig jspConfig;
    @XmlElement(name = "locale-charset-info")
    protected LocaleCharsetInfo localeCharsetInfo;
    @XmlElement(name = "parameter-encoding")
    protected ParameterEncoding parameterEncoding;
    protected List property;
    @XmlElement(name = "message-destination")
    protected List messageDestination;
    @XmlElement(name = "webservice-description")
    protected List webserviceDescription;

    public String getErrorUrl() {
        if (errorUrl == null) {
            return "";
        } else {
            return errorUrl;
        }
    }

    public void setErrorUrl(final String value) {
        this.errorUrl = value;
    }

    public String getHttpservletSecurityProvider() {
        return httpservletSecurityProvider;
    }

    public void setHttpservletSecurityProvider(final String value) {
        this.httpservletSecurityProvider = value;
    }

    public String getContextRoot() {
        return contextRoot;
    }

    public void setContextRoot(final String value) {
        this.contextRoot = value;
    }

    public List getSecurityRoleMapping() {
        if (securityRoleMapping == null) {
            securityRoleMapping = new ArrayList();
        }
        return this.securityRoleMapping;
    }

    public List getServlet() {
        if (servlet == null) {
            servlet = new ArrayList();
        }
        return this.servlet;
    }

    public List getIdempotentUrlPattern() {
        if (idempotentUrlPattern == null) {
            idempotentUrlPattern = new ArrayList();
        }
        return this.idempotentUrlPattern;
    }

    public SessionConfig getSessionConfig() {
        return sessionConfig;
    }

    public void setSessionConfig(final SessionConfig value) {
        this.sessionConfig = value;
    }

    public List getEjbRef() {
        if (ejbRef == null) {
            ejbRef = new ArrayList();
        }
        return this.ejbRef;
    }

    public List getResourceRef() {
        if (resourceRef == null) {
            resourceRef = new ArrayList();
        }
        return this.resourceRef;
    }

    public List getResourceEnvRef() {
        if (resourceEnvRef == null) {
            resourceEnvRef = new ArrayList();
        }
        return this.resourceEnvRef;
    }

    public List getServiceRef() {
        if (serviceRef == null) {
            serviceRef = new ArrayList();
        }
        return this.serviceRef;
    }

    public List getMessageDestinationRef() {
        if (messageDestinationRef == null) {
            messageDestinationRef = new ArrayList();
        }
        return this.messageDestinationRef;
    }

    public Cache getCache() {
        return cache;
    }

    public void setCache(final Cache value) {
        this.cache = value;
    }

    public ClassLoader getClassLoader() {
        return classLoader;
    }

    public void setClassLoader(final ClassLoader value) {
        this.classLoader = value;
    }

    public JspConfig getJspConfig() {
        return jspConfig;
    }

    public void setJspConfig(final JspConfig value) {
        this.jspConfig = value;
    }

    public LocaleCharsetInfo getLocaleCharsetInfo() {
        return localeCharsetInfo;
    }

    public void setLocaleCharsetInfo(final LocaleCharsetInfo value) {
        this.localeCharsetInfo = value;
    }

    public ParameterEncoding getParameterEncoding() {
        return parameterEncoding;
    }

    public void setParameterEncoding(final ParameterEncoding value) {
        this.parameterEncoding = value;
    }

    public List getProperty() {
        if (property == null) {
            property = new ArrayList();
        }
        return this.property;
    }

    public List getMessageDestination() {
        if (messageDestination == null) {
            messageDestination = new ArrayList();
        }
        return this.messageDestination;
    }

    public List getWebserviceDescription() {
        if (webserviceDescription == null) {
            webserviceDescription = new ArrayList();
        }
        return this.webserviceDescription;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy