Class CssProcessingOptions.Builder
- java.lang.Object
-
- de.xima.fc.gui.designer.form.utils.CssProcessingOptions.Builder
-
- Enclosing class:
- CssProcessingOptions
public static final class CssProcessingOptions.Builder extends Object
A builder forCssProcessingOptions
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CssProcessingOptions
build()
Creates a newCssProcessingOptions
instance with the current configuration.CssProcessingOptions.Builder
invalidCertificateAllowanceChecker(Predicate<URI> invalidCertificateAllowanceChecker)
Sets the predicate to check if invalid certificates are allowed for the given URL.CssProcessingOptions.Builder
urlPostProcessor(UnaryOperator<URI> urlPostProcessor)
Sets the post processor for URLs in the CSS files.
-
-
-
Method Detail
-
build
public CssProcessingOptions build()
Creates a newCssProcessingOptions
instance with the current configuration. Subsequent changes to the builder will not affect the created options.- Returns:
- The new options, never null.
-
invalidCertificateAllowanceChecker
public CssProcessingOptions.Builder invalidCertificateAllowanceChecker(Predicate<URI> invalidCertificateAllowanceChecker)
Sets the predicate to check if invalid certificates are allowed for the given URL.- Parameters:
invalidCertificateAllowanceChecker
- The checker.- Returns:
- This builder, for chaining.
-
urlPostProcessor
public CssProcessingOptions.Builder urlPostProcessor(UnaryOperator<URI> urlPostProcessor)
Sets the post processor for URLs in the CSS files. This is applied e.g. to the font face URLs.- Parameters:
urlPostProcessor
- The post processor.- Returns:
- This builder, for chaining.
-
-