Class WebAppDescriptor
java.lang.Object
de.espirit.firstspirit.module.descriptor.AbstractDescriptor
de.espirit.firstspirit.module.descriptor.WebAppDescriptor
- All Implemented Interfaces:
ComponentDescriptor
,Descriptor
,Serializable
A descriptor for a
web app
.- Since:
- 4.1
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Contains filter definition based on an include and exclude list of paths.static enum
The scope describes the place where the component is available: global or project-local webapps.Nested classes/interfaces inherited from class de.espirit.firstspirit.module.descriptor.AbstractDescriptor
AbstractDescriptor.ResourceDescriptor
Nested classes/interfaces inherited from interface de.espirit.firstspirit.module.descriptor.ComponentDescriptor
ComponentDescriptor.Scope, ComponentDescriptor.Type
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebAppDescriptor
Creates a instance ofWebAppDescriptor
getScope()
The scope of this project app description.getType()
The type of this project app descriptor which isType#WEBAPP
.@NotNull EnumSet<WebAppDescriptor.WebAppScope>
Returns a set of supportedWebAppDescriptor.WebAppScope
s based on xml definition.Get the path to the web directory.@Nullable WebAppDescriptor.FilterDescriptor
ReturnsWebAppDescriptor.FilterDescriptor
instance based on xml filter definition if specified, or null if not.Get the web resources.Get the location of the web.xml.int
Returns the major version of the xml schema, e.g. '5' for "5.0"@NotNull String
Returns the supported xml schema version for this web application, e.g. 5.0void
Validate the givenZipFile
Methods inherited from class de.espirit.firstspirit.module.descriptor.AbstractDescriptor
getComponentClass, getConfiguration, getConfigurationClass, getDescription, getDisplayName, getModuleName, getName, getResources, getVersion, isHidden, isUnknown, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.espirit.firstspirit.module.descriptor.ComponentDescriptor
getComponentClass, getConfiguration, getConfigurationClass, getDescription, getDisplayName, getModuleName, getName, getResources, getVersion, isHidden, isUnknown
-
Method Details
-
create
public static WebAppDescriptor create(Element serviceElement, @NotNull @NotNull String moduleName, String version) Creates a instance ofWebAppDescriptor
- Parameters:
serviceElement
-Element
moduleName
- The name of the moduleversion
- The version of the module- Returns:
- An instance of
WebAppDescriptor
- Since:
- 4.1
-
getXmlSchemaVersion
Returns the supported xml schema version for this web application, e.g. 5.0- Returns:
- the xml schema version, defaults to "3.0" if unspecified
- Since:
- 5.2.230905
-
getXmlSchemaMajorVersion
public int getXmlSchemaMajorVersion()Returns the major version of the xml schema, e.g. '5' for "5.0"- Returns:
- the major version of the xml schema, defaults to '3' if unspecified or a parsing error occurs
- Since:
- 5.2.230905
-
getWebResources
Get the web resources.- Returns:
- An array of
ResourceDescriptor
- Since:
- 4.1
-
getWebXml
Get the location of the web.xml.- Returns:
- The location of the web.xml.
- Since:
- 4.1
-
getWebDir
Get the path to the web directory.- Returns:
- Path to web directory.
- Since:
- 4.1
-
getWebDirFilter
ReturnsWebAppDescriptor.FilterDescriptor
instance based on xml filter definition if specified, or null if not.- Returns:
- a
WebAppDescriptor.FilterDescriptor
instance - Since:
- 4.2.441
-
getWebAppScopes
Returns a set of supportedWebAppDescriptor.WebAppScope
s based on xml definition.- Returns:
- an EnumSet of supported
WebAppDescriptor.WebAppScope
- Since:
- 4.2.448
-
getType
The type of this project app descriptor which isType#WEBAPP
.- Specified by:
getType
in interfaceComponentDescriptor
- Returns:
ComponentDescriptor.Type
- Since:
- 4.1
-
getScope
The scope of this project app description. ReturnsScope.WEB
- Specified by:
getScope
in interfaceComponentDescriptor
- Returns:
ComponentDescriptor.Scope
- Since:
- 4.1
-
validate
Validate the givenZipFile
- Throws:
FileNotFoundException
IOException
- Since:
- 4.1
-