Package eu.europa.esig.dss.jaxb
Class TransformerFactoryBuilder
java.lang.Object
eu.europa.esig.dss.jaxb.AbstractFactoryBuilder<TransformerFactory>
eu.europa.esig.dss.jaxb.TransformerFactoryBuilder
public class TransformerFactoryBuilder extends AbstractFactoryBuilder<TransformerFactory>
-
Method Summary
Modifier and Type Method Description TransformerFactorybuild()Builds the configuredTransformerFactoryTransformerFactoryBuilderdisableFeature(String feature)Disables a custom featureTransformerFactoryBuilderenableFeature(String feature)Enables a custom featurestatic TransformerFactoryBuildergetSecureTransformerBuilder()Instantiates a pre-configured with security featuresTransformerFactoryBuilderTransformerFactoryBuilderremoveAttribute(String attribute)Removes the attribute from a list of attributes to setTransformerFactoryBuildersetAttribute(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.AbstractFactoryBuilder
setSecurityAttributes, setSecurityExceptionAlert, setSecurityFeatures
-
Method Details
-
getSecureTransformerBuilder
Instantiates a pre-configured with security featuresTransformerFactoryBuilder- Returns:
- default
TransformerFactoryBuilder
-
build
Builds the configuredTransformerFactory- Returns:
TransformerFactory
-
enableFeature
Description copied from class:AbstractFactoryBuilderEnables a custom feature- Overrides:
enableFeaturein classAbstractFactoryBuilder<TransformerFactory>- Parameters:
feature-Stringthe feature constraint- Returns:
- this builder
-
disableFeature
Description copied from class:AbstractFactoryBuilderDisables a custom feature- Overrides:
disableFeaturein classAbstractFactoryBuilder<TransformerFactory>- Parameters:
feature-Stringthe feature constraint- Returns:
- this builder
-
setAttribute
Description copied from class:AbstractFactoryBuilderSets a custom attribute.- Overrides:
setAttributein classAbstractFactoryBuilder<TransformerFactory>- Parameters:
attribute-Stringattribute constraint to setvalue-Objecta value to define for the attribute- Returns:
- this builder
-
removeAttribute
Description copied from class:AbstractFactoryBuilderRemoves the attribute from a list of attributes to set- Overrides:
removeAttributein classAbstractFactoryBuilder<TransformerFactory>- Parameters:
attribute-Stringattribute to disable- Returns:
- this builder
-
setSecurityFeature
protected void setSecurityFeature(TransformerFactory factory, String feature, Boolean value) throws ExceptionDescription copied from class:AbstractFactoryBuilderSets the feature to the factory- Specified by:
setSecurityFeaturein classAbstractFactoryBuilder<TransformerFactory>- Parameters:
factory- to set the feature tofeature-Stringfeature constraint to setvalue-Booleanvalue of the feature to add- Throws:
Exception- in case if any exception occurs
-
setSecurityAttribute
protected void setSecurityAttribute(TransformerFactory factory, String attribute, Object value) throws IllegalArgumentExceptionDescription copied from class:AbstractFactoryBuilderSets the attribute to the factory- Specified by:
setSecurityAttributein classAbstractFactoryBuilder<TransformerFactory>- Parameters:
factory-Factoryto set the attribute toattribute-Stringattribute constraint to setvalue-Objectvalue of the attribute to add- Throws:
IllegalArgumentException
-