public class RepositoryAddress
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JCR_ROOT
the (virtual) jcr root.
|
| Constructor and Description |
|---|
RepositoryAddress(java.lang.String uri)
Creates a new default repository address.
|
RepositoryAddress(java.net.URI uri)
Creates a new default repository address.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Credentials |
getCredentials()
Returns JCR credentials from the URI or
null if no user info
is specified. |
java.lang.String |
getPath()
Returns the path to a repository item.
|
java.net.URI |
getSpecificURI()
Returns the specific part of the uri, i.e.
|
java.net.URI |
getURI()
Returns the uri of this address
|
java.lang.String |
getWorkspace()
Returns the name of the workspace or
null if the default
workspace is used. |
int |
hashCode() |
RepositoryAddress |
resolve(java.lang.String path)
Returns a new repository address with the given path.
|
java.lang.String |
toString() |
public static final java.lang.String JCR_ROOT
public RepositoryAddress(java.lang.String uri)
throws java.net.URISyntaxException
uri - the urijava.net.URISyntaxException - if the uri is not validpublic RepositoryAddress(java.net.URI uri)
throws java.net.URISyntaxException
uri - the urijava.net.URISyntaxException - if the uri is not validpublic java.net.URI getURI()
public RepositoryAddress resolve(java.lang.String path)
path - the path to include in the new addresspublic java.lang.String getWorkspace()
null if the default
workspace is used.nullpublic java.net.URI getSpecificURI()
public java.lang.String getPath()
public Credentials getCredentials()
null if no user info
is specified.public java.lang.String toString()
toString in class java.lang.ObjectgetURI().toString() with obfuscated user infopublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"