org.objectweb.jonas_lib.loader.factory.JarURLFactory Class Reference

Inherits org.objectweb.jonas_lib.loader.factory.URLFactory.

Inheritance diagram for org.objectweb.jonas_lib.loader.factory.JarURLFactory:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_lib.loader.factory.JarURLFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JarURLFactory (URL url)
URL getURL (String path) throws IOException

Detailed Description

A JarURLFactory is used to create URLs from a JarURL (jar:XXX) and paths. Example : <br/> base : file:lib.jar</code><br/> path : META-INF/directory/<br/> results : jar:file:lib.jar!/META-INF/directory/<br/>

Author:
Guillaume Sauthier

Definition at line 42 of file JarURLFactory.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.loader.factory.JarURLFactory.JarURLFactory URL  url  ) 
 

Create a new JarURLFactory using the specified base URL.

Parameters:
url the base url. (must be a Jar archive)

Definition at line 60 of file JarURLFactory.java.


Member Function Documentation

URL org.objectweb.jonas_lib.loader.factory.JarURLFactory.getURL String  path  )  throws IOException [virtual]
 

Returns a new URL basically adding path to the base URL. returns the base URL when "" is used as parameter.

Parameters:
path the path to add to the URL. (must not start with "/")
Returns:
a new URL of the form jar:<base>!/<path>.
Exceptions:
IOException when created URL is invalid.

Implements org.objectweb.jonas_lib.loader.factory.URLFactory.

Definition at line 74 of file JarURLFactory.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:13:08 2005 for JOnAS by  doxygen 1.3.9.1