Package akka.http.scaladsl.unmarshalling
Interface Unmarshaller<A,B>
-
public interface Unmarshaller<A,B>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classUnmarshaller.EitherUnmarshallingExceptionOrder of parameters (`right` first, `left` second) is intentional, since that's the order we evaluate them in.static classUnmarshaller.EitherUnmarshallingException$static classUnmarshaller.EnhancedFromEntityUnmarshaller<A>static classUnmarshaller.EnhancedFromEntityUnmarshaller$static classUnmarshaller.EnhancedUnmarshaller<A,B>static classUnmarshaller.EnhancedUnmarshaller$static classUnmarshaller.NoContentException$Signals that unmarshalling failed because the entity was unexpectedly empty.static classUnmarshaller.UnsupportedContentTypeExceptionSignals that unmarshalling failed because the entity content-type did not match one of the supported ranges.static classUnmarshaller.UnsupportedContentTypeException$
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <C> Unmarshaller<A,C>andThen(Unmarshaller<B,C> other)scala.concurrent.Future<B>apply(A value, scala.concurrent.ExecutionContext ec, akka.stream.Materializer materializer)Unmarshaller<A,B>asScala()<C> Unmarshaller<A,C>flatMap(scala.Function1<scala.concurrent.ExecutionContext,scala.Function1<akka.stream.Materializer,scala.Function1<B,scala.concurrent.Future<C>>>> f)<C> Unmarshaller<A,C>map(scala.Function1<B,C> f)<C> Unmarshaller<A,C>recover(scala.Function1<scala.concurrent.ExecutionContext,scala.Function1<akka.stream.Materializer,scala.PartialFunction<java.lang.Throwable,C>>> pf)<C> Unmarshaller<A,C>transform(scala.Function1<scala.concurrent.ExecutionContext,scala.Function1<akka.stream.Materializer,scala.Function1<scala.concurrent.Future<B>,scala.concurrent.Future<C>>>> f)<BB> Unmarshaller<A,BB>withDefaultValue(BB defaultValue)
-
-
-
Method Detail
-
asScala
Unmarshaller<A,B> asScala()
-
apply
scala.concurrent.Future<B> apply(A value, scala.concurrent.ExecutionContext ec, akka.stream.Materializer materializer)
-
transform
<C> Unmarshaller<A,C> transform(scala.Function1<scala.concurrent.ExecutionContext,scala.Function1<akka.stream.Materializer,scala.Function1<scala.concurrent.Future<B>,scala.concurrent.Future<C>>>> f)
-
map
<C> Unmarshaller<A,C> map(scala.Function1<B,C> f)
-
flatMap
<C> Unmarshaller<A,C> flatMap(scala.Function1<scala.concurrent.ExecutionContext,scala.Function1<akka.stream.Materializer,scala.Function1<B,scala.concurrent.Future<C>>>> f)
-
andThen
<C> Unmarshaller<A,C> andThen(Unmarshaller<B,C> other)
-
recover
<C> Unmarshaller<A,C> recover(scala.Function1<scala.concurrent.ExecutionContext,scala.Function1<akka.stream.Materializer,scala.PartialFunction<java.lang.Throwable,C>>> pf)
-
withDefaultValue
<BB> Unmarshaller<A,BB> withDefaultValue(BB defaultValue)
-
-