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