Package lumis.portal.servicecontainer
Class ServiceContainerRequestFunctionMapper
- java.lang.Object
-
- lumis.portal.el.PortalFunctionMapper
-
- lumis.portal.page.PageWebResourceFunctionMapper
-
- lumis.portal.servicecontainer.ServiceContainerRequestFunctionMapper
-
- All Implemented Interfaces:
FunctionMapper
,IExtendedFunctionMapper
- Direct Known Subclasses:
ServiceContainerRenderRequestFunctionMapper
public class ServiceContainerRequestFunctionMapper extends PageWebResourceFunctionMapper
FunctionMapper
that resolves the functions available forrequests
.- Since:
- 7.0.0
- Version:
- $Revision: 21268 $ $Date: 2018-05-03 06:06:42 -0300 (Thu, 03 May 2018) $
-
-
Field Summary
-
Fields inherited from class lumis.portal.page.PageWebResourceFunctionMapper
BEFORE_WRITE_FUNCTION_NAME
-
-
Constructor Summary
Constructors Constructor Description ServiceContainerRequestFunctionMapper(PageWebResource pageWebResource, IServiceInterfaceRequestSPI request)
-
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
localize(String[] args)
Resolves the string.static void
nop(String fragment, String key)
Dummy method that does nothing.Method
resolveFunction(String prefix, String localName)
-
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
-
ServiceContainerRequestFunctionMapper
public ServiceContainerRequestFunctionMapper(PageWebResource pageWebResource, IServiceInterfaceRequestSPI request)
-
-
Method Detail
-
resolveFunction
public Method resolveFunction(String prefix, String localName)
- Specified by:
resolveFunction
in interfaceFunctionMapper
- Overrides:
resolveFunction
in classPageWebResourceFunctionMapper
-
nop
public static void nop(String fragment, String key)
Dummy method that does nothing.- Since:
- 7.0.0
-
beforeEvaluation
public void beforeEvaluation()
Description copied from class:PortalFunctionMapper
Performs any initialization needed before the evaluation is performed.- Overrides:
beforeEvaluation
in classPageWebResourceFunctionMapper
-
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 classPageWebResourceFunctionMapper
-
localize
public static String localize(String[] args) throws PortalException
Resolves the string.- Parameters:
args
- the localize function parameters.
1. First argument is the identifier of the string to be localized.
2. Second argument is optional, and is a list of resource paths separated by ';' to be included in the localization.
3+. Any extra argument will be considered a localization parameter.- Returns:
- localized string.
- Throws:
PortalException
- if an error occur localizing the string.- Since:
- 7.1.0
-
-