|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.servlet.context.ServletTilesApplicationContext
public class ServletTilesApplicationContext
Servlet-based implementation of the TilesApplicationContext interface.
Constructor Summary | |
---|---|
ServletTilesApplicationContext(ServletContext servletContext)
Creates a new instance of ServletTilesApplicationContext. |
Method Summary | |
---|---|
TilesRequestContext |
createRequestContext(Object request,
Object response)
Creates a servlet context for a given request/response pair. |
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. |
ServletContext |
getServletContext()
Returns the servlet context. |
void |
initialize(ServletContext context)
Initialize (or reinitialize) this TilesApplicationContext instance
for the specified Servlet API objects. |
void |
release()
Release references to allocated resources acquired in initialize() of via subsequent processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletTilesApplicationContext(ServletContext servletContext)
servletContext
- The servlet context to use.Method Detail |
---|
public Map<String,Object> getApplicationScope()
getApplicationScope
in interface TilesApplicationContext
public Map<String,String> getInitParams()
getInitParams
in interface TilesApplicationContext
public URL getResource(String path) throws MalformedURLException
getResource
in interface TilesApplicationContext
path
- to the desired resource.
MalformedURLException
public Set<URL> getResources(String path) throws MalformedURLException
getResources
in interface TilesApplicationContext
path
- to the desired resource.
MalformedURLException
public ServletContext getServletContext()
public void initialize(ServletContext context)
Initialize (or reinitialize) this TilesApplicationContext
instance
for the specified Servlet API objects.
context
- The ServletContext
for this web applicationpublic void release()
Release references to allocated resources acquired in
initialize()
of via subsequent processing. After this
method is called, subsequent calls to any other method than
initialize()
will return undefined results.
public TilesRequestContext createRequestContext(Object request, Object response)
request
- The request object.response
- The response object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |