Interface LocationProducer

All Known Implementing Classes:
AAPILocationHandler, DeeplinkProtectionLocationHandler, FinalLocationHandler, MatchAVFileFormatLocationHandler, MatchSchemesLocationHandler, OdiLocationHandler, OdiPlusLocationHandler

public interface LocationProducer
A location producer make a LocationResult given a certain Location and 'pubOptions'
  • Method Details

    • score

      int score(Location location, String... pubOptions)
      Higher is better. On default (but see supports(int)) 0 means that the producer cannot produce a location result for this location The result of this will be filled in the LocationResult, which determins its basic natural order.
    • produce

      LocationResult produce(Location location, jakarta.servlet.http.HttpServletRequest request, String... pubOptions)
      Produce a LocationResult. In principal never null
    • supports

      default boolean supports(int score)
      Given the result of score(nl.vpro.domain.media.Location, java.lang.String...) can then producer actually produce?
    • produceIfSupports

      default Optional<LocationResult> produceIfSupports(@NotNull @NotNull Location location, jakarta.servlet.http.HttpServletRequest request, @NotNull @NotNull String... pubOptions)