Package de.espirit.firstspirit.module
Interface WebEnvironment
- All Superinterfaces:
ProjectEnvironment
,ServerEnvironment
A web based project environment.
- Since:
- 4.1
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
In which web scope is the component available: preview, staging, live, webedit or global. -
Method Summary
Modifier and TypeMethodDescriptionReturns the webscope@Nullable String
gets the content of current web.xmlboolean
Returns true if the web.xml was edited by user, false otherwisevoid
setCustomWebXml
(boolean customWebXml) Saves the "web.xml was edited by user" statevoid
saves the given string to web.xml fileMethods inherited from interface de.espirit.firstspirit.module.ProjectEnvironment
getInstalledVersion, getProject, getProjectId
Methods 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:
true
if 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
-