org.gcube.common.scan.scanners.url
Interface URLScanner

All Known Implementing Classes:
AbstractJarURLScanner, DirScanner, ExcludeScanner, JarFileScanner, JarJarScanner

public interface URLScanner

Scans URLs for ClasspathResources.

Author:
Fabio Simeoni

Method Summary
 Set<URL> additional(URL url)
          Returns additional URLs to be scanned in addition to a given URL.
 boolean handles(URL url)
          Returns true if this handler can scan a given URL.
 Collection<ClasspathResource> scan(URL url)
          Scans a given URL for ClasspathResources.
 

Method Detail

handles

boolean handles(URL url)
Returns true if this handler can scan a given URL.

Parameters:
url - the URL
Returns:
true if this handler can scan the URL

additional

Set<URL> additional(URL url)
                    throws Exception
Returns additional URLs to be scanned in addition to a given URL.

Parameters:
url - the URL
Returns:
the additional URLs
Throws:
Exception - if the additional URLs cannot be derived

scan

Collection<ClasspathResource> scan(URL url)
                                   throws Exception
Scans a given URL for ClasspathResources.

Parameters:
url - the URL
Returns:
the scanned resources
Throws:
Exception - if the URL cannot be scanned


Copyright © 2014. All Rights Reserved.