Class SecureProcessingConfiguration

All Implemented Interfaces:
XML11Configurable, org.apache.xerces.xni.parser.XMLComponentManager, org.apache.xerces.xni.parser.XMLParserConfiguration, org.apache.xerces.xni.parser.XMLPullParserConfiguration

public final class SecureProcessingConfiguration extends XIncludeAwareParserConfiguration
This configuration enhances Xerces support for the JAXP secure processing feature.
Version:
$Id: SecureProcessingConfiguration.java 1718451 2015-12-07 20:17:23Z mrglavas $
Author:
Michael Glavassevich, IBM
  • Field Details

    • ENTITY_EXPANSION_LIMIT_SYSTEM_VALUE

      protected final int ENTITY_EXPANSION_LIMIT_SYSTEM_VALUE
    • MAX_OCCUR_LIMIT_SYSTEM_VALUE

      protected final int MAX_OCCUR_LIMIT_SYSTEM_VALUE
    • TOTAL_ENTITY_SIZE_LIMIT_SYSTEM_VALUE

      protected final int TOTAL_ENTITY_SIZE_LIMIT_SYSTEM_VALUE
    • MAX_GENERAL_ENTITY_SIZE_LIMIT_SYSTEM_VALUE

      protected final int MAX_GENERAL_ENTITY_SIZE_LIMIT_SYSTEM_VALUE
    • MAX_PARAMETER_ENTITY_SIZE_LIMIT_SYSTEM_VALUE

      protected final int MAX_PARAMETER_ENTITY_SIZE_LIMIT_SYSTEM_VALUE
    • RESOLVE_EXTERNAL_ENTITIES_SYSTEM_VALUE

      protected final boolean RESOLVE_EXTERNAL_ENTITIES_SYSTEM_VALUE
  • Constructor Details

    • SecureProcessingConfiguration

      public SecureProcessingConfiguration()
      Default constructor.
    • SecureProcessingConfiguration

      public SecureProcessingConfiguration(SymbolTable symbolTable)
      Constructs a parser configuration using the specified symbol table.
      Parameters:
      symbolTable - The symbol table to use.
    • SecureProcessingConfiguration

      public SecureProcessingConfiguration(SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
      Constructs a parser configuration using the specified symbol table and grammar pool.

      Parameters:
      symbolTable - The symbol table to use.
      grammarPool - The grammar pool to use.
    • SecureProcessingConfiguration

      public SecureProcessingConfiguration(SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool, org.apache.xerces.xni.parser.XMLComponentManager parentSettings)
      Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.

      Parameters:
      symbolTable - The symbol table to use.
      grammarPool - The grammar pool to use.
      parentSettings - The parent settings.
  • Method Details

    • checkEntitySizeLimits

      protected void checkEntitySizeLimits(int sizeOfEntity, int delta, boolean isPE)
    • getProperty

      public Object getProperty(String propertyId) throws org.apache.xerces.xni.parser.XMLConfigurationException
      Returns the value of a property.
      Specified by:
      getProperty in interface org.apache.xerces.xni.parser.XMLComponentManager
      Specified by:
      getProperty in interface org.apache.xerces.xni.parser.XMLParserConfiguration
      Overrides:
      getProperty in class XML11Configuration
      Parameters:
      propertyId - The property identifier.
      Returns:
      the value of the property
      Throws:
      org.apache.xerces.xni.parser.XMLConfigurationException - Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
    • setProperty

      public void setProperty(String propertyId, Object value) throws org.apache.xerces.xni.parser.XMLConfigurationException
      setProperty
      Specified by:
      setProperty in interface org.apache.xerces.xni.parser.XMLParserConfiguration
      Overrides:
      setProperty in class XML11Configuration
      Parameters:
      propertyId -
      value -
      Throws:
      org.apache.xerces.xni.parser.XMLConfigurationException - If the requested feature is not known.
    • configurePipeline

      protected void configurePipeline()
      Configures the XML 1.0 pipeline.
      Overrides:
      configurePipeline in class XIncludeAwareParserConfiguration
    • configureXML11Pipeline

      protected void configureXML11Pipeline()
      Configures the XML 1.1 pipeline.
      Overrides:
      configureXML11Pipeline in class XIncludeAwareParserConfiguration