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 in IServiceInterfaceRenderResponse
context.
- Since:
- 7.0.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
beforeEvaluation
public void beforeEvaluation()
- Description copied from class:
PortalFunctionMapper
- Performs any initialization needed before the evaluation is performed.
- Overrides:
beforeEvaluation
in class PageWebResourceFunctionMapper
afterEvaluation
public void afterEvaluation()
- Description copied from class:
PortalFunctionMapper
- Performs any needed operations after the evaluation happens. It should be called in
finally
.
- Overrides:
afterEvaluation
in class PageWebResourceFunctionMapper
resolveFunction
public Method resolveFunction(String prefix,
String localName)
- Specified by:
resolveFunction
in interface FunctionMapper
- Overrides:
resolveFunction
in class ServiceContainerRequestFunctionMapper
beforeWrite
public static void beforeWrite(String... args)
throws IOException
- Writes the given fragment in
before writer
using the given key.
If no current 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()
.
- 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
Lumisportal 7.0.0.121130 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.