|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jmeter.protocol.http.parser.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()
| Constructor Summary | |
|---|---|
URLCollection(Collection<URLString> c)
Creates a new URLCollection from an existing Collection |
|
| Method Summary | |
|---|---|
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. |
Iterator<URL> |
iterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLCollection(Collection<URLString> c)
c - collection to start with| Method Detail |
|---|
public boolean add(URL u)
u - URL to add
public boolean addURL(String url,
URL baseUrl)
null, empty or URL is malformed, nothing is
done
url - String, may be null or emptybaseUrl - base for url to add information, which might be
missing in url
public Iterator<URL> iterator()
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||