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 class
Unmarshaller.EitherUnmarshallingException
Order of parameters (`right` first, `left` second) is intentional, since that's the order we evaluate them in.static class
Unmarshaller.EitherUnmarshallingException$
static class
Unmarshaller.EnhancedFromEntityUnmarshaller<A>
static class
Unmarshaller.EnhancedFromEntityUnmarshaller$
static class
Unmarshaller.EnhancedUnmarshaller<A,B>
static class
Unmarshaller.EnhancedUnmarshaller$
static class
Unmarshaller.NoContentException$
Signals that unmarshalling failed because the entity was unexpectedly empty.static class
Unmarshaller.UnsupportedContentTypeException
Signals that unmarshalling failed because the entity content-type did not match one of the supported ranges.static class
Unmarshaller.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)
-
-