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 ContentTypeRangeapply(ContentType contentType)static ContentTypeRangeapply(MediaRange mediaRange)static ContentTypeRangeapply(MediaType mediaType)HttpCharsetRangecharsetRange()booleanmatches(ContentType contentType)Returns true if this range includes the given content type.MediaRangemediaRange()<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:
mediaRangein classContentTypeRange
-
charsetRange
public HttpCharsetRange charsetRange()
- Specified by:
charsetRangein classContentTypeRange
-
matches
public boolean matches(ContentType contentType)
Description copied from class:ContentTypeRangeReturns true if this range includes the given content type.- Specified by:
matchesin classContentTypeRange
-
render
public <R extends Rendering> Rendering render(R r)
- Specified by:
renderin interfaceRenderable
-
-