|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.grails.web.mapping.DefaultUrlMappingData
public class DefaultUrlMappingData
Default implementating of the UrlMappingData interface.
| Constructor Summary | |
|---|---|
DefaultUrlMappingData(String urlPattern)
|
|
| Method Summary | |
|---|---|
String[] |
getLogicalUrls()
Obtains the logical URLs for this URL |
String[] |
getTokens()
Retrieves the tokens that make up a URL. |
String |
getUrlPattern()
Retrieves the URL pattern for this UrlMappingData instance |
boolean |
isOptional(int index)
Returns whether the given token in the URL is optional. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultUrlMappingData(String urlPattern)
| Method Detail |
|---|
public String[] getTokens()
UrlMappingDataRetrieves the tokens that make up a URL. For example the tokens for the URL /blog/2007/* would be "blog", "2007" and "*"
getTokens in interface UrlMappingDatapublic String[] getLogicalUrls()
UrlMappingDataObtains the logical URLs for this URL
getLogicalUrls in interface UrlMappingDatapublic String getUrlPattern()
UrlMappingData
getUrlPattern in interface UrlMappingDatapublic boolean isOptional(int index)
UrlMappingData
isOptional in interface UrlMappingDataindex - The index of the matching token
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||