Package org.apache.tiles.request.servlet
Class ServletApplicationContext
java.lang.Object
org.apache.tiles.request.servlet.ServletApplicationContext
- All Implemented Interfaces:
- ApplicationContext
- Direct Known Subclasses:
- StrutsWildcardServletApplicationContext
Servlet-based implementation of the TilesApplicationContext interface.
- 
Constructor SummaryConstructorsConstructorDescriptionServletApplicationContext(jakarta.servlet.ServletContext servletContext) Creates a new instance of ServletTilesApplicationContext.
- 
Method SummaryModifier and TypeMethodDescriptionReturns a mutable Map that maps application scope attribute names to their values.Returns the original, technology-dependent, context.Return an immutable Map that maps context application initialization parameters to their values.getResource(String localePath) Return the application resource mapped to the specified path.getResource(ApplicationResource base, Locale locale) Return a localized version of an ApplicationResource.getResources(String path) Return the application resources mapped to the specified path.
- 
Constructor Details- 
ServletApplicationContextpublic ServletApplicationContext(jakarta.servlet.ServletContext servletContext) Creates a new instance of ServletTilesApplicationContext.- Parameters:
- servletContext- The servlet context to use.
 
 
- 
- 
Method Details- 
getContextReturns the original, technology-dependent, context.- Specified by:
- getContextin interface- ApplicationContext
- Returns:
- The original application context.
 
- 
getApplicationScopeReturns a mutable Map that maps application scope attribute names to their values.- Specified by:
- getApplicationScopein interface- ApplicationContext
- Returns:
- Map of key value pairs.
 
- 
getInitParamsReturn an immutable Map that maps context application initialization parameters to their values.- Specified by:
- getInitParamsin interface- ApplicationContext
- Returns:
- initialization parameters
 
- 
getResourceReturn the application resource mapped to the specified path.- Specified by:
- getResourcein interface- ApplicationContext
- Parameters:
- localePath- path to the desired resource, including the Locale suffix.
- Returns:
- the first located resource which matches the given path or null if no such resource exists.
 
- 
getResourceReturn a localized version of an ApplicationResource.- Specified by:
- getResourcein interface- ApplicationContext
- Parameters:
- base- the ApplicationResource.
- locale- the desired Locale.
- Returns:
- the first located resource which matches the given path or null if no such resource exists.
 
- 
getResourcesReturn the application resources mapped to the specified path.- Specified by:
- getResourcesin interface- ApplicationContext
- Parameters:
- path- to the desired resource.
- Returns:
- all resources which match the given path.
 
 
-