Class AbstractScriptingStyle
- java.lang.Object
-
- lumis.portal.serviceinterface.style.impl.scripting.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$ $Date$
-
-
Constructor Summary
Constructors Constructor Description AbstractScriptingStyle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.script.Bindings
createBindings(java.lang.String output, IServiceInterfaceRequestSPI request, IServiceInterfaceRenderResponseSPI response, IScriptingStyleTemplate template)
Returns the basic bindings using the given request and response.protected javax.script.ScriptContext
createContext(java.lang.String output, IServiceInterfaceRequestSPI request, IServiceInterfaceRenderResponseSPI response, IScriptingStyleTemplate template)
Returns the script context for the given parameters.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.portal.serviceinterface.style.IStyle
transformOutput, transformOutput
-
-
-
-
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
-
-