Class Unmarshaller$
java.lang.Object
org.apache.pekko.http.scaladsl.unmarshalling.Unmarshaller$
- All Implemented Interfaces:
- GenericUnmarshallers,- LowerPriorityGenericUnmarshallers,- MultipartUnmarshallers,- PredefinedFromEntityUnmarshallers,- PredefinedFromStringUnmarshallers
public class Unmarshaller$
extends Object
implements GenericUnmarshallers, PredefinedFromEntityUnmarshallers, PredefinedFromStringUnmarshallers
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Unmarshaller$Static reference to the singleton instance of this Scala object.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<A,B> Unmarshaller<A, B> apply(scala.Function1<scala.concurrent.ExecutionContext, scala.Function1<A, scala.concurrent.Future<B>>> f) Creates anUnmarshallerfrom 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 synchronousUnmarshallerfrom the given function.<A,B> Unmarshaller<A, B> withMaterializer(scala.Function1<scala.concurrent.ExecutionContext, scala.Function1<org.apache.pekko.stream.Materializer, scala.Function1<A, scala.concurrent.Future<B>>>> f) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.scaladsl.unmarshalling.GenericUnmarshallersliftToTargetOptionUnmarshaller, targetOptionUnmarshallerMethods inherited from interface org.apache.pekko.http.scaladsl.unmarshalling.LowerPriorityGenericUnmarshallerseitherUnmarshaller, liftToSourceOptionUnmarshaller, messageUnmarshallerFromEntityUnmarshaller, sourceOptionUnmarshallerMethods inherited from interface org.apache.pekko.http.scaladsl.unmarshalling.MultipartUnmarshallersdefaultMultipartByteRangesUnmarshaller, defaultMultipartGeneralUnmarshaller, multipartByteRangesUnmarshaller, multipartFormDataUnmarshaller, multipartGeneralUnmarshaller, multipartUnmarshallerMethods inherited from interface org.apache.pekko.http.scaladsl.unmarshalling.PredefinedFromEntityUnmarshallersbyteArrayUnmarshaller, byteStringUnmarshaller, charArrayUnmarshaller, defaultUrlEncodedFormDataUnmarshaller, stringUnmarshaller, urlEncodedFormDataUnmarshallerMethods inherited from interface org.apache.pekko.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:
- byteFromStringUnmarshallerin interface- PredefinedFromStringUnmarshallers
 
- 
shortFromStringUnmarshaller- Specified by:
- shortFromStringUnmarshallerin interface- PredefinedFromStringUnmarshallers
 
- 
intFromStringUnmarshaller- Specified by:
- intFromStringUnmarshallerin interface- PredefinedFromStringUnmarshallers
 
- 
longFromStringUnmarshaller- Specified by:
- longFromStringUnmarshallerin interface- PredefinedFromStringUnmarshallers
 
- 
floatFromStringUnmarshaller- Specified by:
- floatFromStringUnmarshallerin interface- PredefinedFromStringUnmarshallers
 
- 
doubleFromStringUnmarshaller- Specified by:
- doubleFromStringUnmarshallerin interface- PredefinedFromStringUnmarshallers
 
- 
booleanFromStringUnmarshaller- Specified by:
- booleanFromStringUnmarshallerin interface- PredefinedFromStringUnmarshallers
 
- 
uuidFromStringUnmarshaller- Specified by:
- uuidFromStringUnmarshallerin interface- PredefinedFromStringUnmarshallers
 
- 
HexByte- Specified by:
- HexBytein interface- PredefinedFromStringUnmarshallers
 
- 
HexShort- Specified by:
- HexShortin interface- PredefinedFromStringUnmarshallers
 
- 
HexInt- Specified by:
- HexIntin interface- PredefinedFromStringUnmarshallers
 
- 
HexLong- Specified by:
- HexLongin interface- PredefinedFromStringUnmarshallers
 
- 
applypublic <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)
 
- 
withMaterializerpublic <A,B> Unmarshaller<A,B> withMaterializer(scala.Function1<scala.concurrent.ExecutionContext, scala.Function1<org.apache.pekko.stream.Materializer, scala.Function1<A, scala.concurrent.Future<B>>>> f) 
- 
strictHelper for creating a synchronousUnmarshallerfrom the given function.- Parameters:
- f- (undocumented)
- Returns:
- (undocumented)
 
- 
firstOfpublic <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
- 
bestUnmarshallingCharsetForReturns 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)
 
 
-