org.springframework.extensions.webscripts
Class ScriptWebApplication

java.lang.Object
  extended by org.springframework.extensions.webscripts.ScriptBase
      extended by 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

Field Summary
 
Fields inherited from class org.springframework.extensions.webscripts.ScriptBase
context, properties
 
Constructor Summary
ScriptWebApplication(RenderContext context)
          Constructs a new ScriptWebApplication object.
 
Method Summary
protected  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.
 
Methods inherited from class org.springframework.extensions.webscripts.ScriptBase
getConfig, getModel, getObject, getProperties, getRequestContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptWebApplication

public ScriptWebApplication(RenderContext context)
Constructs a new ScriptWebApplication object.

Parameters:
context - The RenderContext instance for the current request
Method Detail

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.