public class RestScriptsController
extends org.springframework.web.servlet.mvc.AbstractController
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ERROR_MODEL_ATTR_NAME |
static String |
DEFAULT_RESPONSE_BODY_MODEL_ATTR_NAME |
protected String |
errorModelAttributeName |
protected String |
responseBodyModelAttributeName |
protected ScriptFactory |
scriptFactory |
| Constructor and Description |
|---|
RestScriptsController() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
createScriptVariables(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected Object |
executeScript(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String scriptUrl) |
protected String |
getScriptUrl(SiteContext siteContext,
javax.servlet.http.HttpServletRequest request,
String serviceUrl) |
protected String |
getServiceUrl(javax.servlet.http.HttpServletRequest request) |
protected org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setErrorModelAttributeName(String errorModelAttributeName) |
void |
setResponseBodyModelAttributeName(String responseBodyModelAttributeName) |
void |
setScriptFactory(ScriptFactory scriptFactory) |
handleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic static final String DEFAULT_RESPONSE_BODY_MODEL_ATTR_NAME
public static final String DEFAULT_ERROR_MODEL_ATTR_NAME
protected ScriptFactory scriptFactory
protected String responseBodyModelAttributeName
protected String errorModelAttributeName
public void setScriptFactory(ScriptFactory scriptFactory)
public void setResponseBodyModelAttributeName(String responseBodyModelAttributeName)
public void setErrorModelAttributeName(String errorModelAttributeName)
protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractControllerExceptionprotected String getServiceUrl(javax.servlet.http.HttpServletRequest request)
protected String getScriptUrl(SiteContext siteContext, javax.servlet.http.HttpServletRequest request, String serviceUrl)
protected Map<String,Object> createScriptVariables(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Copyright © 2014 CrafterCMS. All Rights Reserved.