Package net.fortuna.ical4j.connector.dav
Enum PathResolver.Defaults
- java.lang.Object
-
- java.lang.Enum<PathResolver.Defaults>
-
- net.fortuna.ical4j.connector.dav.PathResolver.Defaults
-
- All Implemented Interfaces:
Serializable
,Comparable<PathResolver.Defaults>
,PathResolver
- Enclosing interface:
- PathResolver
public static enum PathResolver.Defaults extends Enum<PathResolver.Defaults> implements PathResolver
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.fortuna.ical4j.connector.dav.PathResolver
PathResolver.Defaults
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPrincipalPath(String calendarId)
Resolves the path component for a principal URL.String
getRepositoryRoot(String resourcePath, String wspPath)
Resolves the path component for a user's calendar store URL.String
getResourcePath(String repositoryPath, String wspPath)
Reverse resolution of a calendar identifier from a repository path.String
getRootPath()
Return the root path for a DAV server implementation.static PathResolver.Defaults
valueOf(String name)
Returns the enum constant of this type with the specified name.static PathResolver.Defaults[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHANDLER
public static final PathResolver.Defaults CHANDLER
-
RADICALE
public static final PathResolver.Defaults RADICALE
-
BAIKAL
public static final PathResolver.Defaults BAIKAL
-
CGP
public static final PathResolver.Defaults CGP
-
KMS
public static final PathResolver.Defaults KMS
-
ZIMBRA
public static final PathResolver.Defaults ZIMBRA
-
ICAL_SERVER
public static final PathResolver.Defaults ICAL_SERVER
-
CALENDAR_SERVER
public static final PathResolver.Defaults CALENDAR_SERVER
-
GCAL
public static final PathResolver.Defaults GCAL
-
SOGO
public static final PathResolver.Defaults SOGO
-
DAVICAL
public static final PathResolver.Defaults DAVICAL
-
BEDEWORK
public static final PathResolver.Defaults BEDEWORK
-
ORACLE_CS
public static final PathResolver.Defaults ORACLE_CS
-
GENERIC
public static final PathResolver.Defaults GENERIC
-
-
Method Detail
-
values
public static PathResolver.Defaults[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PathResolver.Defaults c : PathResolver.Defaults.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PathResolver.Defaults valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getRootPath
public String getRootPath()
Description copied from interface:PathResolver
Return the root path for a DAV server implementation.- Specified by:
getRootPath
in interfacePathResolver
- Returns:
- a string representing the root path of a repository URL.
-
getRepositoryRoot
public String getRepositoryRoot(String resourcePath, String wspPath)
Resolves the path component for a user's calendar store URL.- Specified by:
getRepositoryRoot
in interfacePathResolver
- Parameters:
resourcePath
- a username- Returns:
- the user path for a server implementation
-
getResourcePath
public String getResourcePath(String repositoryPath, String wspPath)
Reverse resolution of a calendar identifier from a repository path.- Specified by:
getResourcePath
in interfacePathResolver
- Parameters:
repositoryPath
- a repository path- Returns:
- a calendar id
-
getPrincipalPath
public String getPrincipalPath(String calendarId)
Resolves the path component for a principal URL.- Specified by:
getPrincipalPath
in interfacePathResolver
- Parameters:
calendarId
- a username- Returns:
- the principal path for a server implementation
-
-