|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.jonas_lib.loader.factory.URLFactory
public abstract class URLFactory
An URLFactory is used to create a URL from a base URL.
| Constructor Summary | |
|---|---|
URLFactory()
|
|
| Method Summary | |
|---|---|
static URLFactory |
getFactory(java.net.URL url)
Return a new URLFactory in function of the URL type. |
abstract java.net.URL |
getURL(java.lang.String path)
Returns a new URL basically adding path to the base URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLFactory()
| Method Detail |
|---|
public abstract java.net.URL getURL(java.lang.String path)
throws java.io.IOException
path - the path to add to the URL.
java.io.IOException - when created URL is invalid.
public static URLFactory getFactory(java.net.URL url)
throws java.io.IOException
JarURLFactory
and an URL pointing to a directory file will return a DirURLFactory.
url - the base URL
java.io.IOException - when cannot find a specialized factory for the given URL.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||