Interface Unmarshaller<A,B>
public interface Unmarshaller<A,B>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
Order of parameters (`right` first, `left` second) is intentional, since that's the order we evaluate them in.static class
static class
static class
static class
static class
static class
Signals that unmarshalling failed because the entity was unexpectedly empty.static final class
Signals that unmarshalling failed because the entity content-type did not match one of the supported ranges.static class
-
Method Summary
Modifier and TypeMethodDescription<C> Unmarshaller<A,
C> andThen
(Unmarshaller<B, C> other) scala.concurrent.Future<B>
apply
(A value, scala.concurrent.ExecutionContext ec, org.apache.pekko.stream.Materializer materializer) asScala()
<C> Unmarshaller<A,
C> flatMap
(scala.Function1<scala.concurrent.ExecutionContext, scala.Function1<org.apache.pekko.stream.Materializer, scala.Function1<B, scala.concurrent.Future<C>>>> f) <C> Unmarshaller<A,
C> <C> Unmarshaller<A,
C> recover
(scala.Function1<scala.concurrent.ExecutionContext, scala.Function1<org.apache.pekko.stream.Materializer, scala.PartialFunction<Throwable, C>>> pf) <C> Unmarshaller<A,
C> transform
(scala.Function1<scala.concurrent.ExecutionContext, scala.Function1<org.apache.pekko.stream.Materializer, scala.Function1<scala.concurrent.Future<B>, scala.concurrent.Future<C>>>> f) <BB> Unmarshaller<A,
BB> withDefaultValue
(BB defaultValue)
-
Method Details
-
asScala
Unmarshaller<A,B> asScala() -
apply
-
transform
<C> Unmarshaller<A,C> transform(scala.Function1<scala.concurrent.ExecutionContext, scala.Function1<org.apache.pekko.stream.Materializer, scala.Function1<scala.concurrent.Future<B>, scala.concurrent.Future<C>>>> f) -
map
-
flatMap
<C> Unmarshaller<A,C> flatMap(scala.Function1<scala.concurrent.ExecutionContext, scala.Function1<org.apache.pekko.stream.Materializer, scala.Function1<B, scala.concurrent.Future<C>>>> f) -
andThen
-
recover
<C> Unmarshaller<A,C> recover(scala.Function1<scala.concurrent.ExecutionContext, scala.Function1<org.apache.pekko.stream.Materializer, scala.PartialFunction<Throwable, C>>> pf) -
withDefaultValue
-