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:
FunctionMapper
,IExtendedFunctionMapper
public class ServiceContainerRenderRequestFunctionMapper extends ServiceContainerRequestFunctionMapper
FunctionMapper
that resolves the functions inIServiceInterfaceRenderResponse
context.- Since:
- 7.0.0
- Version:
- $Revision: 17478 $ $Date: 2015-07-01 12:48:53 -0300 (Wed, 01 Jul 2015) $
-
-
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 String
beforeWrite(String... args)
Writes the given fragment inbefore writer
using the given key.
If no currentIServiceInterfaceRenderResponse
was set withbeforeEvaluation()
, this method does nothing.Method
resolveFunction(String prefix, 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 Method resolveFunction(String prefix, String localName)
- Specified by:
resolveFunction
in interfaceFunctionMapper
- Overrides:
resolveFunction
in classServiceContainerRequestFunctionMapper
-
beforeWrite
public static String beforeWrite(String... args) throws 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:
IOException
- Since:
- 7.0.0
-
-