c

akka.http.scaladsl.common

NameReceptacle

class NameReceptacle[T] extends AnyRef

Source
NameReceptacle.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NameReceptacle
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new NameReceptacle(name: String)

Value Members

  1. def ![B](requiredValue: B): RequiredValueReceptacle[B]

    Require the given value and extract nothing.

    Require the given value and extract nothing. Reject if it is missing or has a different value. Symbolic alias for requiredValue.

  2. def *: RepeatedValueReceptacle[T]

    Extract multiple occurrences as Iterable[String].

    Extract multiple occurrences as Iterable[String]. Symbolic alias for repeated.

  3. def ?[B](default: B): NameDefaultReceptacle[B]

    Extract the optional value as String, if it is missing use the given default value.

    Extract the optional value as String, if it is missing use the given default value. Symbolic alias for withDefault.

  4. def ?: NameOptionReceptacle[T]

    Extract the optional value as Option[String].

    Extract the optional value as Option[String]. Symbolic alias for optional.

  5. def as[B](unmarshaller: Unmarshaller[T, B])(implicit fsu: FromStringUnmarshaller[T]): NameUnmarshallerReceptacle[B]

    Extract the value as the specified type with the given akka.http.scaladsl.unmarshalling.Unmarshaller.

  6. def as[B]: NameReceptacle[B]

    Extract the value as the specified type.

    Extract the value as the specified type. You need a matching akka.http.scaladsl.unmarshalling.Unmarshaller in scope for that to work.

  7. val name: String
  8. def optional: NameOptionReceptacle[T]

    Extract the optional value as Option[String].

  9. def repeated: RepeatedValueReceptacle[T]

    Extract multiple occurrences as Iterable[String].

  10. def requiredValue[B](requiredValue: B): RequiredValueReceptacle[B]

    Require the given value and extract nothing.

    Require the given value and extract nothing. Reject if it is missing or has a different value.

  11. def withDefault[B](default: B): NameDefaultReceptacle[B]

    Extract the optional value as String, if it is missing use the given default value.