Package akka.http.javadsl.unmarshalling
Class Unmarshaller$
- java.lang.Object
-
- akka.http.javadsl.unmarshalling.Unmarshaller$
-
- All Implemented Interfaces:
Unmarshallers
public class Unmarshaller$ extends java.lang.Object implements Unmarshallers
-
-
Field Summary
Fields Modifier and Type Field Description static Unmarshaller$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Unmarshaller$()
-
Method Summary
-
-
-
Field Detail
-
MODULE$
public static final Unmarshaller$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
fromScala
public <A,B> Unmarshaller<A,B> fromScala(Unmarshaller<A,B> scalaUnmarshaller)
-
async
public <A,B> Unmarshaller<A,B> async(java.util.function.Function<A,java.util.concurrent.CompletionStage<B>> f)
Creates an unmarshaller from an asynchronous Java function.- Specified by:
async
in interfaceUnmarshallers
- Parameters:
f
- (undocumented)- Returns:
- (undocumented)
-
sync
public <A,B> Unmarshaller<A,B> sync(java.util.function.Function<A,B> f)
Creates an unmarshaller from a Java function.- Specified by:
sync
in interfaceUnmarshallers
- Parameters:
f
- (undocumented)- Returns:
- (undocumented)
-
entityToByteString
public Unmarshaller<HttpEntity,akka.util.ByteString> entityToByteString()
-
entityToByteArray
public Unmarshaller<HttpEntity,byte[]> entityToByteArray()
-
entityToCharArray
public Unmarshaller<HttpEntity,char[]> entityToCharArray()
-
entityToString
public Unmarshaller<HttpEntity,java.lang.String> entityToString()
-
entityToWwwUrlEncodedFormData
public Unmarshaller<HttpEntity,FormData> entityToWwwUrlEncodedFormData()
-
entityToMultipartByteRangesUnmarshaller
public Unmarshaller<HttpEntity,Multipart.ByteRanges> entityToMultipartByteRangesUnmarshaller()
-
entityToMultipartFormData
public Unmarshaller<HttpEntity,Multipart.FormData> entityToMultipartFormData()
-
requestToEntity
public Unmarshaller<HttpRequest,RequestEntity> requestToEntity()
-
forMediaType
public <B> Unmarshaller<HttpEntity,B> forMediaType(MediaType t, Unmarshaller<HttpEntity,B> um)
-
forMediaTypes
public <B> Unmarshaller<HttpEntity,B> forMediaTypes(java.lang.Iterable<MediaType> types, Unmarshaller<HttpEntity,B> um)
-
firstOf
public <A,B> Unmarshaller<A,B> firstOf(Unmarshaller<A,B> u1, Unmarshaller<A,B> u2)
- Specified by:
firstOf
in interfaceUnmarshallers
-
firstOf
public <A,B> Unmarshaller<A,B> firstOf(Unmarshaller<A,B> u1, Unmarshaller<A,B> u2, Unmarshaller<A,B> u3)
- Specified by:
firstOf
in interfaceUnmarshallers
-
firstOf
public <A,B> Unmarshaller<A,B> firstOf(Unmarshaller<A,B> u1, Unmarshaller<A,B> u2, Unmarshaller<A,B> u3, Unmarshaller<A,B> u4)
- Specified by:
firstOf
in interfaceUnmarshallers
-
firstOf
public <A,B> Unmarshaller<A,B> firstOf(Unmarshaller<A,B> u1, Unmarshaller<A,B> u2, Unmarshaller<A,B> u3, Unmarshaller<A,B> u4, Unmarshaller<A,B> u5)
- Specified by:
firstOf
in interfaceUnmarshallers
-
-