Package akka.http.javadsl.unmarshalling
Class StringUnmarshaller
- java.lang.Object
-
- akka.http.javadsl.unmarshalling.StringUnmarshaller
-
public class StringUnmarshaller extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StringUnmarshaller()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <B> Unmarshaller<java.lang.String,B>
async(java.util.function.Function<java.lang.String,java.util.concurrent.CompletionStage<B>> f)
Turns the given asynchronous function into an unmarshaller from String to B.static <B> Unmarshaller<java.lang.String,B>
sync(java.util.function.Function<java.lang.String,B> f)
Turns the given function into an unmarshaller from String to B.
-
-
-
Method Detail
-
async
public static <B> Unmarshaller<java.lang.String,B> async(java.util.function.Function<java.lang.String,java.util.concurrent.CompletionStage<B>> f)
Turns the given asynchronous function into an unmarshaller from String to B.- Parameters:
f
- (undocumented)- Returns:
- (undocumented)
-
sync
public static <B> Unmarshaller<java.lang.String,B> sync(java.util.function.Function<java.lang.String,B> f)
Turns the given function into an unmarshaller from String to B.- Parameters:
f
- (undocumented)- Returns:
- (undocumented)
-
-