public class BasicURLComparator extends Object implements URIComparator
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().| コンストラクタと説明 |
|---|
BasicURLComparator() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
public boolean isCaseInsensitive()
public void setCaseInsensitive(boolean flag)
flag - The caseInsensitive to set.public boolean compare(String uri1, String uri2)
compare インタフェース内 URIComparatoruri1 - first URI to compareuri2 - second URI to compareCopyright © 2012. All Rights Reserved.