public class WildcardServletApplicationContext extends ServletApplicationContext
Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.io.support.ResourcePatternResolver |
resolver
The pattern resolver.
|
Constructor and Description |
---|
WildcardServletApplicationContext(ServletContext servletContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getApplicationScope, getContext, getInitParams
protected org.springframework.core.io.support.ResourcePatternResolver resolver
public WildcardServletApplicationContext(ServletContext servletContext)
servletContext
- The servlet context.public ApplicationResource getResource(String localePath)
getResource
in interface ApplicationContext
getResource
in class ServletApplicationContext
localePath
- path to the desired resource, including the Locale suffix.public ApplicationResource getResource(ApplicationResource base, Locale locale)
getResource
in interface ApplicationContext
getResource
in class ServletApplicationContext
base
- the ApplicationResource.locale
- the desired Locale.public Collection<ApplicationResource> getResources(String path)
getResources
in interface ApplicationContext
getResources
in class ServletApplicationContext
path
- to the desired resource.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.