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, waitvaluetoStringpublic 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 ContentTypeRangepublic HttpCharsetRange charsetRange()
charsetRange in class ContentTypeRangepublic boolean matches(ContentType contentType)
ContentTypeRangematches in class ContentTypeRangepublic <R extends Rendering> Rendering render(R r)
render in interface Renderable