|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.net.protocol.URLListerFactory
public class URLListerFactory
| Constructor Summary | |
|---|---|
URLListerFactory()
Create a URLLister with default listers defined for file and http protocols. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLListerFactory()
| Method Detail |
|---|
public URLLister createURLLister(URL url)
throws MalformedURLException
url - the url defining the protocol
MalformedURLException - if no lister could be found for the protocol
public URLLister createURLLister(String protocol)
throws MalformedURLException
protocol - the protocol
MalformedURLException - if no lister could be found for the protocol
public void registerListener(String protocol,
String className)
protocol - the protocol this class will handleclassName - the URLLister implementation to instanciate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||