Package net.fortuna.ical4j.connector.dav
Enum PathResolver
- java.lang.Object
-
- java.lang.Enum<PathResolver>
-
- net.fortuna.ical4j.connector.dav.PathResolver
-
- All Implemented Interfaces:
Serializable
,Comparable<PathResolver>
public enum PathResolver extends Enum<PathResolver>
Implementations resolve host path elements.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPrincipalPath(String username)
Resolves the path component for a principal URL.String
getUserPath(String username)
Resolves the path component for a user's calendar store URL.static PathResolver
valueOf(String name)
Returns the enum constant of this type with the specified name.static PathResolver[]
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 CHANDLER
-
RADICALE
public static final PathResolver RADICALE
-
BAIKAL
public static final PathResolver BAIKAL
-
CGP
public static final PathResolver CGP
-
KMS
public static final PathResolver KMS
-
ZIMBRA
public static final PathResolver ZIMBRA
-
ICAL_SERVER
public static final PathResolver ICAL_SERVER
-
CALENDAR_SERVER
public static final PathResolver CALENDAR_SERVER
-
GCAL
public static final PathResolver GCAL
-
SOGO
public static final PathResolver SOGO
-
DAVICAL
public static final PathResolver DAVICAL
-
BEDEWORK
public static final PathResolver BEDEWORK
-
ORACLE_CS
public static final PathResolver ORACLE_CS
-
GENERIC
public static final PathResolver GENERIC
-
-
Method Detail
-
values
public static PathResolver[] 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 c : PathResolver.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 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
-
getUserPath
public String getUserPath(String username)
Resolves the path component for a user's calendar store URL.- Parameters:
username
- a username- Returns:
- the user path for a server implementation
-
-