Interface URLSelectorStrategy

All Known Implementing Classes:
URLSelector

public interface URLSelectorStrategy
URLSelectorStrategy
Author:
Jesper Pedersen
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the active URL
    void
    fail(String url)
    Fail an URL - e.g.
    Get the data for an error presentation
    boolean
    Does the plugin has more valid URLs ?
    void
    init(List<String> urls)
    Init the plugin with the URLs
    void
    Reset the plugin
    default void
    URL was accepted - potentially mark it as active
  • Method Details

    • init

      void init(List<String> urls)
      Init the plugin with the URLs
      Parameters:
      urls - The URLs
    • hasMore

      boolean hasMore()
      Does the plugin has more valid URLs ?
      Returns:
      True, if more are available, otherwise false
    • active

      String active()
      Get the active URL
      Returns:
      The value
    • fail

      void fail(String url)
      Fail an URL - e.g. mark it as bad
      Parameters:
      url - The URL
    • success

      default void success(String url)
      URL was accepted - potentially mark it as active
      Parameters:
      url -
    • reset

      void reset()
      Reset the plugin
    • getData

      String getData()
      Get the data for an error presentation
      Returns:
      The value