org.jboss.net.protocol
Class URLListerFactory

java.lang.Object
  extended byorg.jboss.net.protocol.URLListerFactory

public class URLListerFactory
extends java.lang.Object


Constructor Summary
URLListerFactory()
          Create a URLLister with default listers defined for file and http protocols.
 
Method Summary
 URLLister (src) createURLLister(java.lang.String protocol)
          Create a URL lister for the supplied protocol
 URLLister (src) createURLLister(java.net.URL url)
          Create a URL lister using the protocol from the URL
 void registerListener(java.lang.String protocol, java.lang.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

URLListerFactory

public URLListerFactory()
Create a URLLister with default listers defined for file and http protocols.

Method Detail

createURLLister

public URLLister (src)  createURLLister(java.net.URL url)
                          throws java.net.MalformedURLException
Create a URL lister using the protocol from the URL

Parameters:
url - the url defining the protocol
Returns:
a URLLister capable of listing URLs of that protocol
Throws:
java.net.MalformedURLException - if no lister could be found for the protocol

createURLLister

public URLLister (src)  createURLLister(java.lang.String protocol)
                          throws java.net.MalformedURLException
Create a URL lister for the supplied protocol

Parameters:
protocol - the protocol
Returns:
a URLLister capable of listing URLs of that protocol
Throws:
java.net.MalformedURLException - if no lister could be found for the protocol

registerListener

public void registerListener(java.lang.String protocol,
                             java.lang.String className)
Register a URLLister class for a given protocol

Parameters:
protocol - the protocol this class will handle
className - the URLLister implementation to instanciate