org.apache.tiles.portlet.context
Class PortletTilesRequestContextFactory

Package class diagram package PortletTilesRequestContextFactory
java.lang.Object
  extended by org.apache.tiles.portlet.context.PortletTilesRequestContextFactory
All Implemented Interfaces:
TilesRequestContextFactory, Initializable

public class PortletTilesRequestContextFactory
extends java.lang.Object
implements TilesRequestContextFactory

Creates an instance of the appropriate TilesRequestContext implementation under a portlet environment.

Since:
2.1.1

Constructor Summary
PortletTilesRequestContextFactory()
           
 
Method Summary
 TilesRequestContext createRequestContext(TilesApplicationContext context, java.lang.Object... requestItems)
          Create a TilesRequestContext for the given context, request, and response.
protected  javax.portlet.PortletContext getPortletContext(TilesApplicationContext context)
          Returns the original portlet context.
 void init(java.util.Map<java.lang.String,java.lang.String> configParameters)
          Initializes the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletTilesRequestContextFactory

public PortletTilesRequestContextFactory()
Method Detail

init

public void init(java.util.Map<java.lang.String,java.lang.String> configParameters)
Initializes the object.

Specified by:
init in interface Initializable
Parameters:
configParameters - The map of parameters.

createRequestContext

public TilesRequestContext createRequestContext(TilesApplicationContext context,
                                                java.lang.Object... requestItems)
Create a TilesRequestContext for the given context, request, and response.

Specified by:
createRequestContext in interface TilesRequestContextFactory
Parameters:
context - the associated TilesApplicationContext
requestItems - the associated request items, typically a request and a response.
Returns:
TilesRequestContext

getPortletContext

protected javax.portlet.PortletContext getPortletContext(TilesApplicationContext context)
Returns the original portlet context.

Parameters:
context - The application context.
Returns:
The original portlet context, if found.