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
Nested ClassesModifier and TypeClassDescriptionstatic classContains filter definition based on an include and exclude list of paths.static enumThe 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.ResourceDescriptorNested classes/interfaces inherited from interface de.espirit.firstspirit.module.descriptor.ComponentDescriptor
ComponentDescriptor.Scope, ComponentDescriptor.Type -
Method Summary
Modifier and TypeMethodDescriptionstatic WebAppDescriptorCreates a instance ofWebAppDescriptorgetScope()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.WebAppScopes based on xml definition.Get the path to the web directory.@Nullable WebAppDescriptor.FilterDescriptorReturnsWebAppDescriptor.FilterDescriptorinstance based on xml filter definition if specified, or null if not.Get the web resources.Get the location of the web.xml.intReturns the major version of the xml schema, e.g. '5' for "5.0"@NotNull StringReturns the supported xml schema version for this web application, e.g. 5.0voidValidate the givenZipFileMethods inherited from class de.espirit.firstspirit.module.descriptor.AbstractDescriptor
getComponentClass, getConfiguration, getConfigurationClass, getDescription, getDisplayName, getModuleName, getName, getResources, getVersion, isHidden, isUnknown, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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-ElementmoduleName- 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.FilterDescriptorinstance based on xml filter definition if specified, or null if not.- Returns:
- a
WebAppDescriptor.FilterDescriptorinstance - Since:
- 4.2.441
-
getWebAppScopes
Returns a set of supportedWebAppDescriptor.WebAppScopes 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:
getTypein interfaceComponentDescriptor- Returns:
ComponentDescriptor.Type- Since:
- 4.1
-
getScope
The scope of this project app description. ReturnsScope.WEB- Specified by:
getScopein interfaceComponentDescriptor- Returns:
ComponentDescriptor.Scope- Since:
- 4.1
-
validate
Validate the givenZipFile- Throws:
FileNotFoundExceptionIOException- Since:
- 4.1
-