Class AbstractScriptingStyle

    • Constructor Detail

      • AbstractScriptingStyle

        public AbstractScriptingStyle()
    • Method Detail

      • createBindings

        protected javax.script.Bindings createBindings​(java.lang.String output,
                                                       IServiceInterfaceRequestSPI request,
                                                       IServiceInterfaceRenderResponseSPI response,
                                                       IScriptingStyleTemplate template)
                                                throws java.io.IOException
        Returns the basic bindings using the given request and response.
        Parameters:
        output - the current output to be transformed.
        request - the request.
        response - the response.
        template - the scripting style template.
        Returns:
        the basic bindings using the given request and response.
        Throws:
        java.io.IOException
        Since:
        8.1.0
      • createContext

        protected javax.script.ScriptContext createContext​(java.lang.String output,
                                                           IServiceInterfaceRequestSPI request,
                                                           IServiceInterfaceRenderResponseSPI response,
                                                           IScriptingStyleTemplate template)
                                                    throws java.io.IOException
        Returns the script context for the given parameters.
        Parameters:
        output - the current output to be transformed.
        request - the request.
        response - the response.
        template - the scripting style template.
        Returns:
        the script context for the given parameters.
        Throws:
        java.io.IOException
        Since:
        8.1.0