Package eu.europa.esig.dss.jaxb.common
Class DocumentBuilderFactoryBuilder
java.lang.Object
eu.europa.esig.dss.jaxb.common.AbstractConfigurator<F>
eu.europa.esig.dss.jaxb.common.AbstractFactoryBuilder<DocumentBuilderFactory>
eu.europa.esig.dss.jaxb.common.DocumentBuilderFactoryBuilder
This class is used to build a
DocumentBuilderFactory-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor building a secure pre-configured instance ofDocumentBuilderFactoryBuilder -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuredDocumentBuilderFactorydisableFeature(String feature) Disables a custom featureenableFeature(String feature) Enables a custom featureInstantiates a pre-configured with security featuresDocumentBuilderFactoryBuilderprotected DocumentBuilderFactoryThis method instantiates the corresponding factory.removeAttribute(String attribute) Removes the attribute from a list of attributes to setsetAttribute(String attribute, Object value) Sets a custom attribute.protected voidsetSecurityAttribute(DocumentBuilderFactory factory, String attribute, Object value) Sets the attribute to the factoryprotected voidsetSecurityFeature(DocumentBuilderFactory factory, String feature, Boolean value) Sets the feature to the factoryMethods inherited from class eu.europa.esig.dss.jaxb.common.AbstractConfigurator
setSecurityAttributes, setSecurityExceptionAlert, setSecurityFeatures
-
Constructor Details
-
DocumentBuilderFactoryBuilder
protected DocumentBuilderFactoryBuilder()Default constructor building a secure pre-configured instance ofDocumentBuilderFactoryBuilder
-
-
Method Details
-
getSecureDocumentBuilderFactoryBuilder
Instantiates a pre-configured with security featuresDocumentBuilderFactoryBuilder- Returns:
- default
DocumentBuilderFactoryBuilder
-
build
Builds the configuredDocumentBuilderFactory- Returns:
DocumentBuilderFactory
-
instantiateFactory
Description copied from class:AbstractFactoryBuilderThis method instantiates the corresponding factory. NOTE: in order to change the default behavior, the related class and the current method should be overridden- Specified by:
instantiateFactoryin classAbstractFactoryBuilder<DocumentBuilderFactory>- Returns:
- factory
-
enableFeature
Description copied from class:AbstractConfiguratorEnables a custom feature- Overrides:
enableFeaturein classAbstractConfigurator<DocumentBuilderFactory>- Parameters:
feature-Stringthe feature constraint- Returns:
- this builder
-
disableFeature
Description copied from class:AbstractConfiguratorDisables a custom feature- Overrides:
disableFeaturein classAbstractConfigurator<DocumentBuilderFactory>- Parameters:
feature-Stringthe feature constraint- Returns:
- this builder
-
setAttribute
Description copied from class:AbstractConfiguratorSets a custom attribute.- Overrides:
setAttributein classAbstractConfigurator<DocumentBuilderFactory>- Parameters:
attribute-Stringattribute constraint to setvalue-Objecta value to define for the attribute- Returns:
- this builder
-
removeAttribute
Description copied from class:AbstractConfiguratorRemoves the attribute from a list of attributes to set- Overrides:
removeAttributein classAbstractConfigurator<DocumentBuilderFactory>- Parameters:
attribute-Stringattribute to disable- Returns:
- this builder
-
setSecurityFeature
Description copied from class:AbstractConfiguratorSets the feature to the factory- Specified by:
setSecurityFeaturein classAbstractConfigurator<DocumentBuilderFactory>- Parameters:
factory- to set the feature tofeature-Stringfeature constraint to setvalue-Booleanvalue of the feature to add
-
setSecurityAttribute
Description copied from class:AbstractConfiguratorSets the attribute to the factory- Specified by:
setSecurityAttributein classAbstractConfigurator<DocumentBuilderFactory>- Parameters:
factory-Factoryto set the attribute toattribute-Stringattribute constraint to setvalue-Objectvalue of the attribute to add
-