public class DefaultWebApplicationServerRequestMapper extends Object implements WebApplicationServerRequestMapper
Constructor and Description |
---|
DefaultWebApplicationServerRequestMapper() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
addMapping(WebApplication webApplication,
String... urlPatterns)
Add a mapping.
|
WebApplication |
findMapping(String path)
Find a mapping for the given path.
|
String |
findPrefixMatch(String path,
String currentPrefix)
Find a mapping with a prefix mapping longer than the given current
prefix.
|
public DefaultWebApplicationServerRequestMapper()
public Set<String> addMapping(WebApplication webApplication, String... urlPatterns)
addMapping
in interface WebApplicationServerRequestMapper
webApplication
- the web application.urlPatterns
- the url patterns to map (aka mappings).public WebApplication findMapping(String path)
findMapping
in interface WebApplicationServerRequestMapper
path
- the path.Copyright © 2020. All rights reserved.