OpenSAML-J 2.4.1-redhat-3

org.opensaml.common.binding.decoding
Class BasicURLComparator

java.lang.Object
  extended by org.opensaml.common.binding.decoding.BasicURLComparator
All Implemented Interfaces:
URIComparator

public class BasicURLComparator
extends Object
implements URIComparator

A basic implementation of URIComparator that compares URL's by canonicalizing them as per SimpleURLCanonicalizer, and then compares the resulting string representations for equality using String equals(). If {link isCaseInsensitive() is true, then the equality test is instead performed using String equalsIgnoreCase().


Constructor Summary
BasicURLComparator()
           
 
Method Summary
 boolean compare(String uri1, String uri2)
          Compare two URI's (represented as strings) for equivalence.
 boolean isCaseInsensitive()
          Get the case-insensitivity flag value.
 void setCaseInsensitive(boolean flag)
          Set the case-insensitivity flag value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicURLComparator

public BasicURLComparator()
Method Detail

isCaseInsensitive

public boolean isCaseInsensitive()
Get the case-insensitivity flag value.

Returns:
Returns the caseInsensitive.

setCaseInsensitive

public void setCaseInsensitive(boolean flag)
Set the case-insensitivity flag value.

Parameters:
flag - The caseInsensitive to set.

compare

public boolean compare(String uri1,
                       String uri2)
Compare two URI's (represented as strings) for equivalence.

Specified by:
compare in interface URIComparator
Parameters:
uri1 - first URI to compare
uri2 - second URI to compare
Returns:
true if the URI's are equivalent, false otherwise

OpenSAML-J 2.4.1-redhat-3

Copyright © 2006-2012 Internet2. All Rights Reserved.