Package

org.coursera.naptime

path

Permalink

package path

Visibility
  1. Public
  2. All

Type Members

  1. final case class :::[+H, +T <: ParsedPathKey](h: H, t: T) extends ParsedPathKey with Product with Serializable

    Permalink

    HCons - Add a new element (of arbitrary type) to the front of the list.

    HCons - Add a new element (of arbitrary type) to the front of the list.

    h

    The parsed element we are holding.

    t

    The rest of the HList.

  2. case class CollectionResourcePathParser[+T](resourceName: String, resourceVersion: Int)(implicit stringFormat: StringKeyFormat[T]) extends ResourcePathParser[T] with Product with Serializable

    Permalink
  3. final case class NestedPathKeyParser[+H, TailParseAsType <: ParsedPathKey](head: ResourcePathParser[H], tail: PathKeyParser[TailParseAsType]) extends PathKeyParser[:::[H, TailParseAsType]] with Product with Serializable

    Permalink

    HCons for parsers - includes an extra type parameter because we care about both the type we will parse as, as well as the type of the chain itself.

    HCons for parsers - includes an extra type parameter because we care about both the type we will parse as, as well as the type of the chain itself.

    H

    The type the head of the chain will parse as.

    TailParseAsType

    The tail of the chain will parse as this type

    head

    All information needed to parse from a URL something of the type H

    tail

    The rest of the parser chain.

  4. final case class ParseSuccess[+T](restOfUrl: Option[String], elem: T) extends UrlParseResult[T] with Product with Serializable

    Permalink
  5. sealed trait ParsedPathKey extends AnyRef

    Permalink

    A specialized HList with the minimal features required for our purposes.

    A specialized HList with the minimal features required for our purposes.

    Note, we use ::: for concatenation to separate ourselves from normal lists which use ::.

  6. sealed trait PathKeyParser[+ParseAsType <: ParsedPathKey] extends AnyRef

    Permalink

    An HList for parsers, usually built up automatically via the helper traits (TODO: FILL IN LINKS)

    An HList for parsers, usually built up automatically via the helper traits (TODO: FILL IN LINKS)

    ParseAsType

    The type this HList of parsers will parse a URL into.

  7. trait ResourcePathParser[+T] extends AnyRef

    Permalink

    Partially parses type T from a URL.

  8. sealed trait RootParsedPathKey extends ParsedPathKey

    Permalink

    HNil - the end of a ParsedPathKey.

  9. sealed trait RootPathParser extends PathKeyParser[RootParsedPathKey]

    Permalink

    The base / end of the PathKey HList-like datastructure.

  10. sealed trait UrlParseResult[+T] extends AnyRef

    Permalink

    Effectively an Option[(Option[String], T)] used for partially parsing URLs for PathKeys.

    Effectively an Option[(Option[String], T)] used for partially parsing URLs for PathKeys.

    T

    The type we are supposed to parse from the url.

Value Members

  1. object ParseFailure extends UrlParseResult[Nothing] with Product with Serializable

    Permalink

    Indicates the request did not match / did not parse successfully.

  2. object RootParsedPathKey extends RootParsedPathKey with Product with Serializable

    Permalink
  3. object RootPathParser extends RootPathParser with Product with Serializable

    Permalink

Ungrouped