com.sun.grizzly.http.webxml.schema
Class WebApp

java.lang.Object
  extended by com.sun.grizzly.http.webxml.schema.WebApp

public class WebApp
extends Object

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


Field Summary
 List<ContextParam> contextParam
           
 List<String> description
           
 List<String> displayName
           
 boolean distributable
           
 List<EjbLocalRef> ejbLocalRef
           
 List<EjbRef> ejbRef
           
 List<EnvEntry> envEntry
           
 List<ErrorPage> errorPage
           
 List<Filter> filter
           
 List<FilterMapping> filterMapping
           
 List<Icon> icon
           
 List<JspConfig> jspConfig
           
 List<Listener> listener
           
 List<LocaleEncodingMappingList> localeEncodingMappingList
           
 List<LoginConfig> loginConfig
           
 List<MessageDestination> messageDestination
           
 List<MessageDestinationRef> messageDestinationRef
           
 boolean metadataComplete
           
 List<MimeMapping> mimeMapping
           
 List<PersistenceContextRef> persistenceContextRef
           
 List<PersistenceUnitRef> persistenceUnitRef
           
 List<LifecycleCallback> postConstruct
           
 List<LifecycleCallback> preDestroy
           
 List<ResourceEnvRef> resourceEnvRef
           
 List<ResourceRef> resourceRef
           
 List<SecurityConstraint> securityConstraint
           
 List<SecurityRole> securityRole
           
 List<ServiceRef> serviceRef
           
 List<Servlet> servlet
           
 List<ServletMapping> servletMapping
           
 List<SessionConfig> sessionConfig
           
 List<Taglib> taglib
           
 List<WelcomeFileList> welcomeFileList
           
 
Constructor Summary
WebApp()
           
 
Method Summary
 List<ContextParam> getContextParam()
          <context-param> <description>description</description> <param-name>token</param-name> <param-value>value</param-value> </context-param>
 List<String> getDescription()
          <description>description</description>
 List<String> getDisplayName()
          <display-name>name</display-name>
 boolean getDistributable()
          <distributable></distributable>
 List<EjbLocalRef> getEjbLocalRef()
          <ejb-local-ref> <description>description</description> <ejb-ref-name>token</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <local-home>token</local-home> <local>token</local> <ejb-link>token</ejb-link> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </ejb-local-ref>
 List<EjbRef> getEjbRef()
          <ejb-ref> <description>description</description> <ejb-ref-name>token</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>token</home> <remote>token</remote> <ejb-link>token</ejb-link> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </ejb-ref>
 List<EnvEntry> getEnvEntry()
          <env-entry> <description>description</description> <env-entry-name>token</env-entry-name> <env-entry-type>java.lang.Double</env-entry-type> <env-entry-value>string</env-entry-value> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </env-entry>
 List<ErrorPage> getErrorPage()
          <error-page> <error-code>404</error-code> <exception-type>token</exception-type> <location>/</location> </error-page>
 List<Filter> getFilter()
          <filter> <filter-name>filter</filter-name> <filter-class>ca.sebastiendionne.TestFilter</filter-class> <init-param> <param-name>paramName</param-name> <param-value>paramValue</param-value> </init-param> </filter>
 List<FilterMapping> getFilterMapping()
          <filter-mapping> <filter-name/> <url-pattern>string</url-pattern> <servlet-name/> <url-pattern>string</url-pattern> <servlet-name/> <url-pattern>string</url-pattern> <servlet-name/> <dispatcher>ERROR</dispatcher> </filter-mapping>
 List<Icon> getIcon()
          <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon>
 List<JspConfig> getJspConfig()
          <jsp-config> <taglib> <taglib-uri>uri</taglib-uri> <taglib-location>localtion</taglib-location> </taglib> <jsp-property-group> <description>description</description> <display-name>displayname</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <url-pattern>string</url-pattern> <el-ignored>true</el-ignored> <page-encoding>token</page-encoding> <scripting-invalid>true</scripting-invalid> <is-xml>true</is-xml> <include-prelude>token</include-prelude> <include-coda>token</include-coda> <deferred-syntax-allowed-as-literal>true</deferred-syntax-allowed-as-literal> <trim-directive-whitespaces>true</trim-directive-whitespaces> <default-content-type>token</default-content-type> <buffer>token</buffer> <error-on-undeclared-namespace>true</error-on-undeclared-namespace> </jsp-property-group> </jsp-config>
 List<Listener> getListener()
          <listener> <description>description</description> <display-name>token</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <listener-class>token</listener-class> </listener>
 List<LocaleEncodingMappingList> getLocaleEncodingMappingList()
          <locale-encoding-mapping-list> <locale-encoding-mapping> <locale>st_ri</locale> <encoding>s</encoding> </locale-encoding-mapping> </locale-encoding-mapping-list>
 List<LoginConfig> getLoginConfig()
          <login-config> <auth-method>token</auth-method> <realm-name>token</realm-name> <form-login-config> <form-login-page>/</form-login-page> <form-error-page>/</form-error-page> </form-login-config> </login-config>
 List<MessageDestination> getMessageDestination()
          <message-destination> <description>string</description> <display-name>token</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <message-destination-name>token</message-destination-name> <mapped-name>string</mapped-name> </message-destination>
 List<MessageDestinationRef> getMessageDestinationRef()
          <message-destination-ref> <description>string</description> <message-destination-ref-name>token</message-destination-ref-name> <message-destination-type>token</message-destination-type> <message-destination-usage>ConsumesProduces</message-destination-usage> <message-destination-link>token</message-destination-link> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </message-destination-ref>
 boolean getMetadataComplete()
           
 List<MimeMapping> getMimeMapping()
          <mime-mapping> <extension>token</extension> <mime-type>!/!</mime-type> </mime-mapping>
 List<PersistenceContextRef> getPersistenceContextRef()
          <persistence-context-ref> <description>string</description> <persistence-context-ref-name>token</persistence-context-ref-name> <persistence-unit-name>token</persistence-unit-name> <persistence-context-type>Extended</persistence-context-type> <persistence-property> <name>string</name> <value>string</value> </persistence-property> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </persistence-context-ref>
 List<PersistenceUnitRef> getPersistenceUnitRef()
          <persistence-unit-ref> <description>string</description> <persistence-unit-ref-name>token</persistence-unit-ref-name> <persistence-unit-name>token</persistence-unit-name> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </persistence-unit-ref>
 List<LifecycleCallback> getPostConstruct()
          <post-construct> <lifecycle-callback-class>token</lifecycle-callback-class> <lifecycle-callback-method>$</lifecycle-callback-method> </post-construct>
 List<LifecycleCallback> getPreDestroy()
          <pre-destroy> <lifecycle-callback-class>token</lifecycle-callback-class> <lifecycle-callback-method>$</lifecycle-callback-method> </pre-destroy>
 List<ResourceEnvRef> getResourceEnvRef()
          <resource-env-ref> <description>description</description> <resource-env-ref-name>token</resource-env-ref-name> <resource-env-ref-type>token</resource-env-ref-type> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </resource-env-ref>
 List<ResourceRef> getResourceRef()
          <resource-ref> <description>description</description> <res-ref-name>token</res-ref-name> <res-type>token</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Unshareable</res-sharing-scope> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </resource-ref>
 List<SecurityConstraint> getSecurityConstraint()
          <security-constraint> <display-name>displayname</display-name> <web-resource-collection> <web-resource-name>token</web-resource-name> <description>description</description> <url-pattern>string</url-pattern> <http-method>t</http-method> </web-resource-collection> <user-data-constraint> <description>description</description> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>
 List<SecurityRole> getSecurityRole()
          <security-role> <description>description</description> <role-name>token</role-name> </security-role>
 List<ServiceRef> getServiceRef()
          <service-ref> <description>description</description> <display-name>token</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <service-ref-name>token</service-ref-name> <service-interface>token</service-interface> <service-ref-type>token</service-ref-type> <wsdl-file> URI</wsdl-file> <jaxrpc-mapping-file>token</jaxrpc-mapping-file> <service-qname>pref:name</service-qname> <port-component-ref> <service-endpoint-interface>token</service-endpoint-interface> <enable-mtom>true</enable-mtom> <port-component-link>token</port-component-link> </port-component-ref> <handler> <description>description</description> <display-name>token</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <handler-name>token</handler-name> <handler-class>token</handler-class> <init-param> <description>string</description> <param-name>token</param-name> <param-value>string</param-value> </init-param> <soap-header>pref:name</soap-header> <soap-role>token</soap-role> <port-name>token</port-name> </handler> <handler-chains> <handler-chain> <service-name-pattern>*</service-name-pattern> <port-name-pattern>*</port-name-pattern> <protocol-bindings/> <handler> <description>string</description> <display-name>token</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <handler-name>token</handler-name> <handler-class>token</handler-class> <init-param> <description>string</description> <param-name>token</param-name> <param-value>string</param-value> </init-param> <soap-header>pref:name</soap-header> <soap-role>token</soap-role> <port-name>token</port-name> </handler> </handler-chain> </handler-chains> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </service-ref>
 List<Servlet> getServlet()
          <servlet> <servlet-name>Hello</servlet-name> <servlet-class>ca.sebastiendionne.HelloWorld</servlet-class> <load-on-startup>1</load-on-startup> </servlet>
 List<ServletMapping> getServletMapping()
          <servlet-mapping> <servlet-name>servletname</servlet-name> <url-pattern>/*.jsp</url-pattern> </servlet-mapping>
 List<SessionConfig> getSessionConfig()
          <session-config> <session-timeout>120</session-timeout> <cookie-config> <name>name</name> <domain>domain</domain> <path>path</path> <comment>comment</comment> <http-only>true</http-only> <secure>true</secure> </cookie-config> <tracking-mode>SSL</tracking-mode> </session-config>
 List<Taglib> getTaglib()
          <taglib> <taglib-uri>uri</taglib-uri> <taglib-location>location</taglib-location> </taglib>
 List<WelcomeFileList> getWelcomeFileList()
          <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list>
 WebApp mergeWith(WebApp with)
           
 WebApp mergeWithAnnotations(WebApp webAppAnon)
          Merge with annotations attributes that are not already define Types that are used by Annotations EnvEntry LifecycleCallback MessageDestinationRef PortComponentRef ResourceRef SecurityRole ServiceRef Servlet EJB and persistance not yet supported
 void setContextParam(List<ContextParam> contextParam)
           
 void setDescription(List<String> description)
           
 void setDisplayName(List<String> displayName)
           
 void setDistributable(boolean distributable)
           
 void setEjbLocalRef(List<EjbLocalRef> ejbLocalRef)
           
 void setEjbRef(List<EjbRef> ejbRef)
           
 void setEnvEntry(List<EnvEntry> envEntry)
           
 void setErrorPage(List<ErrorPage> errorPage)
           
 void setFilter(List<Filter> filter)
           
 void setFilterMapping(List<FilterMapping> filterMapping)
           
 void setIcon(List<Icon> icon)
           
 void setJspConfig(List<JspConfig> jspConfig)
           
 void setListener(List<Listener> listener)
           
 void setLocaleEncodingMappingList(List<LocaleEncodingMappingList> localeEncodingMappingList)
           
 void setLoginConfig(List<LoginConfig> loginConfig)
           
 void setMessageDestination(List<MessageDestination> messageDestination)
           
 void setMessageDestinationRef(List<MessageDestinationRef> messageDestinationRef)
           
 void setMetadataComplete(boolean complete)
          attribute of web-app : metadata-complete="true"
 void setMimeMapping(List<MimeMapping> mimeMapping)
           
 void setPersistenceContextRef(List<PersistenceContextRef> persistenceContextRef)
           
 void setPersistenceUnitRef(List<PersistenceUnitRef> persistenceUnitRef)
           
 void setPostConstruct(List<LifecycleCallback> postConstruct)
           
 void setPreDestroy(List<LifecycleCallback> preDestroy)
           
 void setResourceEnvRef(List<ResourceEnvRef> resourceEnvRef)
           
 void setResourceRef(List<ResourceRef> resourceRef)
           
 void setSecurityConstraint(List<SecurityConstraint> securityConstraint)
           
 void setSecurityRole(List<SecurityRole> securityRole)
           
 void setServiceRef(List<ServiceRef> serviceRef)
           
 void setServlet(List<Servlet> servlet)
           
 void setServletMapping(List<ServletMapping> servletMapping)
           
 void setSessionConfig(List<SessionConfig> sessionConfig)
           
 void setTaglib(List<Taglib> taglib)
           
 void setWelcomeFileList(List<WelcomeFileList> welcomeFileList)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

metadataComplete

public boolean metadataComplete

icon

public List<Icon> icon

displayName

public List<String> displayName

description

public List<String> description

distributable

public boolean distributable

contextParam

public List<ContextParam> contextParam

filter

public List<Filter> filter

filterMapping

public List<FilterMapping> filterMapping

listener

public List<Listener> listener

servlet

public List<Servlet> servlet

servletMapping

public List<ServletMapping> servletMapping

sessionConfig

public List<SessionConfig> sessionConfig

mimeMapping

public List<MimeMapping> mimeMapping

welcomeFileList

public List<WelcomeFileList> welcomeFileList

errorPage

public List<ErrorPage> errorPage

taglib

public List<Taglib> taglib

resourceEnvRef

public List<ResourceEnvRef> resourceEnvRef

resourceRef

public List<ResourceRef> resourceRef

securityConstraint

public List<SecurityConstraint> securityConstraint

loginConfig

public List<LoginConfig> loginConfig

securityRole

public List<SecurityRole> securityRole

envEntry

public List<EnvEntry> envEntry

ejbRef

public List<EjbRef> ejbRef

ejbLocalRef

public List<EjbLocalRef> ejbLocalRef

jspConfig

public List<JspConfig> jspConfig

serviceRef

public List<ServiceRef> serviceRef

messageDestination

public List<MessageDestination> messageDestination

messageDestinationRef

public List<MessageDestinationRef> messageDestinationRef

persistenceContextRef

public List<PersistenceContextRef> persistenceContextRef

persistenceUnitRef

public List<PersistenceUnitRef> persistenceUnitRef

postConstruct

public List<LifecycleCallback> postConstruct

preDestroy

public List<LifecycleCallback> preDestroy

localeEncodingMappingList

public List<LocaleEncodingMappingList> localeEncodingMappingList
Constructor Detail

WebApp

public WebApp()
Method Detail

getIcon

public List<Icon> getIcon()
<icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon>


setIcon

public void setIcon(List<Icon> icon)

getDisplayName

public List<String> getDisplayName()
<display-name>name</display-name>


setDisplayName

public void setDisplayName(List<String> displayName)

getDescription

public List<String> getDescription()
<description>description</description>


setDescription

public void setDescription(List<String> description)

setMetadataComplete

public void setMetadataComplete(boolean complete)
attribute of web-app : metadata-complete="true"

Parameters:
complete - is completed

getMetadataComplete

public boolean getMetadataComplete()

getDistributable

public boolean getDistributable()
<distributable></distributable>


setDistributable

public void setDistributable(boolean distributable)

getServlet

public List<Servlet> getServlet()
<servlet> <servlet-name>Hello</servlet-name> <servlet-class>ca.sebastiendionne.HelloWorld</servlet-class> <load-on-startup>1</load-on-startup> </servlet>


setServlet

public void setServlet(List<Servlet> servlet)

getFilter

public List<Filter> getFilter()
<filter> <filter-name>filter</filter-name> <filter-class>ca.sebastiendionne.TestFilter</filter-class> <init-param> <param-name>paramName</param-name> <param-value>paramValue</param-value> </init-param> </filter>


setFilter

public void setFilter(List<Filter> filter)

getContextParam

public List<ContextParam> getContextParam()
<context-param> <description>description</description> <param-name>token</param-name> <param-value>value</param-value> </context-param>


setContextParam

public void setContextParam(List<ContextParam> contextParam)

getEjbLocalRef

public List<EjbLocalRef> getEjbLocalRef()
<ejb-local-ref> <description>description</description> <ejb-ref-name>token</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <local-home>token</local-home> <local>token</local> <ejb-link>token</ejb-link> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </ejb-local-ref>


setEjbLocalRef

public void setEjbLocalRef(List<EjbLocalRef> ejbLocalRef)

getEjbRef

public List<EjbRef> getEjbRef()
<ejb-ref> <description>description</description> <ejb-ref-name>token</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>token</home> <remote>token</remote> <ejb-link>token</ejb-link> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </ejb-ref>


setEjbRef

public void setEjbRef(List<EjbRef> ejbRef)

getEnvEntry

public List<EnvEntry> getEnvEntry()
<env-entry> <description>description</description> <env-entry-name>token</env-entry-name> <env-entry-type>java.lang.Double</env-entry-type> <env-entry-value>string</env-entry-value> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </env-entry>


setEnvEntry

public void setEnvEntry(List<EnvEntry> envEntry)

getErrorPage

public List<ErrorPage> getErrorPage()
<error-page> <error-code>404</error-code> <exception-type>token</exception-type> <location>/</location> </error-page>


setErrorPage

public void setErrorPage(List<ErrorPage> errorPage)

getFilterMapping

public List<FilterMapping> getFilterMapping()
<filter-mapping> <filter-name/> <url-pattern>string</url-pattern> <servlet-name/> <url-pattern>string</url-pattern> <servlet-name/> <url-pattern>string</url-pattern> <servlet-name/> <dispatcher>ERROR</dispatcher> </filter-mapping>


setFilterMapping

public void setFilterMapping(List<FilterMapping> filterMapping)

getListener

public List<Listener> getListener()
<listener> <description>description</description> <display-name>token</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <listener-class>token</listener-class> </listener>


setListener

public void setListener(List<Listener> listener)

getLoginConfig

public List<LoginConfig> getLoginConfig()
<login-config> <auth-method>token</auth-method> <realm-name>token</realm-name> <form-login-config> <form-login-page>/</form-login-page> <form-error-page>/</form-error-page> </form-login-config> </login-config>


setLoginConfig

public void setLoginConfig(List<LoginConfig> loginConfig)

getMimeMapping

public List<MimeMapping> getMimeMapping()
<mime-mapping> <extension>token</extension> <mime-type>!/!</mime-type> </mime-mapping>


setMimeMapping

public void setMimeMapping(List<MimeMapping> mimeMapping)

getResourceEnvRef

public List<ResourceEnvRef> getResourceEnvRef()
<resource-env-ref> <description>description</description> <resource-env-ref-name>token</resource-env-ref-name> <resource-env-ref-type>token</resource-env-ref-type> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </resource-env-ref>


setResourceEnvRef

public void setResourceEnvRef(List<ResourceEnvRef> resourceEnvRef)

getSecurityConstraint

public List<SecurityConstraint> getSecurityConstraint()
<security-constraint> <display-name>displayname</display-name> <web-resource-collection> <web-resource-name>token</web-resource-name> <description>description</description> <url-pattern>string</url-pattern> <http-method>t</http-method> </web-resource-collection> <user-data-constraint> <description>description</description> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>


setSecurityConstraint

public void setSecurityConstraint(List<SecurityConstraint> securityConstraint)

getServletMapping

public List<ServletMapping> getServletMapping()
<servlet-mapping> <servlet-name>servletname</servlet-name> <url-pattern>/*.jsp</url-pattern> </servlet-mapping>


setServletMapping

public void setServletMapping(List<ServletMapping> servletMapping)

getSessionConfig

public List<SessionConfig> getSessionConfig()
<session-config> <session-timeout>120</session-timeout> <cookie-config> <name>name</name> <domain>domain</domain> <path>path</path> <comment>comment</comment> <http-only>true</http-only> <secure>true</secure> </cookie-config> <tracking-mode>SSL</tracking-mode> </session-config>


setSessionConfig

public void setSessionConfig(List<SessionConfig> sessionConfig)

getTaglib

public List<Taglib> getTaglib()
<taglib> <taglib-uri>uri</taglib-uri> <taglib-location>location</taglib-location> </taglib>


setTaglib

public void setTaglib(List<Taglib> taglib)

getSecurityRole

public List<SecurityRole> getSecurityRole()
<security-role> <description>description</description> <role-name>token</role-name> </security-role>


setSecurityRole

public void setSecurityRole(List<SecurityRole> securityRole)

getResourceRef

public List<ResourceRef> getResourceRef()
<resource-ref> <description>description</description> <res-ref-name>token</res-ref-name> <res-type>token</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Unshareable</res-sharing-scope> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </resource-ref>


setResourceRef

public void setResourceRef(List<ResourceRef> resourceRef)

getWelcomeFileList

public List<WelcomeFileList> getWelcomeFileList()
<welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list>


setWelcomeFileList

public void setWelcomeFileList(List<WelcomeFileList> welcomeFileList)

getJspConfig

public List<JspConfig> getJspConfig()
<jsp-config> <taglib> <taglib-uri>uri</taglib-uri> <taglib-location>localtion</taglib-location> </taglib> <jsp-property-group> <description>description</description> <display-name>displayname</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <url-pattern>string</url-pattern> <el-ignored>true</el-ignored> <page-encoding>token</page-encoding> <scripting-invalid>true</scripting-invalid> <is-xml>true</is-xml> <include-prelude>token</include-prelude> <include-coda>token</include-coda> <deferred-syntax-allowed-as-literal>true</deferred-syntax-allowed-as-literal> <trim-directive-whitespaces>true</trim-directive-whitespaces> <default-content-type>token</default-content-type> <buffer>token</buffer> <error-on-undeclared-namespace>true</error-on-undeclared-namespace> </jsp-property-group> </jsp-config>


setJspConfig

public void setJspConfig(List<JspConfig> jspConfig)

getServiceRef

public List<ServiceRef> getServiceRef()
<service-ref> <description>description</description> <display-name>token</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <service-ref-name>token</service-ref-name> <service-interface>token</service-interface> <service-ref-type>token</service-ref-type> <wsdl-file> URI</wsdl-file> <jaxrpc-mapping-file>token</jaxrpc-mapping-file> <service-qname>pref:name</service-qname> <port-component-ref> <service-endpoint-interface>token</service-endpoint-interface> <enable-mtom>true</enable-mtom> <port-component-link>token</port-component-link> </port-component-ref> <handler> <description>description</description> <display-name>token</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <handler-name>token</handler-name> <handler-class>token</handler-class> <init-param> <description>string</description> <param-name>token</param-name> <param-value>string</param-value> </init-param> <soap-header>pref:name</soap-header> <soap-role>token</soap-role> <port-name>token</port-name> </handler> <handler-chains> <handler-chain> <service-name-pattern>*</service-name-pattern> <port-name-pattern>*</port-name-pattern> <protocol-bindings/> <handler> <description>string</description> <display-name>token</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <handler-name>token</handler-name> <handler-class>token</handler-class> <init-param> <description>string</description> <param-name>token</param-name> <param-value>string</param-value> </init-param> <soap-header>pref:name</soap-header> <soap-role>token</soap-role> <port-name>token</port-name> </handler> </handler-chain> </handler-chains> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </service-ref>


setServiceRef

public void setServiceRef(List<ServiceRef> serviceRef)

getMessageDestination

public List<MessageDestination> getMessageDestination()
<message-destination> <description>string</description> <display-name>token</display-name> <icon> <small-icon>token</small-icon> <large-icon>token</large-icon> </icon> <message-destination-name>token</message-destination-name> <mapped-name>string</mapped-name> </message-destination>


setMessageDestination

public void setMessageDestination(List<MessageDestination> messageDestination)

getMessageDestinationRef

public List<MessageDestinationRef> getMessageDestinationRef()
<message-destination-ref> <description>string</description> <message-destination-ref-name>token</message-destination-ref-name> <message-destination-type>token</message-destination-type> <message-destination-usage>ConsumesProduces</message-destination-usage> <message-destination-link>token</message-destination-link> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </message-destination-ref>


setMessageDestinationRef

public void setMessageDestinationRef(List<MessageDestinationRef> messageDestinationRef)

getPersistenceContextRef

public List<PersistenceContextRef> getPersistenceContextRef()
<persistence-context-ref> <description>string</description> <persistence-context-ref-name>token</persistence-context-ref-name> <persistence-unit-name>token</persistence-unit-name> <persistence-context-type>Extended</persistence-context-type> <persistence-property> <name>string</name> <value>string</value> </persistence-property> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </persistence-context-ref>


setPersistenceContextRef

public void setPersistenceContextRef(List<PersistenceContextRef> persistenceContextRef)

getPersistenceUnitRef

public List<PersistenceUnitRef> getPersistenceUnitRef()
<persistence-unit-ref> <description>string</description> <persistence-unit-ref-name>token</persistence-unit-ref-name> <persistence-unit-name>token</persistence-unit-name> <mapped-name>string</mapped-name> <injection-target> <injection-target-class>token</injection-target-class> <injection-target-name>$</injection-target-name> </injection-target> </persistence-unit-ref>


setPersistenceUnitRef

public void setPersistenceUnitRef(List<PersistenceUnitRef> persistenceUnitRef)

getPostConstruct

public List<LifecycleCallback> getPostConstruct()
<post-construct> <lifecycle-callback-class>token</lifecycle-callback-class> <lifecycle-callback-method>$</lifecycle-callback-method> </post-construct>


setPostConstruct

public void setPostConstruct(List<LifecycleCallback> postConstruct)

getPreDestroy

public List<LifecycleCallback> getPreDestroy()
<pre-destroy> <lifecycle-callback-class>token</lifecycle-callback-class> <lifecycle-callback-method>$</lifecycle-callback-method> </pre-destroy>


setPreDestroy

public void setPreDestroy(List<LifecycleCallback> preDestroy)

getLocaleEncodingMappingList

public List<LocaleEncodingMappingList> getLocaleEncodingMappingList()
<locale-encoding-mapping-list> <locale-encoding-mapping> <locale>st_ri</locale> <encoding>s</encoding> </locale-encoding-mapping> </locale-encoding-mapping-list>


setLocaleEncodingMappingList

public void setLocaleEncodingMappingList(List<LocaleEncodingMappingList> localeEncodingMappingList)

toString

public String toString()
Overrides:
toString in class Object

mergeWith

public WebApp mergeWith(WebApp with)

mergeWithAnnotations

public WebApp mergeWithAnnotations(WebApp webAppAnon)
Merge with annotations attributes that are not already define Types that are used by Annotations EnvEntry LifecycleCallback MessageDestinationRef PortComponentRef ResourceRef SecurityRole ServiceRef Servlet EJB and persistance not yet supported

Parameters:
webAppAnon - WebApp that contains Annotations
Returns:
merge webapp


Copyright © 2012 Oracle Corporation. All Rights Reserved.