public class ServiceContainerRenderRequestFunctionMapper extends ServiceContainerRequestFunctionMapper
FunctionMapper
that resolves the functions in IServiceInterfaceRenderResponse
context.BEFORE_WRITE_FUNCTION_NAME
Constructor and Description |
---|
ServiceContainerRenderRequestFunctionMapper(PageWebResource pageWebResource,
IServiceInterfaceRenderResponseSPI renderResponse,
IServiceInterfaceRequestSPI 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 |
beforeWrite(String... args)
Writes the given fragment in
before writer using the given key.If no current IServiceInterfaceRenderResponse was set with beforeEvaluation() , this method does nothing. |
Method |
resolveFunction(String prefix,
String localName) |
localize, nop
resolveURL, writeIfNotYetWritten
concat, encodeURL, escapeJs, escapeXml, localize, localize, processLocalizationParameters
public ServiceContainerRenderRequestFunctionMapper(PageWebResource pageWebResource, IServiceInterfaceRenderResponseSPI renderResponse, IServiceInterfaceRequestSPI request)
pageWebResource
- the page web resource.renderResponse
- the render response.request
- the service interface request.public void beforeEvaluation()
PortalFunctionMapper
beforeEvaluation
in class ServiceContainerRequestFunctionMapper
public void afterEvaluation()
PortalFunctionMapper
finally
.afterEvaluation
in class ServiceContainerRequestFunctionMapper
public Method resolveFunction(String prefix, String localName)
resolveFunction
in interface FunctionMapper
resolveFunction
in class ServiceContainerRequestFunctionMapper
public static String beforeWrite(String... args) throws IOException
before writer
using the given key.IServiceInterfaceRenderResponse
was set with beforeEvaluation()
, this method does nothing. Using
the EL ${lum_beforeWrite('<script src="my/script.js"></script>', 'myscript.js')}
has the
same effect of IServiceInterfaceRenderResponse.getBeforeWriter()
.write("<script src=\"my/script.js\"></script>", "myscript.js");
.
For more information about before writer, please refer to PortalPrintWriter
and IServiceInterfaceRenderResponse.getBeforeWriter()
.
args
- The arguments to be used. The expected arguments are:
PortalPrintWriter.WritePosition
constants (eg. PortalPrintWriter.WritePosition.BODY
).
IOException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.