Class GenericCompiledScriptStyle
- java.lang.Object
-
- lumis.portal.serviceinterface.style.impl.scripting.AbstractScriptingStyle
-
- lumis.portal.serviceinterface.style.impl.scripting.GenericCompiledScriptStyle
-
- All Implemented Interfaces:
IStyle
public class GenericCompiledScriptStyle extends AbstractScriptingStyle
Generic script style that holds a compiled version of the transformation script.- Since:
- 8.1.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description GenericCompiledScriptStyle(javax.script.CompiledScript compiledScript, IScriptingStyleTemplate template)
Creates a new instance with the given compiled script and style factory.
-
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
-
GenericCompiledScriptStyle
public GenericCompiledScriptStyle(javax.script.CompiledScript compiledScript, IScriptingStyleTemplate template)
Creates a new instance with the given compiled script and style factory.- Parameters:
compiledScript
- the compiled script.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
-
-