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: 17593 $ $Date: 2015-07-17 11:21:36 -0300 (Fri, 17 Jul 2015) $
-
-
Constructor Summary
Constructors Constructor Description GenericScriptingStyle(String 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, 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(String 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, 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
-
-