Class AAPILocationHandler

java.lang.Object
nl.vpro.media.odi.handler.AAPILocationHandler
All Implemented Interfaces:
LocationProducer

public class AAPILocationHandler extends Object implements LocationProducer
TODO
  • Constructor Details

    • AAPILocationHandler

      public AAPILocationHandler()
  • Method Details

    • score

      public int score(Location location, String... pubOptions)
      Does this handler support the location given the pubOptions supported
      Specified by:
      score in interface LocationProducer
      Parameters:
      location - location with a programUrl
      pubOptions - ordered list with puboptions which should contain one of [m3u8, f4m]
    • produce

      public LocationResult produce(Location location, jakarta.servlet.http.HttpServletRequest request, String... pubOptions)
      Description copied from interface: LocationProducer
      Produce a LocationResult. In principal never null
      Specified by:
      produce in interface LocationProducer
    • getClientHost

      protected String getClientHost(jakarta.servlet.http.HttpServletRequest request)
    • setAAPIServer

      public void setAAPIServer(String aapiServer)
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object