@java.lang.SuppressWarnings("rawtypes") public class DefaultUrlMappingsHolder extends java.lang.Object implements UrlMappings
Default implementation of the UrlMappingsHolder interface that takes a list of mappings and then sorts them according to their precedence rules as defined in the implementation of Comparable.
Modifiers | Name | Description |
---|---|---|
static UrlMappingInfo[] |
EMPTY_RESULTS |
Constructor and description |
---|
DefaultUrlMappingsHolder
(java.util.List<UrlMapping> mappings) |
DefaultUrlMappingsHolder
(java.util.List<UrlMapping> mappings, java.util.List excludePatterns) |
DefaultUrlMappingsHolder
(java.util.List<UrlMapping> mappings, java.util.List excludePatterns, boolean doNotCallInit) |
Type Params | Return Type | Name and description |
---|---|---|
|
public java.util.Collection<UrlMapping> |
addMappings(groovy.lang.Closure mappings) |
|
public java.util.Set<org.springframework.http.HttpMethod> |
allowedMethods(java.lang.String uri) |
|
public java.util.List |
getExcludePatterns() |
|
public UrlCreator |
getReverseMapping(java.lang.String controller, java.lang.String action, java.util.Map params) |
|
public UrlCreator |
getReverseMapping(java.lang.String controller, java.lang.String action, java.lang.String pluginName, java.util.Map params) |
|
public UrlCreator |
getReverseMapping(java.lang.String controller, java.lang.String action, java.lang.String namespace, java.lang.String pluginName, java.lang.String httpMethod, java.util.Map params) |
|
public UrlCreator |
getReverseMapping(java.lang.String controller, java.lang.String action, java.lang.String namespace, java.lang.String pluginName, java.lang.String httpMethod, java.lang.String version, java.util.Map params) |
|
public UrlCreator |
getReverseMapping(java.lang.String controller, java.lang.String action, java.lang.String namespace, java.lang.String pluginName, java.util.Map params)
|
|
public UrlCreator |
getReverseMappingNoDefault(java.lang.String controller, java.lang.String action, java.util.Map params) |
|
public UrlCreator |
getReverseMappingNoDefault(java.lang.String controller, java.lang.String action, java.lang.String namespace, java.lang.String pluginName, java.lang.String httpMethod, java.util.Map params) |
|
public UrlCreator |
getReverseMappingNoDefault(java.lang.String controller, java.lang.String action, java.lang.String namespace, java.lang.String pluginName, java.lang.String httpMethod, java.lang.String version, java.util.Map params) |
|
public UrlMapping[] |
getUrlMappings() |
|
public void |
initialize() |
|
protected UrlMapping |
lookupMapping(java.lang.String controller, java.lang.String action, java.lang.String namespace, java.lang.String pluginName, java.lang.String httpMethod, java.lang.String version, java.util.Map params) Performs a match uses reverse mappings to looks up a mapping from the controller, action and params. |
|
public UrlMappingInfo |
match(java.lang.String uri)
|
|
public UrlMappingInfo[] |
matchAll(java.lang.String uri) |
|
public UrlMappingInfo[] |
matchAll(java.lang.String uri, java.lang.String httpMethod) |
|
public UrlMappingInfo[] |
matchAll(java.lang.String uri, java.lang.String httpMethod, java.lang.String version) |
|
public UrlMappingInfo[] |
matchAll(java.lang.String uri, org.springframework.http.HttpMethod httpMethod) |
|
public UrlMappingInfo[] |
matchAll(java.lang.String uri, org.springframework.http.HttpMethod httpMethod, java.lang.String version) |
|
public UrlMappingInfo |
matchStatusCode(int responseCode) |
|
public UrlMappingInfo |
matchStatusCode(int responseCode, java.lang.Throwable e) |
|
public void |
setMaxWeightedCacheCapacity(int maxWeightedCacheCapacity) |
|
public void |
setUrlCreatorMaxWeightedCacheCapacity(int urlCreatorMaxWeightedCacheCapacity) |
|
public java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Performs a match uses reverse mappings to looks up a mapping from the controller, action and params. This is refactored to use a list of mappings identified by only controller and action and then matches the mapping to select the mapping that best matches the params (most possible matches).
controller
- The controller nameaction
- The action namehttpMethod
- The HTTP methodparams
- The params