|
||||||||||
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 String |
REPOSITORY_JAR_SCHEME
The scheme for JCRJar URLs (value is "jar"). |
static String |
REPOSITORY_SCHEME
The scheme for JCR Repository URLs (value is "jcr"). |
Method Summary | |
---|---|
static URL |
createJarURL(Session session,
String path,
String entry)
Creates a new JCRJar URL for the given session, archive and entry. |
static URL |
createURL(Session session,
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 String REPOSITORY_SCHEME
public static final String REPOSITORY_JAR_SCHEME
Method Detail |
---|
public static URL createURL(Session session, String path) throws 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.
MalformedURLException
- If an error occurrs creating the
URL
instance.public static URL createJarURL(Session session, String path, String entry) throws 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.
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 |