This project has retired. For details please refer to its Attic page.
PortletTilesRequestContextFactory (Tiles 2 2.1.4 API)

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 Object
implements TilesRequestContextFactory

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

Since:
2.1.1
Version:
$Rev: 819649 $ $Date: 2009-09-28 19:11:21 +0200 (lun, 28 set 2009) $

Constructor Summary
PortletTilesRequestContextFactory()
          Constructor.
 
Method Summary
 TilesRequestContext createRequestContext(TilesApplicationContext context, 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(Map<String,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()
Constructor. To see if a portlet context is available, simply accesses a portlet class.

Method Detail

init

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

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

createRequestContext

public TilesRequestContext createRequestContext(TilesApplicationContext context,
                                                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.


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.