org.apache.cocoon.ajax
Class AjaxRequestMatcher

java.lang.Object
  extended by org.apache.cocoon.ajax.AjaxRequestMatcher
All Implemented Interfaces:
Component, ThreadSafe, Matcher

public class AjaxRequestMatcher
extends Object
implements Matcher, ThreadSafe

A matcher that tests if the current request is an Ajax request. This matcher provides no sitemap variables.

Example:

   <map:match type="ajax-request">
     ... ajax request ...
   </map:match>
 

Since:
2.1.8
Version:
$Id: AjaxRequestMatcher.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.cocoon.matching.Matcher
ROLE
 
Constructor Summary
AjaxRequestMatcher()
           
 
Method Summary
 Map match(String pattern, Map objectModel, Parameters parameters)
          Matches the pattern against some Request values and returns a Map object with replacements for wildcards contained in the pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxRequestMatcher

public AjaxRequestMatcher()
Method Detail

match

public Map match(String pattern,
                 Map objectModel,
                 Parameters parameters)
          throws PatternException
Description copied from interface: Matcher
Matches the pattern against some Request values and returns a Map object with replacements for wildcards contained in the pattern.

Specified by:
match in interface Matcher
Parameters:
pattern - The pattern to match against. Depending on the implementation the pattern can contain wildcards or regular expressions.
objectModel - The Map with object of the calling environment which can be used to select values this matchers matches against.
Returns:
Map The returned Map object with replacements for wildcards/regular-expressions contained in the pattern. If the return value is null there was no match.
Throws:
PatternException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.