Interface LowerPriorityGenericUnmarshallers
- All Known Subinterfaces:
- GenericUnmarshallers
- All Known Implementing Classes:
- Unmarshaller$
public interface LowerPriorityGenericUnmarshallers
- 
Method SummaryModifier and TypeMethodDescription<L,R> Unmarshaller<HttpEntity, scala.util.Either<L, R>> eitherUnmarshaller(Unmarshaller<HttpEntity, L> ua, scala.reflect.ClassTag<R> rightTag, Unmarshaller<HttpEntity, R> ub, scala.reflect.ClassTag<L> leftTag) Enables usingEitherto encode the following unmarshalling logic: Attempt unmarshalling the entity as asRfirst (yieldingR), and if it fails attempt unmarshalling asL(yieldingLeft).<A,B> Unmarshaller<scala.Option<A>, B> <T> Unmarshaller<HttpMessage,T> <A,B> Unmarshaller<scala.Option<A>, B> sourceOptionUnmarshaller(Unmarshaller<A, B> um) 
- 
Method Details- 
messageUnmarshallerFromEntityUnmarshaller<T> Unmarshaller<HttpMessage,T> messageUnmarshallerFromEntityUnmarshaller(Unmarshaller<HttpEntity, T> um) 
- 
liftToSourceOptionUnmarshaller
- 
sourceOptionUnmarshaller
- 
eitherUnmarshaller<L,R> Unmarshaller<HttpEntity,scala.util.Either<L, eitherUnmarshallerR>> (Unmarshaller<HttpEntity, L> ua, scala.reflect.ClassTag<R> rightTag, Unmarshaller<HttpEntity, R> ub, scala.reflect.ClassTag<L> leftTag) Enables usingEitherto encode the following unmarshalling logic: Attempt unmarshalling the entity as asRfirst (yieldingR), and if it fails attempt unmarshalling asL(yieldingLeft).The either unmarshaller only works with strict entities, so make sure to wrap routes that want to use it with toStrictEntity. Otherwise, if a non-strict entity is provided, it will fail with anIllegalArgumentException.Note that the Either's "R" type will be attempted first (as Left is often considered as the "failed case" in Either). - Parameters:
- ua- (undocumented)
- rightTag- (undocumented)
- ub- (undocumented)
- leftTag- (undocumented)
- Returns:
- (undocumented)
 
 
-