Class FileNameUtils


  • public final class FileNameUtils
    extends Object
    Common utilities used by the WGetMojo
    • Constructor Detail

      • FileNameUtils

        public FileNameUtils()
    • Method Detail

      • getOutputFileName

        public static String getOutputFileName​(URI uri)
        Attempts to construct the target file name based on an URI as the relative resource name or, if the root resource is requested, the host name extracted from the URI.
        Parameters:
        uri - uri to extract the output name from
        Returns:
        output file name based on the URI