Package akka.http.scaladsl.model
Class ContentTypeRange
- java.lang.Object
-
- akka.http.javadsl.model.ContentTypeRange
-
- akka.http.scaladsl.model.ContentTypeRange
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
,ValueRenderable
,java.io.Serializable
,scala.Equals
,scala.Product
public final class ContentTypeRange extends ContentTypeRange implements ValueRenderable, scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContentTypeRange(MediaRange mediaRange, HttpCharsetRange charsetRange)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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>
Renderingrender(R r)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
Methods inherited from interface akka.http.impl.util.ValueRenderable
value
-
-
-
-
Constructor Detail
-
ContentTypeRange
public ContentTypeRange(MediaRange mediaRange, HttpCharsetRange charsetRange)
-
-
Method Detail
-
apply
public static ContentTypeRange apply(MediaType mediaType)
-
apply
public static ContentTypeRange apply(MediaRange mediaRange)
-
apply
public static ContentTypeRange apply(ContentType contentType)
-
mediaRange
public MediaRange mediaRange()
- Specified by:
mediaRange
in classContentTypeRange
-
charsetRange
public HttpCharsetRange charsetRange()
- Specified by:
charsetRange
in classContentTypeRange
-
matches
public boolean matches(ContentType contentType)
Description copied from class:ContentTypeRange
Returns true if this range includes the given content type.- Specified by:
matches
in classContentTypeRange
-
render
public <R extends Rendering> Rendering render(R r)
- Specified by:
render
in interfaceRenderable
-
-