Class UrlNormalizerPipeline

  • All Implemented Interfaces:
    ai.platon.pulsar.common.urls.preprocess.UrlNormalizer , kotlin.Function , kotlin.Function1

    
    public final class UrlNormalizerPipeline
    extends AbstractUrlNormalizer
                        

    A pipeline of url normalizers

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<UrlNormalizer> getNormalizers() The list of url normalizers
      final Unit addFirst(UrlNormalizer normalizer) Add a url normalizer to the first of the pipeline
      final Unit addLast(UrlNormalizer normalizer) Add a url normalizer to the last of the pipeline
      String invoke(String url) Invoke the pipeline to normalize the url.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • addFirst

         final Unit addFirst(UrlNormalizer normalizer)

        Add a url normalizer to the first of the pipeline

        Parameters:
        normalizer - The url normalizer
      • addLast

         final Unit addLast(UrlNormalizer normalizer)

        Add a url normalizer to the last of the pipeline

        Parameters:
        normalizer - The url normalizer
      • invoke

         String invoke(String url)

        Invoke the pipeline to normalize the url.

        Parameters:
        url - The url to be normalized