org.apache.tomee.loader
Class UrlSet

java.lang.Object
  extended by org.apache.tomee.loader.UrlSet
All Implemented Interfaces:
Iterable<URL>

public class UrlSet
extends Object
implements Iterable<URL>

Version:
$Rev$ $Date$

Constructor Summary
UrlSet(ClassLoader classLoader)
           
UrlSet(Collection<URL> urls)
          Ignores all URLs that are not "jar" or "file"
UrlSet(URL... urls)
           
 
Method Summary
 UrlSet exclude(ClassLoader parent)
           
 UrlSet exclude(File file)
           
 UrlSet exclude(String pattern)
           
 UrlSet exclude(URL url)
           
 UrlSet exclude(UrlSet urlSet)
           
 UrlSet excludeJavaEndorsedDirs()
          Calls excludePaths(System.getProperty("java.endorsed.dirs"))
 UrlSet excludeJavaExtDirs()
          Calls excludePaths(System.getProperty("java.ext.dirs"))
 UrlSet excludeJavaHome()
           
 UrlSet excludePaths(String pathString)
           
 UrlSet filter(Filter filter)
           
 List<URL> getUrls()
           
 UrlSet include(URL url)
           
 UrlSet include(UrlSet urlSet)
           
 Iterator<URL> iterator()
           
 UrlSet matching(String pattern)
           
 UrlSet relative(File file)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UrlSet

public UrlSet(ClassLoader classLoader)
       throws IOException
Throws:
IOException

UrlSet

public UrlSet(URL... urls)

UrlSet

public UrlSet(Collection<URL> urls)
Ignores all URLs that are not "jar" or "file"

Parameters:
urls -
Method Detail

include

public UrlSet include(UrlSet urlSet)

include

public UrlSet include(URL url)

exclude

public UrlSet exclude(UrlSet urlSet)

exclude

public UrlSet exclude(URL url)

exclude

public UrlSet exclude(ClassLoader parent)
               throws IOException
Throws:
IOException

exclude

public UrlSet exclude(File file)
               throws MalformedURLException
Throws:
MalformedURLException

exclude

public UrlSet exclude(String pattern)
               throws MalformedURLException
Throws:
MalformedURLException

excludeJavaExtDirs

public UrlSet excludeJavaExtDirs()
                          throws MalformedURLException
Calls excludePaths(System.getProperty("java.ext.dirs"))

Returns:
Throws:
MalformedURLException

excludeJavaEndorsedDirs

public UrlSet excludeJavaEndorsedDirs()
                               throws MalformedURLException
Calls excludePaths(System.getProperty("java.endorsed.dirs"))

Returns:
Throws:
MalformedURLException

excludeJavaHome

public UrlSet excludeJavaHome()
                       throws MalformedURLException
Throws:
MalformedURLException

excludePaths

public UrlSet excludePaths(String pathString)
                    throws MalformedURLException
Throws:
MalformedURLException

filter

public UrlSet filter(Filter filter)

matching

public UrlSet matching(String pattern)

relative

public UrlSet relative(File file)
                throws MalformedURLException
Throws:
MalformedURLException

getUrls

public List<URL> getUrls()

size

public int size()

iterator

public Iterator<URL> iterator()
Specified by:
iterator in interface Iterable<URL>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.