Interface ScriptingServiceInternal
-
- All Known Implementing Classes:
ScriptingServiceInternalImpl
public interface ScriptingServiceInternal
Defines all operations related to scripts- Since:
- 4.0
- Author:
- joseross
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
executeRestScript(String siteId, String path, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Executes a REST script from the site repositoryvoid
reload(String siteId)
Reloads the classpath for the given site
-
-
-
Method Detail
-
executeRestScript
Object executeRestScript(String siteId, String path, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws groovy.util.ResourceException, groovy.util.ScriptException, ConfigurationException
Executes a REST script from the site repository- Parameters:
siteId
- the id of the sitepath
- the path of the scriptrequest
- the current requestresponse
- the current response- Returns:
- the value returned by the script
- Throws:
groovy.util.ResourceException
- if there is any error loading the scriptgroovy.util.ScriptException
- if there is any error executing the scriptConfigurationException
-
reload
void reload(String siteId)
Reloads the classpath for the given site- Parameters:
siteId
- the id of the site
-
-