Package org.codehaus.cargo.module.webapp
Class WebXmlType
- java.lang.Object
-
- org.jdom2.DefaultJDOMFactory
-
- org.codehaus.cargo.module.AbstractDescriptorType
-
- org.codehaus.cargo.module.webapp.WebXmlType
-
- All Implemented Interfaces:
DescriptorType,org.jdom2.JDOMFactory
- Direct Known Subclasses:
WebXml22Type,WebXml23Type,WebXml24Type,WebXml25Type,WebXml30Type
public abstract class WebXmlType extends AbstractDescriptorType
A document type for web.xml web deployment descriptors.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTH_CONSTRAINTElement name 'auth-constraint'.static StringAUTH_METHODElement name 'auth-method'.static StringCONTEXT_PARAMElement name 'context-param'.static StringDESCRIPTIONElement name 'description'.static StringDISPATCHERElement name 'dispatcher'.static StringDISPLAY_NAMEElement name 'display-name'.static StringDISTRIBUTABLEElement name 'distributable'.static StringEJB_LINKElement name 'local-home'.static StringEJB_LOCAL_REFElement name 'ejb-local-ref'.static StringEJB_REFElement name 'ejb-ref'.static StringEJB_REF_NAMEElement name 'ejb-ref-name'.static StringEJB_REF_TYPEElement name 'ejb-ref-type'.static StringENV_ENTRYElement name 'env-entry'.static StringERROR_PAGEElement name 'error-page'.static StringEXTENSIONElement name 'extension'.static StringFILTERElement name 'filter'.static StringFILTER_CLASSElement name 'filter-class'.static StringFILTER_MAPPINGElement name 'filter-mapping'.static StringFILTER_NAMEElement name 'filter-name'.static StringHOMEElement name 'home'.static StringICONElement name 'icon'.static StringINIT_PARAMElement name 'init-param'.static StringJSP_FILEElement name 'jsp-file'.static StringLISTENERElement name 'listener'.static StringLOAD_ON_STARTUPElement name 'load-on-startup'.static StringLOCALElement name 'local'.static StringLOCAL_HOMEElement name 'local-home'.static StringLOGIN_CONFIGElement name 'login-config'.static StringMIME_MAPPINGElement name 'mime-mapping'.static StringMIME_TYPEElement name 'mime-type'.static StringPARAM_NAMEElement name 'param-name'.static StringPARAM_VALUEElement name 'param-value'.static StringREALM_NAMEElement name 'realm-name'.static StringREMOTEElement name 'remote'.static StringRES_REF_NAMEElement name 'res-ref-name'.static StringRES_TYPEElement name 'res-type'.static StringRESOURCE_ENV_REFElement name 'resource-env-ref'.static StringRESOURCE_REFElement name 'resource-ref'.static StringROLE_NAMEElement name 'role-name'.static StringRUN_ASElement name 'run-as'.static StringSECURITY_CONSTRAINTElement name 'security-constraint'.static StringSECURITY_ROLEElement name 'security-role'.static StringSERVLETElement name 'servlet'.static StringSERVLET_CLASSElement name 'servlet-class'.static StringSERVLET_MAPPINGElement name 'servlet-mapping'.static StringSERVLET_NAMEElement name 'servlet-name'.static StringSESSION_CONFIGElement name 'session-config'.static StringTAGLIBElement name 'taglib'.static StringURL_PATTERNElement name 'url-pattern'.static StringWEB_RESOURCE_COLLECTIONElement name 'web-resource-collection'.static StringWEB_RESOURCE_NAMEElement name 'web-resource-name'.static StringWELCOME_FILE_LISTElement name 'welcome-file-list'.
-
Constructor Summary
Constructors Modifier Constructor Description protectedWebXmlType(AbstractDescriptorType parent, Grammar grammar)Protected constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract WebXmlVersiongetVersion()Get the web xml version for his type.-
Methods inherited from class org.codehaus.cargo.module.AbstractDescriptorType
addTag, document, element, element, getAllTags, getDescriptorIo, getGrammar, getJDOMFactory, getTagByName, setDescriptorIo
-
Methods inherited from class org.jdom2.DefaultJDOMFactory
addContent, addNamespaceDeclaration, attribute, attribute, attribute, attribute, attribute, attribute, cdata, cdata, comment, comment, docType, docType, docType, docType, docType, docType, document, document, element, element, element, element, element, element, entityRef, entityRef, entityRef, entityRef, entityRef, entityRef, processingInstruction, processingInstruction, processingInstruction, processingInstruction, processingInstruction, processingInstruction, setAttribute, setRoot, text, text
-
-
-
-
Field Detail
-
ICON
public static final String ICON
Element name 'icon'.- See Also:
- Constant Field Values
-
DISPLAY_NAME
public static final String DISPLAY_NAME
Element name 'display-name'.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final String DESCRIPTION
Element name 'description'.- See Also:
- Constant Field Values
-
DISTRIBUTABLE
public static final String DISTRIBUTABLE
Element name 'distributable'.- See Also:
- Constant Field Values
-
CONTEXT_PARAM
public static final String CONTEXT_PARAM
Element name 'context-param'.- See Also:
- Constant Field Values
-
PARAM_NAME
public static final String PARAM_NAME
Element name 'param-name'.- See Also:
- Constant Field Values
-
PARAM_VALUE
public static final String PARAM_VALUE
Element name 'param-value'.- See Also:
- Constant Field Values
-
FILTER
public static final String FILTER
Element name 'filter'.- See Also:
- Constant Field Values
-
FILTER_NAME
public static final String FILTER_NAME
Element name 'filter-name'.- See Also:
- Constant Field Values
-
FILTER_CLASS
public static final String FILTER_CLASS
Element name 'filter-class'.- See Also:
- Constant Field Values
-
FILTER_MAPPING
public static final String FILTER_MAPPING
Element name 'filter-mapping'.- See Also:
- Constant Field Values
-
INIT_PARAM
public static final String INIT_PARAM
Element name 'init-param'.- See Also:
- Constant Field Values
-
LISTENER
public static final String LISTENER
Element name 'listener'.- See Also:
- Constant Field Values
-
SERVLET
public static final String SERVLET
Element name 'servlet'.- See Also:
- Constant Field Values
-
SERVLET_NAME
public static final String SERVLET_NAME
Element name 'servlet-name'.- See Also:
- Constant Field Values
-
JSP_FILE
public static final String JSP_FILE
Element name 'jsp-file'.- See Also:
- Constant Field Values
-
SERVLET_CLASS
public static final String SERVLET_CLASS
Element name 'servlet-class'.- See Also:
- Constant Field Values
-
LOAD_ON_STARTUP
public static final String LOAD_ON_STARTUP
Element name 'load-on-startup'.- See Also:
- Constant Field Values
-
RUN_AS
public static final String RUN_AS
Element name 'run-as'.- See Also:
- Constant Field Values
-
SERVLET_MAPPING
public static final String SERVLET_MAPPING
Element name 'servlet-mapping'.- See Also:
- Constant Field Values
-
URL_PATTERN
public static final String URL_PATTERN
Element name 'url-pattern'.- See Also:
- Constant Field Values
-
SESSION_CONFIG
public static final String SESSION_CONFIG
Element name 'session-config'.- See Also:
- Constant Field Values
-
MIME_MAPPING
public static final String MIME_MAPPING
Element name 'mime-mapping'.- See Also:
- Constant Field Values
-
EXTENSION
public static final String EXTENSION
Element name 'extension'.- See Also:
- Constant Field Values
-
MIME_TYPE
public static final String MIME_TYPE
Element name 'mime-type'.- See Also:
- Constant Field Values
-
WELCOME_FILE_LIST
public static final String WELCOME_FILE_LIST
Element name 'welcome-file-list'.- See Also:
- Constant Field Values
-
ERROR_PAGE
public static final String ERROR_PAGE
Element name 'error-page'.- See Also:
- Constant Field Values
-
TAGLIB
public static final String TAGLIB
Element name 'taglib'.- See Also:
- Constant Field Values
-
RESOURCE_ENV_REF
public static final String RESOURCE_ENV_REF
Element name 'resource-env-ref'.- See Also:
- Constant Field Values
-
RESOURCE_REF
public static final String RESOURCE_REF
Element name 'resource-ref'.- See Also:
- Constant Field Values
-
RES_REF_NAME
public static final String RES_REF_NAME
Element name 'res-ref-name'.- See Also:
- Constant Field Values
-
RES_TYPE
public static final String RES_TYPE
Element name 'res-type'.- See Also:
- Constant Field Values
-
SECURITY_CONSTRAINT
public static final String SECURITY_CONSTRAINT
Element name 'security-constraint'.- See Also:
- Constant Field Values
-
WEB_RESOURCE_COLLECTION
public static final String WEB_RESOURCE_COLLECTION
Element name 'web-resource-collection'.- See Also:
- Constant Field Values
-
WEB_RESOURCE_NAME
public static final String WEB_RESOURCE_NAME
Element name 'web-resource-name'.- See Also:
- Constant Field Values
-
AUTH_CONSTRAINT
public static final String AUTH_CONSTRAINT
Element name 'auth-constraint'.- See Also:
- Constant Field Values
-
LOGIN_CONFIG
public static final String LOGIN_CONFIG
Element name 'login-config'.- See Also:
- Constant Field Values
-
AUTH_METHOD
public static final String AUTH_METHOD
Element name 'auth-method'.- See Also:
- Constant Field Values
-
REALM_NAME
public static final String REALM_NAME
Element name 'realm-name'.- See Also:
- Constant Field Values
-
SECURITY_ROLE
public static final String SECURITY_ROLE
Element name 'security-role'.- See Also:
- Constant Field Values
-
ROLE_NAME
public static final String ROLE_NAME
Element name 'role-name'.- See Also:
- Constant Field Values
-
ENV_ENTRY
public static final String ENV_ENTRY
Element name 'env-entry'.- See Also:
- Constant Field Values
-
EJB_REF
public static final String EJB_REF
Element name 'ejb-ref'.- See Also:
- Constant Field Values
-
EJB_LOCAL_REF
public static final String EJB_LOCAL_REF
Element name 'ejb-local-ref'.- See Also:
- Constant Field Values
-
EJB_REF_NAME
public static final String EJB_REF_NAME
Element name 'ejb-ref-name'.- See Also:
- Constant Field Values
-
EJB_REF_TYPE
public static final String EJB_REF_TYPE
Element name 'ejb-ref-type'.- See Also:
- Constant Field Values
-
LOCAL
public static final String LOCAL
Element name 'local'.- See Also:
- Constant Field Values
-
LOCAL_HOME
public static final String LOCAL_HOME
Element name 'local-home'.- See Also:
- Constant Field Values
-
REMOTE
public static final String REMOTE
Element name 'remote'.- See Also:
- Constant Field Values
-
HOME
public static final String HOME
Element name 'home'.- See Also:
- Constant Field Values
-
EJB_LINK
public static final String EJB_LINK
Element name 'local-home'.- See Also:
- Constant Field Values
-
DISPATCHER
public static final String DISPATCHER
Element name 'dispatcher'.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebXmlType
protected WebXmlType(AbstractDescriptorType parent, Grammar grammar)
Protected constructor.- Parameters:
parent- Parent type if anygrammar- grammar to use
-
-
Method Detail
-
getVersion
public abstract WebXmlVersion getVersion()
Get the web xml version for his type.- Returns:
- the version for this type
-
-