Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tiles.portlet.context
Class PortletTilesRequestContextFactory

    java.lang.Object
      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
Version:
  $Rev: 819641 $ $Date: 2009-09-28 18:56:14 +0200 (lun, 28 set 2009) $

Constructor Summary
`PortletTilesRequestContextFactory()` Constructor.

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()

  Constructor. To see if a portlet context is available, simply accesses a portlet class.

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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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