Class MediaRange

java.lang.Object
org.apache.jena.atlas.web.MediaType
org.apache.jena.atlas.web.MediaRange

public class MediaRange extends MediaType
A media range is a media type used in content negotiation. It has a q parameter (others are possible but we don't need them ... yet
  • Constructor Details

    • MediaRange

      public MediaRange(MediaRange other)
    • MediaRange

      public MediaRange(MediaType other)
    • MediaRange

      public MediaRange(String string)
    • MediaRange

      public MediaRange(String type, String subType, String charset)
  • Method Details

    • get_q

      public double get_q()
    • accepts

      public boolean accepts(MediaType item)
    • grounded

      public boolean grounded(MediaType item)
    • moreGroundedThan

      public boolean moreGroundedThan(MediaType item)