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 TransformerFactory
build()
Builds the configuredTransformerFactory
TransformerFactoryBuilder
disableFeature(String feature)
Disables a custom featureTransformerFactoryBuilder
enableFeature(String feature)
Enables a custom featurestatic TransformerFactoryBuilder
getSecureTransformerBuilder()
Instantiates a pre-configured with security featuresTransformerFactoryBuilder
TransformerFactoryBuilder
removeAttribute(String attribute)
Removes the attribute from a list of attributes to setTransformerFactoryBuilder
setAttribute(String attribute, Object value)
Sets a custom attribute.protected void
setSecurityAttribute(TransformerFactory factory, String attribute, Object value)
Sets the attribute to the factoryprotected void
setSecurityFeature(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:AbstractFactoryBuilder
Enables a custom feature- Overrides:
enableFeature
in classAbstractFactoryBuilder<TransformerFactory>
- Parameters:
feature
-String
the feature constraint- Returns:
- this builder
-
disableFeature
Description copied from class:AbstractFactoryBuilder
Disables a custom feature- Overrides:
disableFeature
in classAbstractFactoryBuilder<TransformerFactory>
- Parameters:
feature
-String
the feature constraint- Returns:
- this builder
-
setAttribute
Description copied from class:AbstractFactoryBuilder
Sets a custom attribute.- Overrides:
setAttribute
in classAbstractFactoryBuilder<TransformerFactory>
- Parameters:
attribute
-String
attribute constraint to setvalue
-Object
a value to define for the attribute- Returns:
- this builder
-
removeAttribute
Description copied from class:AbstractFactoryBuilder
Removes the attribute from a list of attributes to set- Overrides:
removeAttribute
in classAbstractFactoryBuilder<TransformerFactory>
- Parameters:
attribute
-String
attribute to disable- Returns:
- this builder
-
setSecurityFeature
protected void setSecurityFeature(TransformerFactory factory, String feature, Boolean value) throws ExceptionDescription copied from class:AbstractFactoryBuilder
Sets the feature to the factory- Specified by:
setSecurityFeature
in classAbstractFactoryBuilder<TransformerFactory>
- Parameters:
factory
- to set the feature tofeature
-String
feature constraint to setvalue
-Boolean
value 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:AbstractFactoryBuilder
Sets the attribute to the factory- Specified by:
setSecurityAttribute
in classAbstractFactoryBuilder<TransformerFactory>
- Parameters:
factory
-Factory
to set the attribute toattribute
-String
attribute constraint to setvalue
-Object
value of the attribute to add- Throws:
IllegalArgumentException
-