|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_lib.loader.factory.URLFactory org.objectweb.jonas_lib.loader.factory.DirURLFactory
public class DirURLFactory
A DirURLFactory
is used to create URLs
from an URL (pointing to a directory) and paths.
Example :
base : file:/path/
path : META-INF/directory/
results : file:/path/META-INF/directory/
Constructor Summary | |
---|---|
DirURLFactory(java.net.URL url)
Create a new DirURLFactory using the specified base URL. |
Method Summary | |
---|---|
java.net.URL |
getURL(java.lang.String path)
Returns a new URL basically adding path to the base URL. |
Methods inherited from class org.objectweb.jonas_lib.loader.factory.URLFactory |
---|
getFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirURLFactory(java.net.URL url)
url
- the base url. (must be a directory)Method Detail |
---|
public java.net.URL getURL(java.lang.String path) throws java.io.IOException
getURL
in class URLFactory
path
- the path to add to the URL. (must not start with "/")
java.io.IOException
- when created URL is invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |