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

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

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

A DirURLFactory is used to create URLs from an URL (pointing to a directory) and paths. Example : <br/> base : file:/path/<br/> path : META-INF/directory/<br/> results : file:/path/META-INF/directory/<br/>

Author:
Guillaume Sauthier

Definition at line 42 of file DirURLFactory.java.


Constructor & Destructor Documentation

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

Create a new DirURLFactory using the specified base URL.

Parameters:
url the base url. (must be a directory)

Definition at line 52 of file DirURLFactory.java.


Member Function Documentation

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

Returns a new URL basically adding path to the base URL.

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

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

Definition at line 65 of file DirURLFactory.java.


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