
public class URLSelector extends Object implements URLSelectorStrategy
| Constructor and Description |
|---|
URLSelector()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
active()
Get the active URL
|
void |
fail(String url)
Fail an URL - e.g.
|
String |
getData()
Get the data for an error presentation
|
boolean |
hasMore()
Does the plugin has more valid URLs ?
|
void |
init(List<String> urls)
Init the plugin with the URLs
|
void |
reset()
Reset the plugin
|
String |
toString() |
public void init(List<String> urls)
init in interface URLSelectorStrategyurls - The URLspublic boolean hasMore()
hasMore in interface URLSelectorStrategypublic String active()
active in interface URLSelectorStrategypublic void fail(String url)
fail in interface URLSelectorStrategyurl - The URLpublic void reset()
reset in interface URLSelectorStrategypublic String getData()
getData in interface URLSelectorStrategyCopyright © 2014 IronJacamar (http://www.ironjacamar.org)