Class WebXmlParser


  • public class WebXmlParser
    extends Object
    • Method Detail

      • getErrorPages

        public static Map<String,​String> getErrorPages​(ExternalContext context)
        Parses the web.xml and web-fragements.xml for error pages. "null" as key represents the default error page. Otherwise, the key is the exception class.
        Parameters:
        context - the External Context or NULL if checking current classload
        Returns:
        a Map of Exception to XHTML pages