|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.webxml.schema.WebApp
public class WebApp
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
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 |
---|
public boolean metadataComplete
public List<Icon> icon
public List<String> displayName
public List<String> description
public boolean distributable
public List<ContextParam> contextParam
public List<Filter> filter
public List<FilterMapping> filterMapping
public List<Listener> listener
public List<Servlet> servlet
public List<ServletMapping> servletMapping
public List<SessionConfig> sessionConfig
public List<MimeMapping> mimeMapping
public List<WelcomeFileList> welcomeFileList
public List<ErrorPage> errorPage
public List<Taglib> taglib
public List<ResourceEnvRef> resourceEnvRef
public List<ResourceRef> resourceRef
public List<SecurityConstraint> securityConstraint
public List<LoginConfig> loginConfig
public List<SecurityRole> securityRole
public List<EnvEntry> envEntry
public List<EjbRef> ejbRef
public List<EjbLocalRef> ejbLocalRef
public List<JspConfig> jspConfig
public List<ServiceRef> serviceRef
public List<MessageDestination> messageDestination
public List<MessageDestinationRef> messageDestinationRef
public List<PersistenceContextRef> persistenceContextRef
public List<PersistenceUnitRef> persistenceUnitRef
public List<LifecycleCallback> postConstruct
public List<LifecycleCallback> preDestroy
public List<LocaleEncodingMappingList> localeEncodingMappingList
Constructor Detail |
---|
public WebApp()
Method Detail |
---|
public List<Icon> getIcon()
public void setIcon(List<Icon> icon)
public List<String> getDisplayName()
public void setDisplayName(List<String> displayName)
public List<String> getDescription()
public void setDescription(List<String> description)
public void setMetadataComplete(boolean complete)
complete
- is completedpublic boolean getMetadataComplete()
public boolean getDistributable()
public void setDistributable(boolean distributable)
public List<Servlet> getServlet()
public void setServlet(List<Servlet> servlet)
public List<Filter> getFilter()
public void setFilter(List<Filter> filter)
public List<ContextParam> getContextParam()
public void setContextParam(List<ContextParam> contextParam)
public List<EjbLocalRef> getEjbLocalRef()
public void setEjbLocalRef(List<EjbLocalRef> ejbLocalRef)
public List<EjbRef> getEjbRef()
public void setEjbRef(List<EjbRef> ejbRef)
public List<EnvEntry> getEnvEntry()
public void setEnvEntry(List<EnvEntry> envEntry)
public List<ErrorPage> getErrorPage()
public void setErrorPage(List<ErrorPage> errorPage)
public List<FilterMapping> getFilterMapping()
public void setFilterMapping(List<FilterMapping> filterMapping)
public List<Listener> getListener()
public void setListener(List<Listener> listener)
public List<LoginConfig> getLoginConfig()
public void setLoginConfig(List<LoginConfig> loginConfig)
public List<MimeMapping> getMimeMapping()
public void setMimeMapping(List<MimeMapping> mimeMapping)
public List<ResourceEnvRef> getResourceEnvRef()
public void setResourceEnvRef(List<ResourceEnvRef> resourceEnvRef)
public List<SecurityConstraint> getSecurityConstraint()
public void setSecurityConstraint(List<SecurityConstraint> securityConstraint)
public List<ServletMapping> getServletMapping()
public void setServletMapping(List<ServletMapping> servletMapping)
public List<SessionConfig> getSessionConfig()
public void setSessionConfig(List<SessionConfig> sessionConfig)
public List<Taglib> getTaglib()
public void setTaglib(List<Taglib> taglib)
public List<SecurityRole> getSecurityRole()
public void setSecurityRole(List<SecurityRole> securityRole)
public List<ResourceRef> getResourceRef()
public void setResourceRef(List<ResourceRef> resourceRef)
public List<WelcomeFileList> getWelcomeFileList()
public void setWelcomeFileList(List<WelcomeFileList> welcomeFileList)
public List<JspConfig> getJspConfig()
public void setJspConfig(List<JspConfig> jspConfig)
public List<ServiceRef> getServiceRef()
public void setServiceRef(List<ServiceRef> serviceRef)
public List<MessageDestination> getMessageDestination()
public void setMessageDestination(List<MessageDestination> messageDestination)
public List<MessageDestinationRef> getMessageDestinationRef()
public void setMessageDestinationRef(List<MessageDestinationRef> messageDestinationRef)
public List<PersistenceContextRef> getPersistenceContextRef()
public void setPersistenceContextRef(List<PersistenceContextRef> persistenceContextRef)
public List<PersistenceUnitRef> getPersistenceUnitRef()
public void setPersistenceUnitRef(List<PersistenceUnitRef> persistenceUnitRef)
public List<LifecycleCallback> getPostConstruct()
public void setPostConstruct(List<LifecycleCallback> postConstruct)
public List<LifecycleCallback> getPreDestroy()
public void setPreDestroy(List<LifecycleCallback> preDestroy)
public List<LocaleEncodingMappingList> getLocaleEncodingMappingList()
public void setLocaleEncodingMappingList(List<LocaleEncodingMappingList> localeEncodingMappingList)
public String toString()
toString
in class Object
public WebApp mergeWith(WebApp with)
public WebApp mergeWithAnnotations(WebApp webAppAnon)
webAppAnon
- WebApp that contains Annotations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |