package path
- Alphabetic
- Public
- All
Type Members
-
final
case class
:::[+H, +T <: ParsedPathKey](h: H, t: T) extends ParsedPathKey with Product with Serializable
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.
- case class CollectionResourcePathParser[+T](resourceName: String, resourceVersion: Int)(implicit stringFormat: StringKeyFormat[T]) extends ResourcePathParser[T] with Product with Serializable
-
final
case class
NestedPathKeyParser[+H, TailParseAsType <: ParsedPathKey](head: ResourcePathParser[H], tail: PathKeyParser[TailParseAsType]) extends PathKeyParser[:::[H, TailParseAsType]] with Product with Serializable
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.
- final case class ParseSuccess[+T](restOfUrl: Option[String], elem: T) extends UrlParseResult[T] with Product with Serializable
-
sealed
trait
ParsedPathKey extends AnyRef
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::. -
sealed
trait
PathKeyParser[+ParseAsType <: ParsedPathKey] extends AnyRef
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.
-
trait
ResourcePathParser[+T] extends AnyRef
Partially parses type
Tfrom a URL. -
sealed
trait
RootParsedPathKey extends ParsedPathKey
HNil - the end of a ParsedPathKey.
-
sealed
trait
RootPathParser extends PathKeyParser[RootParsedPathKey]
The base / end of the PathKey HList-like datastructure.
-
sealed
trait
UrlParseResult[+T] extends AnyRef
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
-
object
ParseFailure extends UrlParseResult[Nothing] with Product with Serializable
Indicates the request did not match / did not parse successfully.
- object RootParsedPathKey extends RootParsedPathKey with Product with Serializable
- object RootPathParser extends RootPathParser with Product with Serializable