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

The following examples show how to use com.sun.org.apache.xalan.internal.utils.FeatureManager. These examples are extracted from open source projects. 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
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
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
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
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
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 Project: jdk1.8-source-analysis   Source File: XSLTC.java    License: 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<>();
}
 
Example 7
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 8
Source Project: jdk1.8-source-analysis   Source File: XPathImpl.java    License: 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 9
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 10
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 11
Source Project: jdk1.8-source-analysis   Source File: XPathFactoryImpl.java    License: 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 12
Source Project: jdk8u60   Source File: XSLTC.java    License: 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 13
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 Project: jdk8u60   Source File: XPathImpl.java    License: 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 15
Source Project: jdk8u60   Source File: XPathExpressionImpl.java    License: 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 16
Source Project: jdk8u60   Source File: XPathExpressionImpl.java    License: 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 Project: jdk8u60   Source File: XPathFactoryImpl.java    License: 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 18
Source Project: hottub   Source File: XSLTC.java    License: 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 19
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 Project: hottub   Source File: XPathImpl.java    License: 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 21
Source Project: hottub   Source File: XPathExpressionImpl.java    License: 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 22
Source Project: hottub   Source File: XPathExpressionImpl.java    License: 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 23
Source Project: hottub   Source File: XPathFactoryImpl.java    License: 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 24
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 25
Source Project: openjdk-8-source   Source File: XPathImpl.java    License: 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 26
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 27
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 28
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 29
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 Project: openjdk-8   Source File: XPathImpl.java    License: 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;
}