Package org.apache.struts2.tiles
Class StrutsWildcardServletApplicationContext
java.lang.Object
org.apache.tiles.request.servlet.ServletApplicationContext
org.apache.struts2.tiles.StrutsWildcardServletApplicationContext
- All Implemented Interfaces:
ApplicationContext
-
Constructor Summary
ConstructorsConstructorDescriptionStrutsWildcardServletApplicationContext
(jakarta.servlet.ServletContext context) -
Method Summary
Modifier and TypeMethodDescriptionprotected Set<ApplicationResource>
findResources
(String 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.Methods inherited from class org.apache.tiles.request.servlet.ServletApplicationContext
getApplicationScope, getContext, getInitParams, getResource
-
Constructor Details
-
StrutsWildcardServletApplicationContext
public StrutsWildcardServletApplicationContext(jakarta.servlet.ServletContext context)
-
-
Method Details
-
getResources
Description copied from class:ServletApplicationContext
Return the application resources mapped to the specified path.- Specified by:
getResources
in interfaceApplicationContext
- Overrides:
getResources
in classServletApplicationContext
- Parameters:
path
- to the desired resource.- Returns:
- all resources which match the given path.
-
getResource
Description copied from class:ServletApplicationContext
Return a localized version of an ApplicationResource.- Specified by:
getResource
in interfaceApplicationContext
- Overrides:
getResource
in classServletApplicationContext
- 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.
-
findResources
- Throws:
IOException
-