Package akka.http.scaladsl.unmarshalling
Class Unmarshaller$
- java.lang.Object
-
- akka.http.scaladsl.unmarshalling.Unmarshaller$
-
- All Implemented Interfaces:
GenericUnmarshallers,LowerPriorityGenericUnmarshallers,MultipartUnmarshallers,PredefinedFromEntityUnmarshallers,PredefinedFromStringUnmarshallers
public class Unmarshaller$ extends java.lang.Object implements GenericUnmarshallers, PredefinedFromEntityUnmarshallers, PredefinedFromStringUnmarshallers
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A,B>
Unmarshaller<A,B>apply(scala.Function1<scala.concurrent.ExecutionContext,scala.Function1<A,scala.concurrent.Future<B>>> f)Creates anUnmarshallerfrom the given function.HttpCharsetbestUnmarshallingCharsetFor(HttpEntity entity)Returns the best charset for unmarshalling the given entity to a character-based representation.Unmarshaller<java.lang.String,java.lang.Object>booleanFromStringUnmarshaller()Unmarshaller<java.lang.String,java.lang.Object>byteFromStringUnmarshaller()Unmarshaller<java.lang.String,java.lang.Object>doubleFromStringUnmarshaller()<A,B>
Unmarshaller<A,B>firstOf(scala.collection.immutable.Seq<Unmarshaller<A,B>> unmarshallers)Helper for creating a "super-unmarshaller" from a sequence of "sub-unmarshallers", which are tried in the given order.Unmarshaller<java.lang.String,java.lang.Object>floatFromStringUnmarshaller()Unmarshaller<java.lang.String,java.lang.Object>HexByte()Unmarshaller<java.lang.String,java.lang.Object>HexInt()Unmarshaller<java.lang.String,java.lang.Object>HexLong()Unmarshaller<java.lang.String,java.lang.Object>HexShort()<T> Unmarshaller<T,T>identityUnmarshaller()Unmarshaller<java.lang.String,java.lang.Object>intFromStringUnmarshaller()Unmarshaller<java.lang.String,java.lang.Object>longFromStringUnmarshaller()Unmarshaller<java.lang.String,java.lang.Object>shortFromStringUnmarshaller()<A,B>
Unmarshaller<A,B>strict(scala.Function1<A,B> f)Helper for creating a synchronousUnmarshallerfrom the given function.Unmarshaller<java.lang.String,java.util.UUID>uuidFromStringUnmarshaller()<A,B>
Unmarshaller<A,B>withMaterializer(scala.Function1<scala.concurrent.ExecutionContext,scala.Function1<akka.stream.Materializer,scala.Function1<A,scala.concurrent.Future<B>>>> f)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.scaladsl.unmarshalling.GenericUnmarshallers
liftToTargetOptionUnmarshaller, targetOptionUnmarshaller
-
Methods inherited from interface akka.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallers
eitherUnmarshaller, liftToSourceOptionUnmarshaller, messageUnmarshallerFromEntityUnmarshaller, sourceOptionUnmarshaller
-
Methods inherited from interface akka.http.scaladsl.unmarshalling.MultipartUnmarshallers
defaultMultipartByteRangesUnmarshaller, defaultMultipartGeneralUnmarshaller, multipartByteRangesUnmarshaller, multipartFormDataUnmarshaller, multipartGeneralUnmarshaller, multipartUnmarshaller
-
Methods inherited from interface akka.http.scaladsl.unmarshalling.PredefinedFromEntityUnmarshallers
byteArrayUnmarshaller, byteStringUnmarshaller, charArrayUnmarshaller, defaultUrlEncodedFormDataUnmarshaller, stringUnmarshaller, urlEncodedFormDataUnmarshaller
-
Methods inherited from interface akka.http.scaladsl.unmarshalling.PredefinedFromStringUnmarshallers
_fromStringUnmarshallerFromByteStringUnmarshaller, CsvSeq, numberFormatError, numberUnmarshaller
-
-
-
-
Field Detail
-
MODULE$
public static final Unmarshaller$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
byteFromStringUnmarshaller
public Unmarshaller<java.lang.String,java.lang.Object> byteFromStringUnmarshaller()
- Specified by:
byteFromStringUnmarshallerin interfacePredefinedFromStringUnmarshallers
-
shortFromStringUnmarshaller
public Unmarshaller<java.lang.String,java.lang.Object> shortFromStringUnmarshaller()
- Specified by:
shortFromStringUnmarshallerin interfacePredefinedFromStringUnmarshallers
-
intFromStringUnmarshaller
public Unmarshaller<java.lang.String,java.lang.Object> intFromStringUnmarshaller()
- Specified by:
intFromStringUnmarshallerin interfacePredefinedFromStringUnmarshallers
-
longFromStringUnmarshaller
public Unmarshaller<java.lang.String,java.lang.Object> longFromStringUnmarshaller()
- Specified by:
longFromStringUnmarshallerin interfacePredefinedFromStringUnmarshallers
-
floatFromStringUnmarshaller
public Unmarshaller<java.lang.String,java.lang.Object> floatFromStringUnmarshaller()
- Specified by:
floatFromStringUnmarshallerin interfacePredefinedFromStringUnmarshallers
-
doubleFromStringUnmarshaller
public Unmarshaller<java.lang.String,java.lang.Object> doubleFromStringUnmarshaller()
- Specified by:
doubleFromStringUnmarshallerin interfacePredefinedFromStringUnmarshallers
-
booleanFromStringUnmarshaller
public Unmarshaller<java.lang.String,java.lang.Object> booleanFromStringUnmarshaller()
- Specified by:
booleanFromStringUnmarshallerin interfacePredefinedFromStringUnmarshallers
-
uuidFromStringUnmarshaller
public Unmarshaller<java.lang.String,java.util.UUID> uuidFromStringUnmarshaller()
- Specified by:
uuidFromStringUnmarshallerin interfacePredefinedFromStringUnmarshallers
-
HexByte
public Unmarshaller<java.lang.String,java.lang.Object> HexByte()
- Specified by:
HexBytein interfacePredefinedFromStringUnmarshallers
-
HexShort
public Unmarshaller<java.lang.String,java.lang.Object> HexShort()
- Specified by:
HexShortin interfacePredefinedFromStringUnmarshallers
-
HexInt
public Unmarshaller<java.lang.String,java.lang.Object> HexInt()
- Specified by:
HexIntin interfacePredefinedFromStringUnmarshallers
-
HexLong
public Unmarshaller<java.lang.String,java.lang.Object> HexLong()
- Specified by:
HexLongin interfacePredefinedFromStringUnmarshallers
-
apply
public <A,B> Unmarshaller<A,B> apply(scala.Function1<scala.concurrent.ExecutionContext,scala.Function1<A,scala.concurrent.Future<B>>> f)
Creates anUnmarshallerfrom the given function.- Parameters:
f- (undocumented)- Returns:
- (undocumented)
-
withMaterializer
public <A,B> Unmarshaller<A,B> withMaterializer(scala.Function1<scala.concurrent.ExecutionContext,scala.Function1<akka.stream.Materializer,scala.Function1<A,scala.concurrent.Future<B>>>> f)
-
strict
public <A,B> Unmarshaller<A,B> strict(scala.Function1<A,B> f)
Helper for creating a synchronousUnmarshallerfrom the given function.- Parameters:
f- (undocumented)- Returns:
- (undocumented)
-
firstOf
public <A,B> Unmarshaller<A,B> firstOf(scala.collection.immutable.Seq<Unmarshaller<A,B>> unmarshallers)
Helper for creating a "super-unmarshaller" from a sequence of "sub-unmarshallers", which are tried in the given order. The first successful unmarshalling of a "sub-unmarshallers" is the one produced by the "super-unmarshaller".- Parameters:
unmarshallers- (undocumented)- Returns:
- (undocumented)
-
identityUnmarshaller
public <T> Unmarshaller<T,T> identityUnmarshaller()
-
bestUnmarshallingCharsetFor
public HttpCharset bestUnmarshallingCharsetFor(HttpEntity entity)
Returns the best charset for unmarshalling the given entity to a character-based representation. Falls back to UTF-8 if no better alternative can be determined.- Parameters:
entity- (undocumented)- Returns:
- (undocumented)
-
-