org.jasig.cas.client.authentication
Class ContainsPatternUrlPatternMatcherStrategy

java.lang.Object
  extended by org.jasig.cas.client.authentication.ContainsPatternUrlPatternMatcherStrategy
All Implemented Interfaces:
UrlPatternMatcherStrategy

public final class ContainsPatternUrlPatternMatcherStrategy
extends Object
implements UrlPatternMatcherStrategy

A pattern matcher that looks inside the url to find the exact pattern specified.

Since:
3.3.1
Author:
Misagh Moayyed

Constructor Summary
ContainsPatternUrlPatternMatcherStrategy()
           
 
Method Summary
 boolean matches(String url)
          Execute the match between the given pattern and the url
 void setPattern(String pattern)
          The pattern against which the url is compared
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainsPatternUrlPatternMatcherStrategy

public ContainsPatternUrlPatternMatcherStrategy()
Method Detail

matches

public boolean matches(String url)
Description copied from interface: UrlPatternMatcherStrategy
Execute the match between the given pattern and the url

Specified by:
matches in interface UrlPatternMatcherStrategy
Parameters:
url - the request url typically with query strings included
Returns:
true if match is successful

setPattern

public void setPattern(String pattern)
Description copied from interface: UrlPatternMatcherStrategy
The pattern against which the url is compared

Specified by:
setPattern in interface UrlPatternMatcherStrategy


Copyright © 2006-2015 Jasig. All Rights Reserved.