public class URLListerFactory extends Object
| Constructor and Description |
|---|
URLListerFactory()
Create a URLLister with default listers defined for file and http
protocols.
|
| Modifier and Type | Method and Description |
|---|---|
URLLister |
createURLLister(String protocol)
Create a URL lister for the supplied protocol
|
URLLister |
createURLLister(URL url)
Create a URL lister using the protocol from the URL
|
void |
registerListener(String protocol,
String className)
Register a URLLister class for a given protocol
|
public URLListerFactory()
public URLLister createURLLister(URL url) throws MalformedURLException
url - the url defining the protocolMalformedURLException - if no lister could be found for the protocolpublic URLLister createURLLister(String protocol) throws MalformedURLException
protocol - the protocolMalformedURLException - if no lister could be found for the protocolCopyright © 2015 JBoss by Red Hat. All rights reserved.