|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.mapping.DefaultUrlMappingsHolder
@SuppressWarnings("rawtypes") public class DefaultUrlMappingsHolder extends java.lang.Object
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.
Constructor Summary | |
DefaultUrlMappingsHolder(java.util.List mappings)
|
|
DefaultUrlMappingsHolder(java.util.List mappings, java.util.List excludePatterns)
|
|
DefaultUrlMappingsHolder(java.util.List mappings, java.util.List excludePatterns, boolean doNotCallInit)
|
Method Summary | |
---|---|
java.util.List
|
getExcludePatterns()
|
UrlCreator
|
getReverseMapping(java.lang.String controller, java.lang.String action, java.util.Map params)
|
UrlCreator
|
getReverseMapping(java.lang.String controller, java.lang.String action, java.lang.String pluginName, java.util.Map params)
@see UrlMappingsHolder#getReverseMapping(String, String, java.util.Map) |
UrlCreator
|
getReverseMappingNoDefault(java.lang.String controller, java.lang.String action, java.util.Map params)
|
UrlCreator
|
getReverseMappingNoDefault(java.lang.String controller, java.lang.String action, java.lang.String pluginName, java.util.Map params)
|
UrlMapping[]
|
getUrlMappings()
|
void
|
initialize()
|
protected UrlMapping
|
lookupMapping(java.lang.String controller, java.lang.String action, java.lang.String pluginName, java.util.Map params)
Performs a match uses reverse mappings to looks up a mapping from the controller, action and params. |
UrlMappingInfo
|
match(java.lang.String uri)
|
UrlMappingInfo[]
|
matchAll(java.lang.String uri)
|
UrlMappingInfo[]
|
matchAll(java.lang.String uri, java.lang.String httpMethod)
|
UrlMappingInfo
|
matchStatusCode(int responseCode)
|
UrlMappingInfo
|
matchStatusCode(int responseCode, java.lang.Throwable e)
|
void
|
setMaxWeightedCacheCapacity(int maxWeightedCacheCapacity)
|
void
|
setUrlCreatorMaxWeightedCacheCapacity(int urlCreatorMaxWeightedCacheCapacity)
|
java.lang.String
|
toString()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Constructor Detail |
---|
public DefaultUrlMappingsHolder(java.util.List mappings)
public DefaultUrlMappingsHolder(java.util.List mappings, java.util.List excludePatterns)
public DefaultUrlMappingsHolder(java.util.List mappings, java.util.List excludePatterns, boolean doNotCallInit)
Method Detail |
---|
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 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 pluginName, java.util.Map params)
public UrlMapping[] getUrlMappings()
public void initialize()
final String actionName = lookupKey.action; protected UrlMapping lookupMapping(java.lang.String controller, java.lang.String action, java.lang.String pluginName, java.util.Map params)
controller
- The controller nameaction
- The action nameparams
- The 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 matchStatusCode(int responseCode)
public UrlMappingInfo matchStatusCode(int responseCode, java.lang.Throwable e)
public void setMaxWeightedCacheCapacity(int maxWeightedCacheCapacity)
public void setUrlCreatorMaxWeightedCacheCapacity(int urlCreatorMaxWeightedCacheCapacity)
pw.println("------------"); public java.lang.String toString()
Groovy Documentation