站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

URLListerFactory (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.net.protocol
Class URLListerFactory

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

public class URLListerFactory
extends Object


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

URLListerFactory

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

Method Detail

createURLLister

public URLLister createURLLister(URL url)
                          throws 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:
MalformedURLException - if no lister could be found for the protocol

createURLLister

public URLLister createURLLister(String protocol)
                          throws MalformedURLException
Create a URL lister for the supplied protocol

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

registerListener

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

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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.