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
|
void |
success(String url)
URL was accepted - potentially mark it as active
|
String |
toString() |
public void init(List<String> urls)
init
in interface URLSelectorStrategy
urls
- The URLspublic boolean hasMore()
hasMore
in interface URLSelectorStrategy
public String active()
active
in interface URLSelectorStrategy
public void fail(String url)
fail
in interface URLSelectorStrategy
url
- The URLpublic void success(String url)
success
in interface URLSelectorStrategy
public void reset()
reset
in interface URLSelectorStrategy
public String getData()
getData
in interface URLSelectorStrategy
Copyright © 2021 JBoss by Red Hat. All rights reserved.