org.apache.axis.utils
Class URLHashSet
HashSet
org.apache.axis.utils.URLHashSet
public class URLHashSet
extends HashSet
Class URLHashSet
- Davanum Srinivas (dims@apache.org)
boolean | add(URL url) - Adds the specified URL to this set if it is not already present.
|
boolean | contains(URL url) - Returns true if this set contains the specified element.
|
static URL | normalize(URL url) - if the url points to a file then make sure we cleanup ".." "." etc.
|
boolean | remove(URL url) - Removes the given URL from this set if it is present.
|
add
public boolean add(URL url)
Adds the specified URL to this set if it is not already present.
url
- url to be added to this set.
- true if the set did not already contain the specified element.
contains
public boolean contains(URL url)
Returns true if this set contains the specified element.
url
- url whose presence in this set is to be tested.
- true if this set contains the specified element.
normalize
public static URL normalize(URL url)
if the url points to a file then make sure we cleanup ".." "." etc.
url
- url to be normalized
remove
public boolean remove(URL url)
Removes the given URL from this set if it is present.
url
- url to be removed from this set, if present.
- true if the set contained the specified element.
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.