Package akka.http.scaladsl.common
Class NameUnmarshallerReceptacle<T>
java.lang.Object
akka.http.scaladsl.common.NameUnmarshallerReceptacle<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<B> NameUnmarshallerReceptacle<B>
as
(Unmarshaller<T, B> unmarshaller) Extract the value as the specified type.name()
optional()
Extract the optional value asOption[T]
.repeated()
Extract multiple occurrences asIterable[String]
.requiredValue
(T requiredValue) Require the given value and extract nothing.um()
withDefault
(T default_) Extract the optional value asT
, if it is missing use the given default value.
-
Constructor Details
-
NameUnmarshallerReceptacle
-
-
Method Details
-
as
Extract the value as the specified type. You need a matchingUnmarshaller
in scope for that to work.- Parameters:
unmarshaller
- (undocumented)- Returns:
- (undocumented)
-
name
-
optional
Extract the optional value asOption[T]
. Symbolic alias foroptional()
.- Returns:
- (undocumented)
-
repeated
Extract multiple occurrences asIterable[String]
.- Returns:
- (undocumented)
-
requiredValue
Require the given value and extract nothing. Reject if it is missing or has a different value.- Parameters:
requiredValue
- (undocumented)- Returns:
- (undocumented)
-
um
-
withDefault
Extract the optional value asT
, if it is missing use the given default value.- Parameters:
default_
- (undocumented)- Returns:
- (undocumented)
-