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(@Nonnull java.lang.String uri) throws java.net.URISyntaxException
uri
- the urijava.net.URISyntaxException
- if the uri is not validpublic RepositoryAddress(@Nonnull java.net.URI uri) throws java.net.URISyntaxException
uri
- the urijava.net.URISyntaxException
- if the uri is not valid@Nonnull public java.net.URI getURI()
@Nonnull public RepositoryAddress resolve(@CheckForNull java.lang.String path)
path
- the path to include in the new address@CheckForNull public java.lang.String getWorkspace()
null
if the default
workspace is used.null
@Nonnull public java.net.URI getSpecificURI()
@Nonnull public java.lang.String getPath()
@CheckForNull public Credentials getCredentials()
null
if no user info
is specified.@Nonnull public java.lang.String toString()
toString
in class java.lang.Object
getURI().toString()
with obfuscated user infopublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved