com.sun.org.apache.xalan.internal.utils.FeatureManager Java Examples

The following examples show how to use com.sun.org.apache.xalan.internal.utils.FeatureManager. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TransformerFactoryImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private TransformerFactoryImpl(boolean useServicesMechanism) {
    this._useServicesMechanism = useServicesMechanism;
    _featureManager = new FeatureManager();

    if (System.getSecurityManager() != null) {
        _isSecureMode = true;
        _isNotSecureProcessing = false;
        _featureManager.setValue(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION,
                FeaturePropertyBase.State.FSP, XalanConstants.FEATURE_FALSE);
    }

    _xmlSecurityPropertyMgr = new XMLSecurityPropertyManager();
    _accessExternalDTD = _xmlSecurityPropertyMgr.getValue(
            Property.ACCESS_EXTERNAL_DTD);
    _accessExternalStylesheet = _xmlSecurityPropertyMgr.getValue(
            Property.ACCESS_EXTERNAL_STYLESHEET);

    //Parser's security manager
    _xmlSecurityManager = new XMLSecurityManager(true);
    //Unmodifiable hash map with loaded external extension functions
    _xsltcExtensionFunctions = null;
}
 
Example #2
Source File: TransformerFactoryImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
private TransformerFactoryImpl(boolean useServicesMechanism) {
    this._useServicesMechanism = useServicesMechanism;
    _featureManager = new FeatureManager();

    if (System.getSecurityManager() != null) {
        _isSecureMode = true;
        _isNotSecureProcessing = false;
        _featureManager.setValue(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION,
                FeaturePropertyBase.State.FSP, XalanConstants.FEATURE_FALSE);
    }

    _xmlSecurityPropertyMgr = new XMLSecurityPropertyManager();
    _accessExternalDTD = _xmlSecurityPropertyMgr.getValue(
            Property.ACCESS_EXTERNAL_DTD);
    _accessExternalStylesheet = _xmlSecurityPropertyMgr.getValue(
            Property.ACCESS_EXTERNAL_STYLESHEET);

    //Parser's security manager
    _xmlSecurityManager = new XMLSecurityManager(true);
    //Unmodifiable hash map with loaded external extension functions
    _xsltcExtensionFunctions = null;
}
 
Example #3
Source File: TransformerFactoryImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
private TransformerFactoryImpl(boolean useServicesMechanism) {
    this._useServicesMechanism = useServicesMechanism;
    _featureManager = new FeatureManager();

    if (System.getSecurityManager() != null) {
        _isSecureMode = true;
        _isNotSecureProcessing = false;
        _featureManager.setValue(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION,
                FeaturePropertyBase.State.FSP, XalanConstants.FEATURE_FALSE);
    }

    _xmlSecurityPropertyMgr = new XMLSecurityPropertyManager();
    _accessExternalDTD = _xmlSecurityPropertyMgr.getValue(
            Property.ACCESS_EXTERNAL_DTD);
    _accessExternalStylesheet = _xmlSecurityPropertyMgr.getValue(
            Property.ACCESS_EXTERNAL_STYLESHEET);

    //Parser's security manager
    _xmlSecurityManager = new XMLSecurityManager(true);
    //Unmodifiable hash map with loaded external extension functions
    _xsltcExtensionFunctions = null;
}
 
Example #4
Source File: TransformerFactoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
private TransformerFactoryImpl(boolean useServicesMechanism) {
    this._useServicesMechanism = useServicesMechanism;
    _featureManager = new FeatureManager();

    if (System.getSecurityManager() != null) {
        _isSecureMode = true;
        _isNotSecureProcessing = false;
        _featureManager.setValue(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION,
                FeaturePropertyBase.State.FSP, XalanConstants.FEATURE_FALSE);
    }

    _xmlSecurityPropertyMgr = new XMLSecurityPropertyManager();
    _accessExternalDTD = _xmlSecurityPropertyMgr.getValue(
            Property.ACCESS_EXTERNAL_DTD);
    _accessExternalStylesheet = _xmlSecurityPropertyMgr.getValue(
            Property.ACCESS_EXTERNAL_STYLESHEET);

    //Parser's security manager
    _xmlSecurityManager = new XMLSecurityManager(true);
}
 
Example #5
Source File: TransformerFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private TransformerFactoryImpl(boolean useServicesMechanism) {
    this._useServicesMechanism = useServicesMechanism;
    _featureManager = new FeatureManager();

    if (System.getSecurityManager() != null) {
        _isSecureMode = true;
        _isNotSecureProcessing = false;
        _featureManager.setValue(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION,
                FeaturePropertyBase.State.FSP, XalanConstants.FEATURE_FALSE);
    }

    _xmlSecurityPropertyMgr = new XMLSecurityPropertyManager();
    _accessExternalDTD = _xmlSecurityPropertyMgr.getValue(
            Property.ACCESS_EXTERNAL_DTD);
    _accessExternalStylesheet = _xmlSecurityPropertyMgr.getValue(
            Property.ACCESS_EXTERNAL_STYLESHEET);

    //Parser's security manager
    _xmlSecurityManager = new XMLSecurityManager(true);
}
 
Example #6
Source File: JAXPExtensionsProvider.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public JAXPExtensionsProvider(XPathFunctionResolver resolver,
    boolean featureSecureProcessing, FeatureManager featureManager ) {
    this.resolver = resolver;
    if (featureSecureProcessing &&
            !featureManager.isFeatureEnabled(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION)) {
        this.extensionInvocationDisabled = true;
    }
}
 
Example #7
Source File: XPathImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
XPathImpl( XPathVariableResolver vr, XPathFunctionResolver fr,
        boolean featureSecureProcessing, boolean useServiceMechanism,
        FeatureManager featureManager) {
    this.origVariableResolver = this.variableResolver = vr;
    this.origFunctionResolver = this.functionResolver = fr;
    this.featureSecureProcessing = featureSecureProcessing;
    this.useServiceMechanism = useServiceMechanism;
    this.featureManager = featureManager;
}
 
Example #8
Source File: XPathFactoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public XPathFactoryImpl(boolean useServicesMechanism) {
    _featureManager = new FeatureManager();
    if (System.getSecurityManager() != null) {
        _isSecureMode = true;
        _isNotSecureProcessing = false;
        _featureManager.setValue(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION,
                FeaturePropertyBase.State.FSP, XalanConstants.FEATURE_FALSE);
    }
    this._useServicesMechanism = useServicesMechanism;
}
 
Example #9
Source File: XPathExpressionImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected XPathExpressionImpl(com.sun.org.apache.xpath.internal.XPath xpath,
        JAXPPrefixResolver prefixResolver,XPathFunctionResolver functionResolver,
        XPathVariableResolver variableResolver, boolean featureSecureProcessing,
        boolean useServicesMechanism, FeatureManager featureManager ) {
    this.xpath = xpath;
    this.prefixResolver = prefixResolver;
    this.functionResolver = functionResolver;
    this.variableResolver = variableResolver;
    this.featureSecureProcessing = featureSecureProcessing;
    this.useServicesMechanism = useServicesMechanism;
    this.featureManager = featureManager;
}
 
Example #10
Source File: XPathExpressionImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
protected XPathExpressionImpl(com.sun.org.apache.xpath.internal.XPath xpath,
        JAXPPrefixResolver prefixResolver,
        XPathFunctionResolver functionResolver,
        XPathVariableResolver variableResolver ) {
    this(xpath, prefixResolver, functionResolver, variableResolver,
         false, true, new FeatureManager());
}
 
Example #11
Source File: XPathImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
XPathImpl( XPathVariableResolver vr, XPathFunctionResolver fr,
        boolean featureSecureProcessing, boolean useServiceMechanism,
        FeatureManager featureManager) {
    this.origVariableResolver = this.variableResolver = vr;
    this.origFunctionResolver = this.functionResolver = fr;
    this.featureSecureProcessing = featureSecureProcessing;
    this.useServiceMechanism = useServiceMechanism;
    this.featureManager = featureManager;
}
 
Example #12
Source File: XPathImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
XPathImpl( XPathVariableResolver vr, XPathFunctionResolver fr,
        boolean featureSecureProcessing, boolean useServiceMechanism,
        FeatureManager featureManager) {
    this.origVariableResolver = this.variableResolver = vr;
    this.origFunctionResolver = this.functionResolver = fr;
    this.featureSecureProcessing = featureSecureProcessing;
    this.useServiceMechanism = useServiceMechanism;
    this.featureManager = featureManager;
}
 
Example #13
Source File: JAXPExtensionsProvider.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public JAXPExtensionsProvider(XPathFunctionResolver resolver,
    boolean featureSecureProcessing, FeatureManager featureManager ) {
    this.resolver = resolver;
    if (featureSecureProcessing &&
            !featureManager.isFeatureEnabled(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION)) {
        this.extensionInvocationDisabled = true;
    }
}
 
Example #14
Source File: XPathExpressionImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected XPathExpressionImpl(com.sun.org.apache.xpath.internal.XPath xpath,
        JAXPPrefixResolver prefixResolver,
        XPathFunctionResolver functionResolver,
        XPathVariableResolver variableResolver ) {
    this(xpath, prefixResolver, functionResolver, variableResolver,
         false, true, new FeatureManager());
}
 
Example #15
Source File: XPathFactoryImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public XPathFactoryImpl(boolean useServicesMechanism) {
    _featureManager = new FeatureManager();
    if (System.getSecurityManager() != null) {
        _isSecureMode = true;
        _isNotSecureProcessing = false;
        _featureManager.setValue(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION,
                FeaturePropertyBase.State.FSP, XalanConstants.FEATURE_FALSE);
    }
    this._useServicesMechanism = useServicesMechanism;
}
 
Example #16
Source File: XPathExpressionImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected XPathExpressionImpl(com.sun.org.apache.xpath.internal.XPath xpath,
        JAXPPrefixResolver prefixResolver,XPathFunctionResolver functionResolver,
        XPathVariableResolver variableResolver, boolean featureSecureProcessing,
        boolean useServicesMechanism, FeatureManager featureManager ) {
    this.xpath = xpath;
    this.prefixResolver = prefixResolver;
    this.functionResolver = functionResolver;
    this.variableResolver = variableResolver;
    this.featureSecureProcessing = featureSecureProcessing;
    this.useServicesMechanism = useServicesMechanism;
    this.featureManager = featureManager;
}
 
Example #17
Source File: XPathExpressionImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
protected XPathExpressionImpl(com.sun.org.apache.xpath.internal.XPath xpath,
        JAXPPrefixResolver prefixResolver,
        XPathFunctionResolver functionResolver,
        XPathVariableResolver variableResolver ) {
    this(xpath, prefixResolver, functionResolver, variableResolver,
         false, true, new FeatureManager());
}
 
Example #18
Source File: XPathExpressionImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
protected XPathExpressionImpl(com.sun.org.apache.xpath.internal.XPath xpath,
        JAXPPrefixResolver prefixResolver,XPathFunctionResolver functionResolver,
        XPathVariableResolver variableResolver, boolean featureSecureProcessing,
        boolean useServicesMechanism, FeatureManager featureManager ) {
    this.xpath = xpath;
    this.prefixResolver = prefixResolver;
    this.functionResolver = functionResolver;
    this.variableResolver = variableResolver;
    this.featureSecureProcessing = featureSecureProcessing;
    this.useServicesMechanism = useServicesMechanism;
    this.featureManager = featureManager;
}
 
Example #19
Source File: JAXPExtensionsProvider.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public JAXPExtensionsProvider(XPathFunctionResolver resolver,
    boolean featureSecureProcessing, FeatureManager featureManager ) {
    this.resolver = resolver;
    if (featureSecureProcessing &&
            !featureManager.isFeatureEnabled(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION)) {
        this.extensionInvocationDisabled = true;
    }
}
 
Example #20
Source File: XSLTC.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * XSLTC compiler constructor
 */
public XSLTC(boolean useServicesMechanism, FeatureManager featureManager) {
    _parser = new Parser(this, useServicesMechanism);
    _featureManager = featureManager;
    _extensionClassLoader = null;
    _externalExtensionFunctions = new HashMap<>();
}
 
Example #21
Source File: XPathFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public XPathFactoryImpl(boolean useServicesMechanism) {
    _featureManager = new FeatureManager();
    if (System.getSecurityManager() != null) {
        _isSecureMode = true;
        _isNotSecureProcessing = false;
        _featureManager.setValue(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION,
                FeaturePropertyBase.State.FSP, XalanConstants.FEATURE_FALSE);
    }
    this._useServicesMechanism = useServicesMechanism;
}
 
Example #22
Source File: JAXPExtensionsProvider.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public JAXPExtensionsProvider(XPathFunctionResolver resolver,
    boolean featureSecureProcessing, FeatureManager featureManager ) {
    this.resolver = resolver;
    if (featureSecureProcessing &&
            !featureManager.isFeatureEnabled(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION)) {
        this.extensionInvocationDisabled = true;
    }
}
 
Example #23
Source File: XPathExpressionImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
protected XPathExpressionImpl(com.sun.org.apache.xpath.internal.XPath xpath,
        JAXPPrefixResolver prefixResolver,
        XPathFunctionResolver functionResolver,
        XPathVariableResolver variableResolver ) {
    this(xpath, prefixResolver, functionResolver, variableResolver,
         false, true, new FeatureManager());
}
 
Example #24
Source File: XPathExpressionImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
protected XPathExpressionImpl(com.sun.org.apache.xpath.internal.XPath xpath,
        JAXPPrefixResolver prefixResolver,XPathFunctionResolver functionResolver,
        XPathVariableResolver variableResolver, boolean featureSecureProcessing,
        boolean useServicesMechanism, FeatureManager featureManager ) {
    this.xpath = xpath;
    this.prefixResolver = prefixResolver;
    this.functionResolver = functionResolver;
    this.variableResolver = variableResolver;
    this.featureSecureProcessing = featureSecureProcessing;
    this.useServicesMechanism = useServicesMechanism;
    this.featureManager = featureManager;
}
 
Example #25
Source File: XPathFactoryImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public XPathFactoryImpl(boolean useServicesMechanism) {
    _featureManager = new FeatureManager();
    if (System.getSecurityManager() != null) {
        _isSecureMode = true;
        _isNotSecureProcessing = false;
        _featureManager.setValue(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION,
                FeaturePropertyBase.State.FSP, XalanConstants.FEATURE_FALSE);
    }
    this._useServicesMechanism = useServicesMechanism;
}
 
Example #26
Source File: XPathImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
XPathImpl( XPathVariableResolver vr, XPathFunctionResolver fr,
        boolean featureSecureProcessing, boolean useServiceMechanism,
        FeatureManager featureManager) {
    this.origVariableResolver = this.variableResolver = vr;
    this.origFunctionResolver = this.functionResolver = fr;
    this.featureSecureProcessing = featureSecureProcessing;
    this.useServiceMechanism = useServiceMechanism;
    this.featureManager = featureManager;
}
 
Example #27
Source File: XSLTC.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * XSLTC compiler constructor
 */
public XSLTC(boolean useServicesMechanism, FeatureManager featureManager) {
    _parser = new Parser(this, useServicesMechanism);
    _featureManager = featureManager;
    _extensionClassLoader = null;
    _externalExtensionFunctions = new HashMap<>();
}
 
Example #28
Source File: XPathImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
XPathImpl( XPathVariableResolver vr, XPathFunctionResolver fr,
        boolean featureSecureProcessing, boolean useServiceMechanism,
        FeatureManager featureManager) {
    this.origVariableResolver = this.variableResolver = vr;
    this.origFunctionResolver = this.functionResolver = fr;
    this.featureSecureProcessing = featureSecureProcessing;
    this.useServiceMechanism = useServiceMechanism;
    this.featureManager = featureManager;
}
 
Example #29
Source File: JAXPExtensionsProvider.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public JAXPExtensionsProvider(XPathFunctionResolver resolver,
    boolean featureSecureProcessing, FeatureManager featureManager ) {
    this.resolver = resolver;
    if (featureSecureProcessing &&
            !featureManager.isFeatureEnabled(FeatureManager.Feature.ORACLE_ENABLE_EXTENSION_FUNCTION)) {
        this.extensionInvocationDisabled = true;
    }
}
 
Example #30
Source File: XSLTC.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * XSLTC compiler constructor
 */
public XSLTC(boolean useServicesMechanism, FeatureManager featureManager) {
    _parser = new Parser(this, useServicesMechanism);
    _featureManager = featureManager;
    _extensionClassLoader = null;
    _externalExtensionFunctions = new HashMap<>();
}