Class ParserSettings


  • public class ParserSettings
    extends java.lang.Object
    Contains settings to be used by the Parser while parsing JNLP files. Immutable and therefore thread-safe.
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserSettings()
      Create a new ParserSettings with the default parser settings
      ParserSettings​(boolean strict, boolean extensionAllowed, boolean malformedXmlAllowed)
      Create a new ParserSettings object
    • Field Detail

      • isStrict

        private final boolean isStrict
      • extensionAllowed

        private final boolean extensionAllowed
      • malformedXmlAllowed

        private final boolean malformedXmlAllowed
    • Constructor Detail

      • ParserSettings

        public ParserSettings()
        Create a new ParserSettings with the default parser settings
      • ParserSettings

        public ParserSettings​(boolean strict,
                              boolean extensionAllowed,
                              boolean malformedXmlAllowed)
        Create a new ParserSettings object
        Parameters:
        strict - true if parser should be strict
        extensionAllowed - true if extensions are allowed
        malformedXmlAllowed - true if xml sanitizer should be used
    • Method Detail

      • isExtensionAllowed

        boolean isExtensionAllowed()
        Returns:
        true if extensions to the spec are allowed
      • getParserType

        ParserType getParserType()
        Returns:
        true if parsing malformed xml is allowed
      • isStrict

        boolean isStrict()
        Returns:
        true if strict parsing mode is to be used