public class NameUnmarshallerReceptacle<T>
extends java.lang.Object
Constructor and Description |
---|
NameUnmarshallerReceptacle(java.lang.String name,
Unmarshaller<java.lang.String,T> um) |
Modifier and Type | Method and Description |
---|---|
<B> NameUnmarshallerReceptacle<B> |
as(Unmarshaller<T,B> unmarshaller)
Extract the value as the specified type.
|
java.lang.String |
name() |
NameOptionUnmarshallerReceptacle<T> |
optional()
Extract the optional value as
Option[T] . |
RepeatedValueUnmarshallerReceptacle<T> |
repeated()
Extract multiple occurrences as
Iterable[String] . |
RequiredValueUnmarshallerReceptacle<T> |
requiredValue(T requiredValue)
Require the given value and extract nothing.
|
Unmarshaller<java.lang.String,T> |
um() |
NameDefaultUnmarshallerReceptacle<T> |
withDefault(T default_)
Extract the optional value as
T , if it is missing use the given default value. |
public NameUnmarshallerReceptacle(java.lang.String name, Unmarshaller<java.lang.String,T> um)
public <B> NameUnmarshallerReceptacle<B> as(Unmarshaller<T,B> unmarshaller)
pekko.http.scaladsl.unmarshalling.Unmarshaller
in scope for that to work.unmarshaller
- (undocumented)public java.lang.String name()
public NameOptionUnmarshallerReceptacle<T> optional()
Option[T]
.
Symbolic alias for optional
.public RepeatedValueUnmarshallerReceptacle<T> repeated()
Iterable[String]
.public RequiredValueUnmarshallerReceptacle<T> requiredValue(T requiredValue)
requiredValue
- (undocumented)public Unmarshaller<java.lang.String,T> um()
public NameDefaultUnmarshallerReceptacle<T> withDefault(T default_)
T
, if it is missing use the given default value.default_
- (undocumented)