WebApplicationRequestMapper
public class DefaultWebApplicationRequestMapper extends Object implements WebApplicationRequestMapper
Modifier and Type | Field | Description |
---|---|---|
protected List<FilterMapping> |
filterMappings |
Stores the filter mappings.
|
protected ConcurrentHashMap<String,String> |
servletMappings |
Stores the servlet mappings.
|
Constructor | Description |
---|---|
DefaultWebApplicationRequestMapper() |
Modifier and Type | Method | Description |
---|---|---|
Set<String> |
addFilterMapping(String filterName,
String... urlPatterns) |
Add a filter mapping.
|
Set<String> |
addFilterMappingBeforeExisting(String filterName,
String... urlPatterns) |
Add a filter mapping.
|
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)
WebApplicationRequestMapper
This adds the filter mappings at the end of list of existing mappings (if any).
addFilterMapping
in interface WebApplicationRequestMapper
filterName
- the filter name.urlPatterns
- the URL patterns to map (aka mappings).public Set<String> addFilterMappingBeforeExisting(String filterName, String... urlPatterns)
WebApplicationRequestMapper
This adds the filter mappings at the start of list of existing mappings (if any). If there are existing mappings these are shifted to the right.
addFilterMappingBeforeExisting
in interface WebApplicationRequestMapper
filterName
- the filter name.urlPatterns
- the URL patterns to map (aka mappings).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 Piranha Cloud. All rights reserved.