public class PageWebResourceFunctionMapper extends PortalFunctionMapper
FunctionMapper
that resolves the functions in PageWebResource
context.Modifier and Type | Field and Description |
---|---|
protected static String |
BEFORE_WRITE_FUNCTION_NAME
Define the before write function name.
|
Constructor and Description |
---|
PageWebResourceFunctionMapper(PageWebResource pageWebResource,
HttpServletRequest request)
Creates a new instance with the given parameters.
|
Modifier and Type | Method and 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.
|
Method |
resolveFunction(String prefix,
String localName) |
static String |
resolveURL(String url)
Resolves the given URL.
The URL will only be resolved against the applied themes if the requested page was previously set within beforeEvaluation() . |
static String |
writeIfNotYetWritten(String fragment,
String key)
Returns the given fragment if the given key was not used yet.
|
concat, encodeURL, escapeJs, escapeXml, localize, localize, processLocalizationParameters
protected static final String BEFORE_WRITE_FUNCTION_NAME
public PageWebResourceFunctionMapper(PageWebResource pageWebResource, HttpServletRequest request)
pageWebResource
- the page web resource.public void beforeEvaluation()
PortalFunctionMapper
beforeEvaluation
in class PortalFunctionMapper
public void afterEvaluation()
PortalFunctionMapper
finally
.afterEvaluation
in class PortalFunctionMapper
public Method resolveFunction(String prefix, String localName)
resolveFunction
in interface FunctionMapper
resolveFunction
in class PortalFunctionMapper
public static String resolveURL(String url) throws PortalException
beforeEvaluation()
.url
- the URL to be resolved.PortalException
public static String writeIfNotYetWritten(String fragment, String key) throws IOException
null
.fragment
- the fragment to be rendered in before writer.key
- the unique key to use.IOException
public static String localize(String[] args) throws PortalException
args
- the localize function parameters.PortalException
- if an error occur localizing the string.LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.