Class NameUnmarshallerReceptacle<T>
java.lang.Object
org.apache.pekko.http.scaladsl.common.NameUnmarshallerReceptacle<T>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
asExtract the value as the specified type. You need a matchingpekko.http.scaladsl.unmarshalling.Unmarshallerin scope for that to work.- Parameters:
- unmarshaller- (undocumented)
- Returns:
- (undocumented)
 
- 
name
- 
optionalExtract the optional value asOption[T]. Symbolic alias foroptional().- Returns:
- (undocumented)
 
- 
repeatedExtract multiple occurrences asIterable[String].- Returns:
- (undocumented)
 
- 
requiredValueRequire the given value and extract nothing. Reject if it is missing or has a different value.- Parameters:
- requiredValue- (undocumented)
- Returns:
- (undocumented)
 
- 
um
- 
withDefaultExtract the optional value asT, if it is missing use the given default value.- Parameters:
- default_- (undocumented)
- Returns:
- (undocumented)
 
 
-