org.openjena.atlas.web
Class MediaRange

java.lang.Object
  extended by org.openjena.atlas.web.MediaType
      extended by org.openjena.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


Field Summary
 
Fields inherited from class org.openjena.atlas.web.MediaType
strCharset
 
Constructor Summary
MediaRange(MediaRange other)
           
MediaRange(MediaType other)
           
MediaRange(String string)
           
 
Method Summary
 boolean accepts(MediaType item)
           
 double get_q()
           
 boolean moreGroundedThan(MediaType item)
           
 
Methods inherited from class org.openjena.atlas.web.MediaType
create, create, equals, getCharset, getContentType, getParameter, getSubType, getType, hashCode, setParameter, setSubType, setType, toHeaderString, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MediaRange

public MediaRange(MediaRange other)

MediaRange

public MediaRange(MediaType other)

MediaRange

public MediaRange(String string)
Method Detail

get_q

public double get_q()

accepts

public boolean accepts(MediaType item)

moreGroundedThan

public boolean moreGroundedThan(MediaType item)


Licenced under the Apache License, Version 2.0