org.jasig.cas.client.authentication
Class ExactUrlPatternMatcherStrategy

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

public final class ExactUrlPatternMatcherStrategy
extends Object
implements UrlPatternMatcherStrategy

A pattern matcher that produces a successful match if the pattern specified matches the given url exactly and equally.

Since:
3.3.1
Author:
Misagh Moayyed

Constructor Summary
ExactUrlPatternMatcherStrategy()
           
ExactUrlPatternMatcherStrategy(String pattern)
           
 
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

ExactUrlPatternMatcherStrategy

public ExactUrlPatternMatcherStrategy()

ExactUrlPatternMatcherStrategy

public ExactUrlPatternMatcherStrategy(String pattern)
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.