org.apache.jmeter.protocol.http.parser
Class URLCollection
public class URLCollection
Collection class designed for handling URLs
Before a URL is added to the collection, it is wrapped in a URLString class.
The iterator unwraps the URL before return.
N.B. Designed for use by HTMLParser, so is not a full implementation - e.g.
does not support remove()
URLCollection(Collection c) - Creates a new URLCollection from an existing Collection
|
boolean | add(URL u) - Adds the URL to the Collection, first wrapping it in the URLString class
|
boolean | addURL(String url, URL baseUrl) - Convenience method for adding URLs to the collection If the url parameter
is null or empty, nothing is done
|
Iterator | iterator()
|
URLCollection
public URLCollection(Collection c)
Creates a new URLCollection from an existing Collection
add
public boolean add(URL u)
Adds the URL to the Collection, first wrapping it in the URLString class
- boolean condition returned by the add() method of the underlying
collection
addURL
public boolean addURL(String url,
URL baseUrl)
Convenience method for adding URLs to the collection If the url parameter
is null or empty, nothing is done
url
- String, may be null or emptybaseUrl
-
- boolean condition returned by the add() method of the underlying
collection
iterator
public Iterator iterator()
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.