Class GenericScriptingStyle
- java.lang.Object
-
- lumis.portal.serviceinterface.style.impl.scripting.AbstractScriptingStyle
-
- lumis.portal.serviceinterface.style.impl.scripting.GenericScriptingStyle
-
- All Implemented Interfaces:
IStyle
public class GenericScriptingStyle extends AbstractScriptingStyle
Generic scripting style.- Since:
- 8.1.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description GenericScriptingStyle(java.lang.String script, javax.script.ScriptEngine engine, IScriptingStyleTemplate template)
Creates a new instance using the given script text, style factory and script engine.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
transformOutput(IServiceInterfaceRequestSPI request, IServiceInterfaceRenderResponseSPI response)
Transforms the output of a service interface.void
transformOutput(IServiceInterfaceRequestSPI request, IServiceInterfaceRenderResponseSPI response, java.lang.String output)
Transforms the output of a service interface using the given XML.-
Methods inherited from class lumis.portal.serviceinterface.style.impl.scripting.AbstractScriptingStyle
createBindings, createContext
-
-
-
-
Constructor Detail
-
GenericScriptingStyle
public GenericScriptingStyle(java.lang.String script, javax.script.ScriptEngine engine, IScriptingStyleTemplate template)
Creates a new instance using the given script text, style factory and script engine.- Parameters:
script
- the script text.engine
- the script engine.template
- the template to be used.- Since:
- 8.1.0
-
-
Method Detail
-
transformOutput
public void transformOutput(IServiceInterfaceRequestSPI request, IServiceInterfaceRenderResponseSPI response) throws PortalException
Description copied from interface:IStyle
Transforms the output of a service interface.- Parameters:
request
- the request.response
- the response.- Throws:
PortalException
-
transformOutput
public void transformOutput(IServiceInterfaceRequestSPI request, IServiceInterfaceRenderResponseSPI response, java.lang.String output) throws PortalException
Description copied from interface:IStyle
Transforms the output of a service interface using the given XML.- Parameters:
request
- the request.response
- the response.output
- the XML string to use.- Throws:
PortalException
-
-