implicit final class EnhancedFromEntityUnmarshaller[A] extends AnyVal
- Source
- Unmarshaller.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- EnhancedFromEntityUnmarshaller
- AnyVal
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new EnhancedFromEntityUnmarshaller(underlying: FromEntityUnmarshaller[A])
Value Members
-
def
forContentTypes(ranges: ContentTypeRange*): FromEntityUnmarshaller[A]
Modifies the underlying Unmarshaller to only accept Content-Types matching one of the given ranges.
Modifies the underlying Unmarshaller to only accept Content-Types matching one of the given ranges. Note that you can only restrict to a subset of the Content-Types accepted by the underlying unmarshaller, i.e. the given ranges must be completely supported also by the underlying Unmarshaller! If a violation of this rule is detected at runtime, i.e. if an entity is encountered whose Content-Type is matched by one of the given ranges but rejected by the underlying unmarshaller an IllegalStateException will be thrown!
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def mapWithCharset[B](f: (A, HttpCharset) ⇒ B): FromEntityUnmarshaller[B]
- val underlying: FromEntityUnmarshaller[A]