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 Object
implements GenericUnmarshallers, PredefinedFromEntityUnmarshallers, PredefinedFromStringUnmarshallers
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Unmarshaller$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<A,
B> Unmarshaller<A, B> apply
(scala.Function1<scala.concurrent.ExecutionContext, scala.Function1<A, scala.concurrent.Future<B>>> f) Creates anUnmarshaller
from the given function.Returns the best charset for unmarshalling the given entity to a character-based representation.<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.HexByte()
HexInt()
HexLong()
HexShort()
<T> Unmarshaller<T,
T> <A,
B> Unmarshaller<A, B> strict
(scala.Function1<A, B> f) Helper for creating a synchronousUnmarshaller
from the given function.<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 Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Unmarshaller$
public Unmarshaller$()
-
-
Method Details
-
byteFromStringUnmarshaller
- Specified by:
byteFromStringUnmarshaller
in interfacePredefinedFromStringUnmarshallers
-
shortFromStringUnmarshaller
- Specified by:
shortFromStringUnmarshaller
in interfacePredefinedFromStringUnmarshallers
-
intFromStringUnmarshaller
- Specified by:
intFromStringUnmarshaller
in interfacePredefinedFromStringUnmarshallers
-
longFromStringUnmarshaller
- Specified by:
longFromStringUnmarshaller
in interfacePredefinedFromStringUnmarshallers
-
floatFromStringUnmarshaller
- Specified by:
floatFromStringUnmarshaller
in interfacePredefinedFromStringUnmarshallers
-
doubleFromStringUnmarshaller
- Specified by:
doubleFromStringUnmarshaller
in interfacePredefinedFromStringUnmarshallers
-
booleanFromStringUnmarshaller
- Specified by:
booleanFromStringUnmarshaller
in interfacePredefinedFromStringUnmarshallers
-
uuidFromStringUnmarshaller
- Specified by:
uuidFromStringUnmarshaller
in interfacePredefinedFromStringUnmarshallers
-
HexByte
- Specified by:
HexByte
in interfacePredefinedFromStringUnmarshallers
-
HexShort
- Specified by:
HexShort
in interfacePredefinedFromStringUnmarshallers
-
HexInt
- Specified by:
HexInt
in interfacePredefinedFromStringUnmarshallers
-
HexLong
- Specified by:
HexLong
in interfacePredefinedFromStringUnmarshallers
-
apply
public <A,B> Unmarshaller<A,B> apply(scala.Function1<scala.concurrent.ExecutionContext, scala.Function1<A, scala.concurrent.Future<B>>> f) Creates anUnmarshaller
from 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
Helper for creating a synchronousUnmarshaller
from 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
-
bestUnmarshallingCharsetFor
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)
-