Class ServletUtils

    • Method Detail

      • expandRelative

        public static String expandRelative​(ServletConfig config,
                                            String text)
        Expands a string that points to a relative path or path list, leaving it as an absolute path based on the servlet context. It will return null if the text is empty or the config object is null.
        Parameters:
        config - The ServletConfig.
        text - The String containing a path or path list.
        Returns:
        A String with the expanded path or path list.