Package eu.europa.esig.dss.jaxb.common
Class TransformerFactoryBuilder
java.lang.Object
eu.europa.esig.dss.jaxb.common.AbstractConfigurator<F>
eu.europa.esig.dss.jaxb.common.AbstractFactoryBuilder<TransformerFactory>
eu.europa.esig.dss.jaxb.common.TransformerFactoryBuilder
Builds a
TransformerFactory-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuredTransformerFactorydisableFeature(String feature) Disables a custom featureenableFeature(String feature) Enables a custom featurestatic TransformerFactoryBuilderInstantiates a pre-configured with security featuresTransformerFactoryBuilderprotected TransformerFactoryThis 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(TransformerFactory factory, String attribute, Object value) Sets the attribute to the factoryprotected voidsetSecurityFeature(TransformerFactory 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
-
TransformerFactoryBuilder
protected TransformerFactoryBuilder()Default constructor
-
-
Method Details
-
getSecureTransformerBuilder
Instantiates a pre-configured with security featuresTransformerFactoryBuilder- Returns:
- default
TransformerFactoryBuilder
-
build
Builds the configuredTransformerFactory- Returns:
TransformerFactory
-
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<TransformerFactory>- Returns:
- factory
-
enableFeature
Description copied from class:AbstractConfiguratorEnables a custom feature- Overrides:
enableFeaturein classAbstractConfigurator<TransformerFactory>- Parameters:
feature-Stringthe feature constraint- Returns:
- this builder
-
disableFeature
Description copied from class:AbstractConfiguratorDisables a custom feature- Overrides:
disableFeaturein classAbstractConfigurator<TransformerFactory>- Parameters:
feature-Stringthe feature constraint- Returns:
- this builder
-
setAttribute
Description copied from class:AbstractConfiguratorSets a custom attribute.- Overrides:
setAttributein classAbstractConfigurator<TransformerFactory>- 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<TransformerFactory>- Parameters:
attribute-Stringattribute to disable- Returns:
- this builder
-
setSecurityFeature
protected void setSecurityFeature(TransformerFactory factory, String feature, Boolean value) throws SecurityConfigurationException Description copied from class:AbstractConfiguratorSets the feature to the factory- Specified by:
setSecurityFeaturein classAbstractConfigurator<TransformerFactory>- Parameters:
factory- to set the feature tofeature-Stringfeature constraint to setvalue-Booleanvalue of the feature to add- Throws:
SecurityConfigurationException- in case if any exception occurs
-
setSecurityAttribute
protected void setSecurityAttribute(TransformerFactory factory, String attribute, Object value) throws SecurityConfigurationException Description copied from class:AbstractConfiguratorSets the attribute to the factory- Specified by:
setSecurityAttributein classAbstractConfigurator<TransformerFactory>- Parameters:
factory-Factoryto set the attribute toattribute-Stringattribute constraint to setvalue-Objectvalue of the attribute to add- Throws:
SecurityConfigurationException- in case if any exception occurs
-