Package de.espirit.firstspirit.module
Interface WebEnvironment
- All Superinterfaces:
ProjectEnvironment,ServerEnvironment
A web based project environment.
- Since:
- 4.1
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumIn which web scope is the component available: preview, staging, live, webedit or global. -
Method Summary
Modifier and TypeMethodDescriptionReturns the webscope@Nullable Stringgets the content of current web.xmlbooleanReturns true if the web.xml was edited by user, false otherwisevoidsetCustomWebXml(boolean customWebXml) Saves the "web.xml was edited by user" statevoidsaves the given string to web.xml fileMethods inherited from interface de.espirit.firstspirit.module.ProjectEnvironment
getInstalledVersion, getProject, getProjectIdMethods inherited from interface de.espirit.firstspirit.module.ServerEnvironment
getBroker, getConfDir, getConnection, getDataDir, getLogDir, getScope
-
Method Details
-
getWebScope
WebEnvironment.WebScope getWebScope()Returns the webscope- Returns:
- webscope
- Since:
- 4.1
-
hasCustomWebXml
boolean hasCustomWebXml()Returns true if the web.xml was edited by user, false otherwise- Returns:
trueif edited otherwisefalse- Since:
- 4.1
-
setCustomWebXml
void setCustomWebXml(boolean customWebXml) Saves the "web.xml was edited by user" state- Parameters:
customWebXml- true if web.xml was edited by user, false otherwise- Since:
- 4.1
-
getWebXml
gets the content of current web.xml- Returns:
- the content of current web.xml
- Since:
- 4.1
-
setWebXml
saves the given string to web.xml file- Parameters:
webXml- web.xml content, that should be saved- Since:
- 4.1
-