jaxp/src/com/sun/org/apache/xerces/internal/jaxp/validation/ValidatorHandlerImpl.java
equal
deleted
inserted
replaced
51 import com.sun.org.apache.xerces.internal.util.SymbolTable; |
51 import com.sun.org.apache.xerces.internal.util.SymbolTable; |
52 import com.sun.org.apache.xerces.internal.util.SecurityManager; |
52 import com.sun.org.apache.xerces.internal.util.SecurityManager; |
53 import com.sun.org.apache.xerces.internal.util.URI; |
53 import com.sun.org.apache.xerces.internal.util.URI; |
54 import com.sun.org.apache.xerces.internal.util.XMLAttributesImpl; |
54 import com.sun.org.apache.xerces.internal.util.XMLAttributesImpl; |
55 import com.sun.org.apache.xerces.internal.util.XMLSymbols; |
55 import com.sun.org.apache.xerces.internal.util.XMLSymbols; |
|
56 import com.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager; |
56 import com.sun.org.apache.xerces.internal.xni.Augmentations; |
57 import com.sun.org.apache.xerces.internal.xni.Augmentations; |
57 import com.sun.org.apache.xerces.internal.xni.NamespaceContext; |
58 import com.sun.org.apache.xerces.internal.xni.NamespaceContext; |
58 import com.sun.org.apache.xerces.internal.xni.QName; |
59 import com.sun.org.apache.xerces.internal.xni.QName; |
59 import com.sun.org.apache.xerces.internal.xni.XMLAttributes; |
60 import com.sun.org.apache.xerces.internal.xni.XMLAttributes; |
60 import com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler; |
61 import com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler; |
132 |
133 |
133 /** Property identifier: validation manager. */ |
134 /** Property identifier: validation manager. */ |
134 private static final String VALIDATION_MANAGER = |
135 private static final String VALIDATION_MANAGER = |
135 Constants.XERCES_PROPERTY_PREFIX + Constants.VALIDATION_MANAGER_PROPERTY; |
136 Constants.XERCES_PROPERTY_PREFIX + Constants.VALIDATION_MANAGER_PROPERTY; |
136 |
137 |
|
138 /** Property identifier: Security property manager. */ |
|
139 private static final String XML_SECURITY_PROPERTY_MANAGER = |
|
140 Constants.XML_SECURITY_PROPERTY_MANAGER; |
|
141 |
137 // |
142 // |
138 // Data |
143 // Data |
139 // |
144 // |
140 |
145 |
141 /** Error reporter. */ |
146 /** Error reporter. */ |
684 } |
689 } |
685 // Ignore the exception if the security manager cannot be set. |
690 // Ignore the exception if the security manager cannot be set. |
686 catch (SAXException exc) {} |
691 catch (SAXException exc) {} |
687 } |
692 } |
688 try { |
693 try { |
|
694 XMLSecurityPropertyManager spm = (XMLSecurityPropertyManager) |
|
695 fComponentManager.getProperty(XML_SECURITY_PROPERTY_MANAGER); |
689 reader.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, |
696 reader.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, |
690 fComponentManager.getProperty(XMLConstants.ACCESS_EXTERNAL_DTD)); |
697 spm.getValue(XMLSecurityPropertyManager.Property.ACCESS_EXTERNAL_DTD)); |
691 } catch (SAXException exc) { |
698 } catch (SAXException exc) { |
692 System.err.println("Warning: " + reader.getClass().getName() + ": " + |
699 System.err.println("Warning: " + reader.getClass().getName() + ": " + |
693 exc.getMessage()); |
700 exc.getMessage()); |
694 } |
701 } |
695 } |
702 } |