Class PathDescriptorHelper


  • @Immutable
    public final class PathDescriptorHelper
    extends Object
    Utility class for API path handling.
    Author:
    Philip Helger
    • Method Detail

      • getCleanPathParts

        @Nonnull
        @ReturnsMutableCopy
        public static com.helger.commons.collection.impl.ICommonsList<String> getCleanPathParts​(@Nonnull
                                                                                                String sPath)
        Clean the provided path and split it into parts, separated by slashes.
        Parameters:
        sPath - Source path. May not be null.
        Returns:
        The list with all path parts. Never null.