|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.net.URLFactory
public final class URLFactory
The URLFactory class provides factory methods for creating
JCR Repository and JCRJar URLs.
This class is not intended to be subclassed or instantiated by clients.
| Field Summary | |
|---|---|
static java.lang.String |
REPOSITORY_JAR_SCHEME
The scheme for JCRJar URLs (value is "jar"). |
static java.lang.String |
REPOSITORY_SCHEME
The scheme for JCR Repository URLs (value is "jcr"). |
| Method Summary | |
|---|---|
static java.net.URL |
createJarURL(javax.jcr.Session session,
java.lang.String path,
java.lang.String entry)
Creates a new JCRJar URL for the given session, archive and entry. |
static java.net.URL |
createURL(javax.jcr.Session session,
java.lang.String path)
Creates a new JCR Repository URL for the given session and item path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REPOSITORY_SCHEME
public static final java.lang.String REPOSITORY_JAR_SCHEME
| Method Detail |
|---|
public static java.net.URL createURL(javax.jcr.Session session,
java.lang.String path)
throws java.net.MalformedURLException
session - The repository session providing access to the item.path - The absolute path to the item. This must be an absolute
path with a leading slash character. If this is null
the root node path - / - is assumed.
java.net.MalformedURLException - If an error occurrs creating the
URL instance.
public static java.net.URL createJarURL(javax.jcr.Session session,
java.lang.String path,
java.lang.String entry)
throws java.net.MalformedURLException
session - The repository session providing access to the archive.path - The absolute path to the archive. This must either be the
property containing the archive or an item which resolves to such
a property through its primary item chain. This must be an absolute
path with a leading slash character. If this is null
the root node path - / - is assumed.entry - The entry within the archive. If null, the URL
provides access to the archive itself.
java.net.MalformedURLException - If an error occurrs creating the
URL instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||