mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8039533: Higher resolution resolvers
Reviewed-by: lancea, dfuchs, skoivu
This commit is contained in:
parent
23a1b5481b
commit
dbbe5b9419
2 changed files with 13 additions and 11 deletions
|
@ -611,9 +611,9 @@ public class XMLDocumentFragmentScannerImpl
|
|||
//fElementStack2.clear();
|
||||
//fReplaceEntityReferences = true;
|
||||
//fSupportExternalEntities = true;
|
||||
Boolean bo = (Boolean)propertyManager.getProperty(XMLInputFactoryImpl.IS_REPLACING_ENTITY_REFERENCES);
|
||||
Boolean bo = (Boolean)propertyManager.getProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES);
|
||||
fReplaceEntityReferences = bo.booleanValue();
|
||||
bo = (Boolean)propertyManager.getProperty(XMLInputFactoryImpl.IS_SUPPORTING_EXTERNAL_ENTITIES);
|
||||
bo = (Boolean)propertyManager.getProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES);
|
||||
fSupportExternalEntities = bo.booleanValue();
|
||||
Boolean cdata = (Boolean)propertyManager.getProperty(Constants.ZEPHYR_PROPERTY_PREFIX + Constants.STAX_REPORT_CDATA_EVENT) ;
|
||||
if(cdata != null)
|
||||
|
|
|
@ -305,10 +305,10 @@ public class XMLEntityManager implements XMLComponent, XMLEntityResolver {
|
|||
/** Property Manager. This is used from Stax */
|
||||
protected PropertyManager fPropertyManager ;
|
||||
|
||||
/** StAX properties */
|
||||
boolean fSupportDTD = true;
|
||||
boolean fReplaceEntityReferences = true;
|
||||
boolean fSupportExternalEntities = true;
|
||||
/** StAX properties */
|
||||
boolean fSupportDTD = true;
|
||||
boolean fReplaceEntityReferences = true;
|
||||
boolean fSupportExternalEntities = true;
|
||||
|
||||
/** used to restrict external access */
|
||||
protected String fAccessExternalDTD = EXTERNAL_ACCESS_DEFAULT;
|
||||
|
@ -1438,8 +1438,8 @@ public class XMLEntityManager implements XMLComponent, XMLEntityResolver {
|
|||
}
|
||||
|
||||
fSupportDTD = ((Boolean)propertyManager.getProperty(XMLInputFactory.SUPPORT_DTD)).booleanValue();
|
||||
fReplaceEntityReferences = ((Boolean)propertyManager.getProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES)).booleanValue();
|
||||
fSupportExternalEntities = ((Boolean)propertyManager.getProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES)).booleanValue();
|
||||
fReplaceEntityReferences = ((Boolean)propertyManager.getProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES)).booleanValue();
|
||||
fSupportExternalEntities = ((Boolean)propertyManager.getProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES)).booleanValue();
|
||||
|
||||
// Zephyr feature ignore-external-dtd is the opposite of Xerces' load-external-dtd
|
||||
fLoadExternalDTD = !((Boolean)propertyManager.getProperty(Constants.ZEPHYR_PROPERTY_PREFIX + Constants.IGNORE_EXTERNAL_DTD)).booleanValue();
|
||||
|
@ -1511,10 +1511,12 @@ public class XMLEntityManager implements XMLComponent, XMLEntityResolver {
|
|||
fValidationManager = (ValidationManager)componentManager.getProperty(VALIDATION_MANAGER, null);
|
||||
fSecurityManager = (XMLSecurityManager)componentManager.getProperty(SECURITY_MANAGER, null);
|
||||
entityExpansionIndex = fSecurityManager.getIndex(Constants.JDK_ENTITY_EXPANSION_LIMIT);
|
||||
|
||||
//StAX Property
|
||||
fSupportDTD = true;
|
||||
fReplaceEntityReferences = true;
|
||||
fSupportExternalEntities = true;
|
||||
fSupportDTD = true;
|
||||
fReplaceEntityReferences = true;
|
||||
fSupportExternalEntities = true;
|
||||
|
||||
// JAXP 1.5 feature
|
||||
XMLSecurityPropertyManager spm = (XMLSecurityPropertyManager) componentManager.getProperty(XML_SECURITY_PROPERTY_MANAGER, null);
|
||||
if (spm == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue