Class CssProcessingOptions.Builder

    • Method Detail

      • build

        public CssProcessingOptions build()
        Creates a new CssProcessingOptions 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.