org.springframework.extensions.webscripts
Class ScriptWebApplication
java.lang.Object
org.springframework.extensions.webscripts.ScriptBase
org.springframework.extensions.webscripts.ScriptWebApplication
- All Implemented Interfaces:
- Serializable
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.
- Author:
- muzquiano
- See Also:
- Serialized Form
ScriptWebApplication
public ScriptWebApplication(RenderContext context)
- Constructs a new ScriptWebApplication object.
- Parameters:
context
- The RenderContext instance for the current request
buildProperties
protected ScriptableMap<String,Serializable> buildProperties()
- Specified by:
buildProperties
in class ScriptBase
getContext
public String getContext()
- Returns the root web application context
include
public String include(String relativePath)
- Performs a server-side include of a web asset
The result string is returned.
Value paths are:
/a/b/c.gif
/images/test.jpg
- Parameters:
path
- endpointId
-
- Returns:
Copyright © 2009 SpringSource, Inc. All Rights Reserved.