public final class ScriptWebApplication extends ScriptBase
Helper object for dealing with the web application's environment.
This object can be used on both the production and preview tiers to gain access to the correct web application mount points and more.
context, properties| Constructor and Description |
|---|
ScriptWebApplication(RequestContext context)
Constructs a new ScriptWebApplication object.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> |
buildProperties() |
String |
getContext()
Returns the root web application context
|
String |
include(String relativePath)
Performs a server-side include of a web asset
The result string is returned.
|
getConfig, getObject, getObjectService, getProperties, getRequestContext, toStringpublic ScriptWebApplication(RequestContext context)
context - The RenderContext instance for the current requestprotected org.springframework.extensions.webscripts.ScriptableMap<String,Serializable> buildProperties()
buildProperties in class ScriptBasepublic String getContext()
Copyright © 2005–2016 Alfresco Software. All rights reserved.