info.magnolia.cms.filters
Class Mapping
java.lang.Object
info.magnolia.cms.filters.Mapping
public class Mapping
- extends Object
A URI mapping as configured for filters and servlets.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mapping
public Mapping()
escapeMetaCharacters
protected static String escapeMetaCharacters(String str)
match
public Mapping.MatchingResult match(javax.servlet.http.HttpServletRequest request)
getMappings
public Collection<Pattern> getMappings()
setMappings
public void setMappings(Collection<String> mappings)
addMapping
public void addMapping(String mapping)
- See SRV.11.2 Specification of Mappings in the Servlet Specification for the syntax of
mappings. Additionally, you can also use plain regular expressions to map your servlets, by
prefix the mapping by "regex:". (in which case anything in the request url following the
expression's match will be the pathInfo - if your pattern ends with a $, extra pathInfo won't
match)
servletMappingToRegex
protected Pattern servletMappingToRegex(String mapping)
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.