Class RestScriptsController

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.web.context.ServletContextAware

    @RequestMapping(path={"/api","/api/1/services"})
    public class RestScriptsController
    extends Object
    implements org.springframework.web.context.ServletContextAware
    Controller for REST script requests.
    Author:
    Alfonso Vásquez
    • Constructor Detail

      • RestScriptsController

        public RestScriptsController()
    • Method Detail

      • setResponseBodyModelAttributeName

        public void setResponseBodyModelAttributeName​(String responseBodyModelAttributeName)
      • setErrorMessageModelAttributeName

        public void setErrorMessageModelAttributeName​(String errorMessageModelAttributeName)
      • setDisableVariableRestrictions

        public void setDisableVariableRestrictions​(boolean disableVariableRestrictions)
      • setPluginService

        public void setPluginService​(PluginService pluginService)
      • handleRequest

        @RequestMapping(path="/**",
                        produces={"application/json","application/xml"})
        protected org.springframework.http.ResponseEntity handleRequest​(javax.servlet.http.HttpServletRequest request,
                                                                        javax.servlet.http.HttpServletResponse response)
      • getServiceUrl

        protected String getServiceUrl​(javax.servlet.http.HttpServletRequest request)
      • createScriptVariables

        protected Map<String,​Object> createScriptVariables​(javax.servlet.http.HttpServletRequest request,
                                                                 javax.servlet.http.HttpServletResponse response)
      • checkHttpStatusCodeAwareException

        protected Throwable checkHttpStatusCodeAwareException​(Exception e,
                                                              javax.servlet.http.HttpServletResponse response)
      • checkValidationException

        protected Throwable checkValidationException​(Exception e,
                                                     javax.servlet.http.HttpServletResponse response)
      • setServletContext

        public void setServletContext​(javax.servlet.ServletContext servletContext)
        Specified by:
        setServletContext in interface org.springframework.web.context.ServletContextAware