com.atlassian.jira.util
Class UriMatcher

java.lang.Object
  extended by com.atlassian.jira.util.UriMatcher

public class UriMatcher
extends Object

Utility class for matching URIs.

Since:
v5.0

Constructor Summary
UriMatcher()
           
 
Method Summary
static boolean isBaseEqual(URI baseUri, URI testUri)
          Checks if the testUri belongs to the baseUri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriMatcher

public UriMatcher()
Method Detail

isBaseEqual

public static boolean isBaseEqual(URI baseUri,
                                  URI testUri)
Checks if the testUri belongs to the baseUri. For example, www.foo.com/bar belongs to www.foo.com.

Parameters:
baseUri - the base URI
testUri - the URI to match against the base URI
Returns:
true if the testUri belongs to the baseUri, false if otherwise


Copyright © 2002-2012 Atlassian. All Rights Reserved.