com.atlassian.security.auth.trustedapps
Class DefaultURLMatcher

java.lang.Object
  extended bycom.atlassian.security.auth.trustedapps.DefaultURLMatcher
All Implemented Interfaces:
URLMatcher

public class DefaultURLMatcher
extends java.lang.Object
implements URLMatcher

Takes a set of patterns and assumes a URL matches if it starts with one of the given patterns.


Constructor Summary
DefaultURLMatcher(java.util.Set patterns)
           
 
Method Summary
 boolean match(java.lang.String urlPath)
          returns true if the given URL starts with one of the given patterns and false otherwise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultURLMatcher

public DefaultURLMatcher(java.util.Set patterns)
Method Detail

match

public boolean match(java.lang.String urlPath)
returns true if the given URL starts with one of the given patterns and false otherwise

Specified by:
match in interface URLMatcher


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.