org.springframework.extensions.webscripts
Class ScriptResources
java.lang.Object
org.springframework.extensions.webscripts.ScriptBase
org.springframework.extensions.webscripts.ScriptResources
- All Implemented Interfaces:
- Serializable
public final class ScriptResources
- extends ScriptBase
Provides an interface to resources as stored on a model object.
var objectId = resources.get("abc").objectId;
var endpointId = resources.get("abc").endpointId;
- Author:
- muzquiano
- See Also:
- Serialized Form
ScriptResources
public ScriptResources(RequestContext context,
ModelObject modelObject)
- Instantiates a new resources object
- Parameters:
context
- the request contextmodelObject
- the model object
buildProperties
protected ScriptableMap buildProperties()
- Specified by:
buildProperties
in class ScriptBase
getModelObject
public ModelObject getModelObject()
- Returns the model object
- Returns:
get
public ScriptResource get(String name)
remove
public void remove(String name)
add
public ScriptResource add(String name,
String resourceId)
add
public ScriptResource add(String name,
String protocolId,
String endpointId,
String objectId)
getNames
public String[] getNames()
Copyright © 2009 SpringSource, Inc. All Rights Reserved.