Class NameReceptacle<T>
java.lang.Object
org.apache.pekko.http.scaladsl.common.NameReceptacle<T>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<B> NameReceptacle<B>as()Extract the value as the specified type.<B> NameUnmarshallerReceptacle<B>as(Unmarshaller<T, B> unmarshaller, Unmarshaller<String, T> fsu) Extract the value as the specified type with the givenpekko.http.scaladsl.unmarshalling.Unmarshaller.name()optional()Extract the optional value asOption[String].repeated()Extract multiple occurrences asIterable[String].<B> RequiredValueReceptacle<B>requiredValue(B requiredValue) Require the given value and extract nothing.<B> NameDefaultReceptacle<B>withDefault(B default_) Extract the optional value asString, if it is missing use the given default value.
- 
Constructor Details- 
NameReceptacle
 
- 
- 
Method Details- 
asExtract the value as the specified type. You need a matchingpekko.http.scaladsl.unmarshalling.Unmarshallerin scope for that to work.- Returns:
- (undocumented)
 
- 
aspublic <B> NameUnmarshallerReceptacle<B> as(Unmarshaller<T, B> unmarshaller, Unmarshaller<String, T> fsu) Extract the value as the specified type with the givenpekko.http.scaladsl.unmarshalling.Unmarshaller.- Parameters:
- unmarshaller- (undocumented)
- fsu- (undocumented)
- Returns:
- (undocumented)
 
- 
name
- 
optionalExtract the optional value asOption[String].- 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)
 
- 
withDefaultExtract the optional value asString, if it is missing use the given default value.- Parameters:
- default_- (undocumented)
- Returns:
- (undocumented)
 
 
-