info.magnolia.cms.filters
Class Mapping

java.lang.Object
  extended by info.magnolia.cms.filters.Mapping

public class Mapping
extends Object

A URI mapping as configured for filters and servlets.

Version:
$Id$

Nested Class Summary
static class Mapping.MatchingResult
          Result of ThemeReader match(HttpServletRequest) method.
 
Field Summary
protected  Collection<Pattern> mappings
           
 
Constructor Summary
Mapping()
           
 
Method Summary
 void addMapping(String mapping)
          See SRV.11.2 Specification of Mappings in the Servlet Specification for the syntax of mappings.
protected static String escapeMetaCharacters(String str)
           
 Collection<Pattern> getMappings()
           
 Mapping.MatchingResult match(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mappings

protected Collection<Pattern> mappings
Constructor Detail

Mapping

public Mapping()
Method Detail

escapeMetaCharacters

protected static String escapeMetaCharacters(String str)

match

public Mapping.MatchingResult match(javax.servlet.http.HttpServletRequest request)

getMappings

public Collection<Pattern> getMappings()

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)



Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.