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

org.apache.tiles.context
Class TilesApplicationContextWrapper

Package class diagram package TilesApplicationContextWrapper
java.lang.Object
  extended by org.apache.tiles.context.TilesApplicationContextWrapper
All Implemented Interfaces:
TilesApplicationContext
Direct Known Subclasses:
PortletTilesRequestContext, ServletTilesRequestContext

public class TilesApplicationContextWrapper
extends Object
implements TilesApplicationContext

Delegate for ease of customization.

Since:
Tiles 2.1.1
Version:
$Rev: 709140 $ $Date: 2008-10-30 12:07:50 +0100 (gio, 30 ott 2008) $

Constructor Summary
TilesApplicationContextWrapper(TilesApplicationContext context)
          Constructor.
 
Method Summary
 Map<String,Object> getApplicationScope()
          Returns a mutable Map that maps application scope attribute names to their values.
 Object getContext()
          Returns the original, technology-dependent, context.
 Map<String,String> getInitParams()
          Return an immutable Map that maps context application initialization parameters to their values.
 URL getResource(String path)
          Return a URL for the application resource mapped to the specified path.
 Set<URL> getResources(String path)
          Return a URL for the application resource mapped to the specified path.
 TilesApplicationContext getWrappedApplicationContext()
          Returns the wrapped application context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TilesApplicationContextWrapper

public TilesApplicationContextWrapper(TilesApplicationContext context)
Constructor.

Parameters:
context - The original context.
Method Detail

getWrappedApplicationContext

public TilesApplicationContext getWrappedApplicationContext()
Returns the wrapped application context.

Returns:
The wrapped application context.

getApplicationScope

public Map<String,Object> getApplicationScope()
Returns a mutable Map that maps application scope attribute names to their values.

Specified by:
getApplicationScope in interface TilesApplicationContext
Returns:
Map of key value pairs.

getContext

public Object getContext()
Returns the original, technology-dependent, context.

Specified by:
getContext in interface TilesApplicationContext
Returns:
The original application context.

getInitParams

public Map<String,String> getInitParams()
Return an immutable Map that maps context application initialization parameters to their values.

Specified by:
getInitParams in interface TilesApplicationContext
Returns:
initialization parameters

getResource

public URL getResource(String path)
                throws IOException
Return a URL for the application resource mapped to the specified path.

Specified by:
getResource in interface TilesApplicationContext
Parameters:
path - to the desired resource.
Returns:
the first located resource which matches the given path.
Throws:
IOException - if the path is malformed

getResources

public Set<URL> getResources(String path)
                      throws IOException
Return a URL for the application resource mapped to the specified path.

Specified by:
getResources in interface TilesApplicationContext
Parameters:
path - to the desired resource.
Returns:
all resources which match the given path.
Throws:
IOException - if the url is illegal


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