public final class ContentTypeRange extends ContentTypeRange implements ValueRenderable, scala.Product, java.io.Serializable
Constructor and Description |
---|
ContentTypeRange(MediaRange mediaRange,
HttpCharsetRange charsetRange) |
Modifier and Type | Method and Description |
---|---|
static ContentTypeRange |
apply(ContentType contentType) |
static ContentTypeRange |
apply(MediaRange mediaRange) |
static ContentTypeRange |
apply(MediaType mediaType) |
HttpCharsetRange |
charsetRange() |
boolean |
matches(ContentType contentType)
Returns true if this range includes the given content type.
|
MediaRange |
mediaRange() |
<R extends Rendering> |
render(R r) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
value
toString
public ContentTypeRange(MediaRange mediaRange, HttpCharsetRange charsetRange)
public static ContentTypeRange apply(MediaType mediaType)
public static ContentTypeRange apply(MediaRange mediaRange)
public static ContentTypeRange apply(ContentType contentType)
public MediaRange mediaRange()
mediaRange
in class ContentTypeRange
public HttpCharsetRange charsetRange()
charsetRange
in class ContentTypeRange
public boolean matches(ContentType contentType)
ContentTypeRange
matches
in class ContentTypeRange
public <R extends Rendering> Rendering render(R r)
render
in interface Renderable