Package nl.vpro.media.odi
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 Summary
Modifier and TypeMethodDescriptionProduce aLocationResult.default Optional<LocationResult>produceIfSupports(@NotNull Location location, jakarta.servlet.http.HttpServletRequest request, @NotNull String... pubOptions) intHigher is better.default booleansupports(int score) Given the result ofscore(nl.vpro.domain.media.Location, java.lang.String...)can then producer actually produce?
-
Method Details
-
score
Higher is better. On default (but seesupports(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 aLocationResult. In principal nevernull -
supports
default boolean supports(int score) Given the result ofscore(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)
-