public class ServletApplicationContext extends Object implements ApplicationContext
| Constructor and Description | 
|---|
| ServletApplicationContext(javax.servlet.ServletContext servletContext)Creates a new instance of ServletTilesApplicationContext. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| ApplicationResource | getResource(ApplicationResource base,
           Locale locale)Return a localized version of an ApplicationResource. | 
| ApplicationResource | getResource(String localePath)Return the application resource mapped to the specified path. | 
| Collection<ApplicationResource> | getResources(String path)Return the application resources mapped to the specified path. | 
public ServletApplicationContext(javax.servlet.ServletContext servletContext)
servletContext - The servlet context to use.public Object getContext()
getContext in interface ApplicationContextpublic Map<String,Object> getApplicationScope()
getApplicationScope in interface ApplicationContextpublic Map<String,String> getInitParams()
getInitParams in interface ApplicationContextpublic ApplicationResource getResource(String localePath)
getResource in interface ApplicationContextlocalePath - path to the desired resource, including the Locale suffix.public ApplicationResource getResource(ApplicationResource base, Locale locale)
getResource in interface ApplicationContextbase - the ApplicationResource.locale - the desired Locale.public Collection<ApplicationResource> getResources(String path)
getResources in interface ApplicationContextpath - to the desired resource.Copyright © 2000–2025 Apache Software Foundation. All rights reserved.