public class DefaultWebApplicationRequestMapper extends Object implements WebApplicationRequestMapper
Modifier and Type | Field and Description |
---|---|
protected List<FilterMapping> |
filterMappings
Stores the filter mappings.
|
protected ConcurrentHashMap<String,String> |
servletMappings
Stores the servlet mappings.
|
Constructor and Description |
---|
DefaultWebApplicationRequestMapper() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
addFilterMapping(String filterName,
String... urlPatterns) |
Set<String> |
addFilterMappingBeforeExisting(String filterName,
String... urlPatterns) |
Set<String> |
addServletMapping(String servletName,
String... urlPatterns)
Add a servlet mapping.
|
Collection<String> |
findFilterMappings(String path)
Find the filter mappings.
|
DefaultWebApplicationRequestMapping |
findServletMapping(String path)
Find a servlet mapping for the given path.
|
Collection<String> |
getServletMappings(String servletName)
Get the mappings for the specified servlet.
|
String |
getServletName(String mapping)
Get the servlet name for the specified mapping..
|
protected final List<FilterMapping> filterMappings
protected final ConcurrentHashMap<String,String> servletMappings
public Set<String> addFilterMapping(String filterName, String... urlPatterns)
addFilterMapping
in interface WebApplicationRequestMapper
public Set<String> addFilterMappingBeforeExisting(String filterName, String... urlPatterns)
addFilterMappingBeforeExisting
in interface WebApplicationRequestMapper
public Set<String> addServletMapping(String servletName, String... urlPatterns)
addServletMapping
in interface WebApplicationRequestMapper
servletName
- the servlet name.urlPatterns
- the URL patterns to map (aka mappings).public Collection<String> findFilterMappings(String path)
findFilterMappings
in interface WebApplicationRequestMapper
path
- the path.public DefaultWebApplicationRequestMapping findServletMapping(String path)
findServletMapping
in interface WebApplicationRequestMapper
path
- the path.public Collection<String> getServletMappings(String servletName)
getServletMappings
in interface WebApplicationRequestMapper
servletName
- the servlet name.public String getServletName(String mapping)
getServletName
in interface WebApplicationRequestMapper
mapping
- the mapping.Copyright © 2020. All rights reserved.