lumis.portal.servicecontainer
Class ServiceContainerRenderRequestFunctionMapper

Package class diagram package ServiceContainerRenderRequestFunctionMapper
java.lang.Object
  extended by lumis.portal.el.PortalFunctionMapper
      extended by lumis.portal.page.PageWebResourceFunctionMapper
          extended by lumis.portal.servicecontainer.ServiceContainerRequestFunctionMapper
              extended by 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

Field Summary
 
Fields inherited from class lumis.portal.page.PageWebResourceFunctionMapper
BEFORE_WRITE_FUNCTION_NAME
 
Constructor Summary
ServiceContainerRenderRequestFunctionMapper(PageWebResource pageWebResource, IServiceInterfaceRenderResponseSPI renderResponse, IServiceInterfaceRequestSPI request)
          Creates a new instance with the given parameters.
 
Method Summary
 void afterEvaluation()
          Performs any needed operations after the evaluation happens.
 void beforeEvaluation()
          Performs any initialization needed before the evaluation is performed.
static void 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)
           
 
Methods inherited from class lumis.portal.servicecontainer.ServiceContainerRequestFunctionMapper
nop
 
Methods inherited from class lumis.portal.page.PageWebResourceFunctionMapper
resolveURL, writeIfNotYetWritten
 
Methods inherited from class lumis.portal.el.PortalFunctionMapper
localize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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:
  1. The HTML fragment: required;
  2. The unique key: required;
  3. 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.