Class URLFilter

    • Constructor Detail

      • URLFilter

        public URLFilter()
    • Method Detail

      • filter

        @Nullable
        public abstract @Nullable String filter​(@Nullable
                                                @Nullable URL sourceUrl,
                                                @Nullable
                                                @Nullable Metadata sourceMetadata,
                                                @NotNull
                                                @NotNull String urlToFilter)
        Returns null if the URL is to be removed or a normalised representation which can correspond to the input URL
        Parameters:
        sourceUrl - the URL of the page where the URL was found. Can be null.
        sourceMetadata - the metadata collected for the page
        urlToFilter - the URL to be filtered
        Returns:
        null if the url is to be removed or a normalised representation which can correspond to the input URL