| java.lang.Object winstone.Mapping
Mapping | public class Mapping implements java.util.Comparator(Code) | | Encapsulates the parsing of URL patterns, as well as the mapping of a
url pattern to a servlet instance
author: Rick Knowles version: $Id: Mapping.java,v 1.9 2007/04/23 02:55:35 rickknowles Exp $ |
DEFAULT_SERVLET | final public static int DEFAULT_SERVLET(Code) | | |
EXACT_PATTERN | final public static int EXACT_PATTERN(Code) | | |
EXTENSION_PATTERN | final public static int EXTENSION_PATTERN(Code) | | |
FOLDER_PATTERN | final public static int FOLDER_PATTERN(Code) | | |
compare | public int compare(Object objOne, Object objTwo)(Code) | | Used to compare two url patterns. Always sorts so that lowest pattern
type then longest path come first.
|
createFromLink | public static Mapping createFromLink(String mappedTo, String linkName)(Code) | | Factory constructor method - this turns a servlet name into a mapping element
|
createFromURL | public static Mapping createFromURL(String mappedTo, String pattern)(Code) | | Factory constructor method - this parses the url pattern into pieces we can use to match
against incoming URLs.
|
getPatternType | public int getPatternType()(Code) | | |
match | public boolean match(String inputPattern, StringBuffer servletPath, StringBuffer pathInfo)(Code) | | Try to match this pattern against the incoming url
Parameters: inputPattern - The URL we want to check for a match Parameters: servletPath - An empty stringbuffer for the servletPath of a successful match Parameters: pathInfo - An empty stringbuffer for the pathInfo of a successful match true if the match is successful |
|
|