public class ResponseCodeMappingData extends java.lang.Object implements UrlMappingData
| Constructor and Description |
|---|
ResponseCodeMappingData(java.lang.String responseCode) |
| Modifier and Type | Method and Description |
|---|---|
UrlMappingData |
createRelative(java.lang.String path)
Creates a new UrlMappingData instance relative to this one for the given path
|
java.lang.String[] |
getLogicalUrls()
Obtains the logical URLs for this URL
|
int |
getResponseCode() |
java.lang.String[] |
getTokens()
Retrieves the tokens that make up a URL.
|
java.lang.String |
getUrlPattern()
Retrieves the URL pattern for this UrlMappingData instance
|
boolean |
hasOptionalExtension() |
boolean |
isOptional(int index)
Returns whether the given token in the URL is optional.
|
public ResponseCodeMappingData(java.lang.String responseCode)
public java.lang.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 java.lang.String[] getLogicalUrls()
UrlMappingDataObtains the logical URLs for this URL
getLogicalUrls in interface UrlMappingDatapublic java.lang.String getUrlPattern()
UrlMappingDatagetUrlPattern in interface UrlMappingDatapublic boolean isOptional(int index)
UrlMappingDataisOptional in interface UrlMappingDataindex - The index of the matching tokenpublic UrlMappingData createRelative(java.lang.String path)
UrlMappingDatacreateRelative in interface UrlMappingDatapath - The pathpublic boolean hasOptionalExtension()
hasOptionalExtension in interface UrlMappingDatapublic int getResponseCode()