Class AbstractScriptingStyle

  • All Implemented Interfaces:
    IStyle
    Direct Known Subclasses:
    GenericCompiledScriptStyle, GenericScriptingStyle

    public abstract class AbstractScriptingStyle
    extends java.lang.Object
    implements IStyle
    Abstract scripting style.
    Since:
    8.1.0
    Version:
    $Revision: 25003 $ $Date: 2022-05-12 11:09:19 -0300 (Thu, 12 May 2022) $
    • 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