Package lumis.portal.servicecontainer
Class ServiceContainerRenderRequestFunctionMapper
- java.lang.Object
-
- lumis.portal.el.PortalFunctionMapper
-
- lumis.portal.page.PageWebResourceFunctionMapper
-
- lumis.portal.servicecontainer.ServiceContainerRequestFunctionMapper
-
- lumis.portal.servicecontainer.ServiceContainerRenderRequestFunctionMapper
-
- All Implemented Interfaces:
javax.servlet.jsp.el.FunctionMapper
,IExtendedFunctionMapper
public class ServiceContainerRenderRequestFunctionMapper extends ServiceContainerRequestFunctionMapper
FunctionMapper
that resolves the functions inIServiceInterfaceRenderResponse
context.- Since:
- 7.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
-
Fields inherited from class lumis.portal.page.PageWebResourceFunctionMapper
BEFORE_WRITE_FUNCTION_NAME
-
-
Constructor Summary
Constructors Constructor Description ServiceContainerRenderRequestFunctionMapper(PageWebResource pageWebResource, IServiceInterfaceRenderResponseSPI renderResponse, IServiceInterfaceRequestSPI request)
Creates a new instance with the given parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterEvaluation()
Performs any needed operations after the evaluation happens.void
beforeEvaluation()
Performs any initialization needed before the evaluation is performed.static java.lang.String
beforeWrite(java.lang.String... args)
Writes the given fragment inbefore writer
using the given key.
If no currentIServiceInterfaceRenderResponse
was set withbeforeEvaluation()
, this method does nothing.java.lang.reflect.Method
resolveFunction(java.lang.String prefix, java.lang.String localName)
-
Methods inherited from class lumis.portal.servicecontainer.ServiceContainerRequestFunctionMapper
localize, nop
-
Methods inherited from class lumis.portal.page.PageWebResourceFunctionMapper
resolveURL, writeIfNotYetWritten
-
Methods inherited from class lumis.portal.el.PortalFunctionMapper
concat, encodeURL, escapeJs, escapeXml, localize, localize, processLocalizationParameters
-
-
-
-
Constructor Detail
-
ServiceContainerRenderRequestFunctionMapper
public ServiceContainerRenderRequestFunctionMapper(PageWebResource pageWebResource, IServiceInterfaceRenderResponseSPI renderResponse, IServiceInterfaceRequestSPI request)
Creates a new instance with the given parameters.- Parameters:
pageWebResource
- the page web resource.renderResponse
- the render response.request
- the service interface request.- Since:
- 7.0.0
-
-
Method Detail
-
beforeEvaluation
public void beforeEvaluation()
Description copied from class:PortalFunctionMapper
Performs any initialization needed before the evaluation is performed.- Overrides:
beforeEvaluation
in classServiceContainerRequestFunctionMapper
-
afterEvaluation
public void afterEvaluation()
Description copied from class:PortalFunctionMapper
Performs any needed operations after the evaluation happens. It should be called infinally
.- Overrides:
afterEvaluation
in classServiceContainerRequestFunctionMapper
-
resolveFunction
public java.lang.reflect.Method resolveFunction(java.lang.String prefix, java.lang.String localName)
- Specified by:
resolveFunction
in interfacejavax.servlet.jsp.el.FunctionMapper
- Overrides:
resolveFunction
in classServiceContainerRequestFunctionMapper
-
beforeWrite
public static java.lang.String beforeWrite(java.lang.String... args) throws java.io.IOException
Writes the given fragment inbefore writer
using the given key.
If no currentIServiceInterfaceRenderResponse
was set withbeforeEvaluation()
, this method does nothing. Using the EL${lum_beforeWrite('<script src="my/script.js"></script>', 'myscript.js')}
has the same effect ofIServiceInterfaceRenderResponse.getBeforeWriter()
.write("<script src=\"my/script.js\"></script>", "myscript.js");
.For more information about before writer, please refer to
PortalPrintWriter
andIServiceInterfaceRenderResponse.getBeforeWriter()
.- Parameters:
args
- The arguments to be used. The expected arguments are:- The HTML fragment: required;
- The unique key: required;
-
The local of insertion: optional.
This local, when provided, must be one of
PortalPrintWriter.WritePosition
constants (eg.PortalPrintWriter.WritePosition.BODY
).
- Throws:
java.io.IOException
- Since:
- 7.0.0
-
-