Package akka.http.scaladsl.unmarshalling
Class Unmarshal<A>
- java.lang.Object
-
- akka.http.scaladsl.unmarshalling.Unmarshal<A>
-
public class Unmarshal<A> extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Unmarshal<T>
apply(T value)
<B> scala.concurrent.Future<B>
to(Unmarshaller<A,B> um, scala.concurrent.ExecutionContext ec, akka.stream.Materializer mat)
Unmarshals the value to the given Type using the in-scope Unmarshaller.A
value()
-
-
-
Constructor Detail
-
Unmarshal
public Unmarshal(A value)
-
-
Method Detail
-
apply
public static <T> Unmarshal<T> apply(T value)
-
value
public A value()
-
to
public <B> scala.concurrent.Future<B> to(Unmarshaller<A,B> um, scala.concurrent.ExecutionContext ec, akka.stream.Materializer mat)
Unmarshals the value to the given Type using the in-scope Unmarshaller.Uses the default materializer
ExecutionContext
if no implicit execution context is provided. If you expect the marshalling to be heavy, it is suggested to provide a specialized context for those operations.- Parameters:
um
- (undocumented)ec
- (undocumented)mat
- (undocumented)- Returns:
- (undocumented)
-
-