Module cloud.piranha.http.webapp
Package cloud.piranha.http.webapp
Class HttpWebApplicationServerRequestMapper
java.lang.Object
cloud.piranha.http.webapp.HttpWebApplicationServerRequestMapper
- All Implemented Interfaces:
WebApplicationServerRequestMapper
public class HttpWebApplicationServerRequestMapper
extends Object
implements WebApplicationServerRequestMapper
The default WebApplicationServerRequestMapper.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMapping(WebApplication webApplication, String... urlPatterns)
Add a mapping.findMapping(String path)
Find a mapping for the given path.findPrefixMatch(String path, String currentPrefix)
Find a mapping with a prefix mapping longer than the given current prefix.
-
Constructor Details
-
HttpWebApplicationServerRequestMapper
public HttpWebApplicationServerRequestMapper()
-
-
Method Details
-
addMapping
Add a mapping.- Specified by:
addMapping
in interfaceWebApplicationServerRequestMapper
- Parameters:
webApplication
- the web application.urlPatterns
- the url patterns to map (aka mappings).- Returns:
- the url patterns not added.
-
findMapping
Find a mapping for the given path.- Specified by:
findMapping
in interfaceWebApplicationServerRequestMapper
- Parameters:
path
- the path.- Returns:
- the mapping, or null if not found.
-
findPrefixMatch
Find a mapping with a prefix mapping longer than the given current prefix.- Parameters:
path
- the path.currentPrefix
- the current matched prefix.- Returns:
- the mapping, or null if not found.
-