Package org.exoplatform.caldav.client
Class CalDavEndpoint
java.lang.Object
org.exoplatform.caldav.client.CalDavEndpoint
Where a CalDAV conversation is allowed to go: the scheme and authority of
one administrator-declared server, plus the account's base collection path
on it. This class is the client's registry-only containment made
structural — its only constructor is package-private, so the single place
an endpoint can be minted is
HttpCalDavClient.endpoint(Long, String),
which resolves the target exclusively from the server registry (and its
legacy deployment-property fallback). No caller outside this package can
hand the client a URL of its own choosing, which is the same containment
style as the relay resolving targets only from registry rows.-
Method Summary
Modifier and TypeMethodDescriptionName of the credentials provider the registration is configured with — enough, withgetExoLogin(), to rebuild a credentials context for every request without reading the registry again.The server-absolute path of the account base — hrefs the server answers (BlueMind roots its own at/dav/) are resolved against this endpoint's authority, never against a caller-supplied one.The account's base URI on the declared server — where discovery starts.The eXo login this endpoint was minted for.The registry row this endpoint was resolved from.toString()Names the endpoint without ever naming credentials — safe in logs.
-
Method Details
-
getServerId
The registry row this endpoint was resolved from.- Returns:
- the row id, or null when the legacy property resolved the URL
-
getBaseUri
The account's base URI on the declared server — where discovery starts.- Returns:
- the absolute base URI
-
getBasePath
The server-absolute path of the account base — hrefs the server answers (BlueMind roots its own at/dav/) are resolved against this endpoint's authority, never against a caller-supplied one.- Returns:
- the raw base path, always starting with a slash
-
getAuthProviderName
Name of the credentials provider the registration is configured with — enough, withgetExoLogin(), to rebuild a credentials context for every request without reading the registry again.- Returns:
- the provider name, or null when this endpoint was minted from a DAV account name rather than for an eXo user
-
getExoLogin
The eXo login this endpoint was minted for. Deliberately the login and not the DAV account: it is what a credentials context identifies a user by, and what a provider resolves its own view of that user from.- Returns:
- the eXo login, or null when this endpoint was minted from a DAV account name
-
toString
Names the endpoint without ever naming credentials — safe in logs.
-