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

org.apache.tiles
Interface TilesApplicationContext

Package class diagram package TilesApplicationContext
All Known Implementing Classes:
EnhancedTilesApplicationContext, JspTilesRequestContext, PortletTilesApplicationContext, PortletTilesRequestContext, ServletTilesApplicationContext, ServletTilesRequestContext

public interface TilesApplicationContext

Defines a set of methods which tiles use to communicate to the tiles container and runtime environment. There is only one application context per container.

Since:
2.0
Version:
$Rev: 527536 $ $Date: 2007-04-11 17:44:51 +0200 (Wed, 11 Apr 2007) $

Method Summary
 Map<String,Object> getApplicationScope()
          Returns a mutable Map that maps application scope attribute names to their values.
 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.
 

Method Detail

getApplicationScope

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

Returns:
Map of key value pairs.

getInitParams

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

Returns:
initialization parameters

getResource

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

Parameters:
path - to the desired resource.
Returns:
the first located resource which matches the given path.
Throws:
IOException - if the path is malformed

getResources

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

Parameters:
path - to the desired resource.
Returns:
all resources which match the given path.
Throws:
IOException - if the url is illegal


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