Enum PathResolver.Defaults

    • 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 name
        NullPointerException - 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 interface PathResolver
        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 interface PathResolver
        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 interface PathResolver
        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 interface PathResolver
        Parameters:
        calendarId - a username
        Returns:
        the principal path for a server implementation