public class JCRURLHandler extends URLStreamHandler
JCRURLHandler is the URLStreamHandler for
JCR Repository URLs identified by the scheme jcr.
JCR Repository URLs have not been standardized yet and may only be created
in the context of an existing Session. Therefore this handler
is not globally available and JCR Repository URLs may only be created through
the factory method.
This class is not intended to be subclassed or instantiated by clients.
JCRURLConnection| Modifier and Type | Method and Description |
|---|---|
static URL |
createURL(ClassLoaderWriterImpl writer,
String path)
Creates a new JCR Repository URL for the given session and item path.
|
protected URLConnection |
openConnection(URL url)
Gets a connection object to connect to an JCR Repository URL.
|
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalFormpublic static URL createURL(ClassLoaderWriterImpl writer, String path) throws MalformedURLException
writer - The writer 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.protected URLConnection openConnection(URL url)
openConnection in class URLStreamHandlerurl - The JCR Repository URL to connect to.JCRURLConnection class.JCRURLConnectionCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.