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

org.apache.tiles.servlet.context.wildcard
Class WildcardServletTilesApplicationContext

Package class diagram package WildcardServletTilesApplicationContext
java.lang.Object
  extended by org.apache.tiles.servlet.context.ServletTilesApplicationContext
      extended by org.apache.tiles.servlet.context.wildcard.WildcardServletTilesApplicationContext
All Implemented Interfaces:
TilesApplicationContext

public class WildcardServletTilesApplicationContext
extends ServletTilesApplicationContext

Servlet-based implementation of the TilesApplicationContext interface that can resolve resources even using wildcards.

Since:
2.1.0
Version:
$Rev: 676174 $ $Date: 2008-07-12 15:01:03 +0200 (sab, 12 lug 2008) $

Field Summary
protected  org.springframework.core.io.support.ResourcePatternResolver resolver
          The pattern resolver.
 
Constructor Summary
WildcardServletTilesApplicationContext(ServletContext servletContext)
          Constructor.
 
Method Summary
 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.
 void initialize(ServletContext context)
          Initialize (or reinitialize) this TilesApplicationContext instance for the specified Servlet API objects.
 
Methods inherited from class org.apache.tiles.servlet.context.ServletTilesApplicationContext
createRequestContext, getApplicationScope, getContext, getInitParams, getServletContext, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolver

protected org.springframework.core.io.support.ResourcePatternResolver resolver
The pattern resolver.

Since:
2.1.0
Constructor Detail

WildcardServletTilesApplicationContext

public WildcardServletTilesApplicationContext(ServletContext servletContext)
Constructor.

Parameters:
servletContext - The servlet context.
Since:
2.1.0
Method Detail

initialize

public void initialize(ServletContext context)

Initialize (or reinitialize) this TilesApplicationContext instance for the specified Servlet API objects.

Overrides:
initialize in class ServletTilesApplicationContext
Parameters:
context - The ServletContext for this web application

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
Overrides:
getResource in class ServletTilesApplicationContext
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
Overrides:
getResources in class ServletTilesApplicationContext
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.