biz.hammurapi.web.menu.matchers
Class NotRequestMatcher

java.lang.Object
  extended bybiz.hammurapi.web.menu.matchers.NotRequestMatcher
All Implemented Interfaces:
RequestMatcher

public class NotRequestMatcher
extends java.lang.Object
implements RequestMatcher

Negates match result of master matcher.

Version:
$Revision: 1.1 $
Author:
Pavel Vlasov

Constructor Summary
NotRequestMatcher(RequestMatcher master)
           
 
Method Summary
 java.util.Collection getLastMasterMatchResult()
           
 RequestMatcher getMaster()
           
 int getWeight()
           
 boolean isMatchQueryString()
           
 java.util.List match(javax.servlet.http.HttpServletRequest request)
          Puts self to matched if all of contained matchers match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotRequestMatcher

public NotRequestMatcher(RequestMatcher master)
Method Detail

match

public java.util.List match(javax.servlet.http.HttpServletRequest request)
Puts self to matched if all of contained matchers match.

Specified by:
match in interface RequestMatcher
Parameters:
request -
Returns:
Collection of matched matchers. Returns empty collection if didn't match.

getMaster

public RequestMatcher getMaster()
Returns:
Returns the master.

getLastMasterMatchResult

public java.util.Collection getLastMasterMatchResult()
Returns:
Returns the lastMasterMatchResult.

getWeight

public int getWeight()
Specified by:
getWeight in interface RequestMatcher

isMatchQueryString

public boolean isMatchQueryString()
Specified by:
isMatchQueryString in interface RequestMatcher
Returns:
true if this matcher takes query string in consideration


Copyright © 2006 Hammurapi Group. All Rights Reserved.