FileDocCategorySizeDatePackage
SunWebApp.javaAPI DocGlassfish v2 API12516Fri May 04 22:31:54 BST 2007com.sun.enterprise.deployment.runtime.web

SunWebApp

public class SunWebApp extends WebPropertyContainer

Fields Summary
public static final String
SECURITY_ROLE_MAPPING
public static final String
SERVLET
public static final String
SESSION_CONFIG
public static final String
RESOURCE_ENV_REF
public static final String
RESOURCE_REF
public static final String
EJB_REF
public static final String
CACHE
public static final String
CLASS_LOADER
public static final String
JSP_CONFIG
public static final String
LOCALE_CHARSET_INFO
public static final String
PARAMETER_ENCODING
public static final String
FORM_HINT_FIELD
public static final String
DEFAULT_CHARSET
public static final String
IDEMPOTENT_URL_PATTERN
public static final String
ERROR_URL
public static final String
HTTPSERVLET_SECURITY_PROVIDER
Constructors Summary
public SunWebApp()


    
     
    
	// set default values
	setAttributeValue(CACHE, "MaxEntries", "4096");
	setAttributeValue(CACHE, "TimeoutInSeconds", "30");
	setAttributeValue(CACHE, "Enabled", "false");
    
Methods Summary
public intaddEjbRef(com.sun.enterprise.deployment.runtime.common.EjbRef value)

	return this.addValue(EJB_REF, value);
    
public intaddIdempotentUrlPattern(IdempotentUrlPattern value)

        return this.addValue(IDEMPOTENT_URL_PATTERN, value);
    
public intaddResourceEnvRef(com.sun.enterprise.deployment.runtime.common.ResourceEnvRef value)

	return this.addValue(RESOURCE_ENV_REF, value);
    
public intaddResourceRef(com.sun.enterprise.deployment.runtime.common.ResourceRef value)

	return this.addValue(RESOURCE_REF, value);
    
public intaddSecurityRoleMapping(com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping value)

	return this.addValue(SECURITY_ROLE_MAPPING, value);
    
public intaddServlet(Servlet value)

	return this.addValue(SERVLET, value);
    
public CachegetCache()

	return (Cache)this.getValue(CACHE);
    
public java.lang.ClassLoadergetClassLoader()

        return (ClassLoader)this.getValue(CLASS_LOADER);
    
public com.sun.enterprise.deployment.runtime.common.EjbRefgetEjbRef(int index)

	return (EjbRef)this.getValue(EJB_REF, index);
    
public com.sun.enterprise.deployment.runtime.common.EjbRef[]getEjbRef()

        // this is crazy
	return (EjbRef[])this.getValues(EJB_REF);
    
public IdempotentUrlPatterngetIdempotentUrlPattern(int index)

        return (IdempotentUrlPattern)this.getValue(IDEMPOTENT_URL_PATTERN, index);
    
public IdempotentUrlPattern[]getIdempotentUrlPatterns()

        return (IdempotentUrlPattern[])this.getValues(IDEMPOTENT_URL_PATTERN);
    
public JspConfiggetJspConfig()

	return (JspConfig)this.getValue(JSP_CONFIG);
    
public LocaleCharsetInfogetLocaleCharsetInfo()

	return (LocaleCharsetInfo)this.getValue(LOCALE_CHARSET_INFO);
    
public com.sun.enterprise.deployment.runtime.common.ResourceEnvRefgetResourceEnvRef(int index)

	return (ResourceEnvRef)this.getValue(RESOURCE_ENV_REF, index);
    
public com.sun.enterprise.deployment.runtime.common.ResourceEnvRef[]getResourceEnvRef()

	return (ResourceEnvRef[])this.getValues(RESOURCE_ENV_REF);
    
public com.sun.enterprise.deployment.runtime.common.ResourceRefgetResourceRef(int index)

	return (ResourceRef)this.getValue(RESOURCE_REF, index);
    
public com.sun.enterprise.deployment.runtime.common.ResourceRef[]getResourceRef()

	return (ResourceRef[])this.getValues(RESOURCE_REF);
    
public com.sun.enterprise.deployment.runtime.common.SecurityRoleMappinggetSecurityRoleMapping(int index)

	return (SecurityRoleMapping)this.getValue(SECURITY_ROLE_MAPPING, index);
    
public com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping[]getSecurityRoleMapping()

	return (SecurityRoleMapping[])this.getValues(SECURITY_ROLE_MAPPING);
    
public ServletgetServlet(int index)

	return (Servlet)this.getValue(SERVLET, index);
    
public Servlet[]getServlet()

	return (Servlet[])this.getValues(SERVLET);
    
public SessionConfiggetSessionConfig()

	return (SessionConfig)this.getValue(SESSION_CONFIG);
    
public booleanisParameterEncoding()

        Boolean ret = (Boolean)this.getValue(PARAMETER_ENCODING);
        if (ret == null) {
            return false;
        }
        return ret.booleanValue();
    
public intremoveEjbRef(com.sun.enterprise.deployment.runtime.common.EjbRef value)

	return this.removeValue(EJB_REF, value);
    
public intremoveIdempotentUrlPattern(IdempotentUrlPattern value)

        return this.removeValue(IDEMPOTENT_URL_PATTERN, value);
    
public intremoveResourceEnvRef(com.sun.enterprise.deployment.runtime.common.ResourceEnvRef value)

	return this.removeValue(RESOURCE_ENV_REF, value);
    
public intremoveResourceRef(com.sun.enterprise.deployment.runtime.common.ResourceRef value)

	return this.removeValue(RESOURCE_REF, value);
    
public intremoveSecurityRoleMapping(com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping value)

	return this.removeValue(SECURITY_ROLE_MAPPING, value);
    
public intremoveServlet(Servlet value)

	return this.removeValue(SERVLET, value);
    
public voidsetCache(Cache value)

	this.setValue(CACHE, value);
    
public voidsetClassLoader(java.lang.ClassLoader value)

        this.setValue(CLASS_LOADER, value);
    
public voidsetEjbRef(int index, com.sun.enterprise.deployment.runtime.common.EjbRef value)

	this.setValue(EJB_REF, index, value);
    
public voidsetEjbRef(com.sun.enterprise.deployment.runtime.common.EjbRef[] value)

	this.setValue(EJB_REF, value);
    
public voidsetIdempotentUrlPattern(int index, IdempotentUrlPattern value)

        this.setValue(IDEMPOTENT_URL_PATTERN, index, value);
    
public voidsetIdempotentUrlPatterns(IdempotentUrlPattern[] value)

        this.setValue(IDEMPOTENT_URL_PATTERN, value);
    
public voidsetJspConfig(JspConfig value)

	this.setValue(JSP_CONFIG, value);
    
public voidsetLocaleCharsetInfo(LocaleCharsetInfo value)

	this.setValue(LOCALE_CHARSET_INFO, value);
    
public voidsetParameterEncoding(boolean value)

        this.setValue(PARAMETER_ENCODING, Boolean.valueOf(value));
    
public voidsetResourceEnvRef(int index, com.sun.enterprise.deployment.runtime.common.ResourceEnvRef value)

	this.setValue(RESOURCE_ENV_REF, index, value);
    
public voidsetResourceEnvRef(com.sun.enterprise.deployment.runtime.common.ResourceEnvRef[] value)

	this.setValue(RESOURCE_ENV_REF, value);
    
public voidsetResourceRef(int index, com.sun.enterprise.deployment.runtime.common.ResourceRef value)

	this.setValue(RESOURCE_REF, index, value);
    
public voidsetResourceRef(com.sun.enterprise.deployment.runtime.common.ResourceRef[] value)

	this.setValue(RESOURCE_REF, value);
    
public voidsetSecurityRoleMapping(int index, com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping value)

	this.setValue(SECURITY_ROLE_MAPPING, index, value);
    
public voidsetSecurityRoleMapping(com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping[] value)

	this.setValue(SECURITY_ROLE_MAPPING, value);
    
public voidsetServlet(Servlet[] value)

	this.setValue(SERVLET, value);
    
public voidsetServlet(int index, Servlet value)

	this.setValue(SERVLET, index, value);
    
public voidsetSessionConfig(SessionConfig value)

	this.setValue(SESSION_CONFIG, value);
    
public intsizeEjbRef()

	return this.size(EJB_REF);
    
public intsizeIdempotentUrlPattern()

        return this.size(IDEMPOTENT_URL_PATTERN);
    
public intsizeResourceEnvRef()

	return this.size(RESOURCE_ENV_REF);
    
public intsizeResourceRef()

	return this.size(RESOURCE_REF);
    
public intsizeSecurityRoleMapping()

	return this.size(SECURITY_ROLE_MAPPING);
    
public intsizeServlet()

	return this.size(SERVLET);
    
public booleanverify()

	return true;