final class RouterConfigDsl[Page] extends AnyRef
DSL for creating RouterConfig.
Instead creating an instance of this yourself, use RouterConfigDsl.apply.
- Alphabetic
- By Inheritance
- RouterConfigDsl
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RouterConfigDsl()
Type Members
- type Action = router.Action[Page]
- type Parsed = Either[router.Redirect[Page], Page]
- type Redirect = router.Redirect[Page]
- type Renderer = router.Renderer[Page]
- type Rule = StaticDsl.Rule[Page]
- type Rules = StaticDsl.Rules[Page]
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def Rule: StaticDsl.Rule.type
- implicit def _auto_notFound_from_parsed[A](a: A)(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Parsed
- implicit def _auto_notFound_from_parsedF[A](f: (Path) ⇒ A)(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Parsed
- implicit def _auto_pToAction_from_action(a: ⇒ Action): (Page) ⇒ Action
- implicit def _auto_parsedO_from_parsed[A](p: A)(implicit arg0: (A) ⇒ Parsed): Option[Parsed]
- implicit def _auto_parsedO_from_parsedO[A](o: Option[A])(implicit arg0: (A) ⇒ Parsed): Option[Parsed]
- implicit def _auto_parsed_from_page(p: Page): Parsed
- implicit def _auto_parsed_from_redirect(r: Redirect): Parsed
- implicit def _auto_pattern_from_regex(r: Regex): Pattern
- implicit def _auto_routeB_from_path(p: Path): RouteB[Unit]
- implicit def _auto_routeB_from_str(l: String): RouteB[Unit]
- implicit def _auto_routeParser_from_parsed[A](a: A)(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Option[Parsed]
- implicit def _auto_routeParser_from_parsedF[A](f: (Path) ⇒ A)(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Option[Parsed]
- implicit def _auto_routeParser_from_parsedFO[A](f: (Path) ⇒ Option[A])(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Option[Parsed]
- implicit def _auto_routeParser_from_parsedO[A](o: Option[A])(implicit arg0: (A) ⇒ Parsed): (Path) ⇒ Option[Parsed]
- implicit def _auto_route_from_routeB[A, R](r: R)(implicit arg0: (R) ⇒ RouteB[A]): Route[A]
- implicit def _auto_rules_from_rulesB(r: Rule): Rules
- implicit def _auto_someAction[A <: Action](a: A): Option[A]
- implicit def _ops_for_routeb_option[A](r: RouteB[Option[A]]): RouteBO[A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def dynRender[P <: Page, A](g: (P) ⇒ A)(implicit arg0: (A) ⇒ VdomElement): (P) ⇒ Renderer
- def dynRenderR[P <: Page, A](g: (P, RouterCtl[Page]) ⇒ A)(implicit arg0: (A) ⇒ VdomElement): (P) ⇒ Renderer
- def dynamicRedirect[A](r: Route[A]): DynamicRedirectB[Page, A, Rule]
- def dynamicRoute[P <: Page](r: Route[P])(pf: PartialFunction[Page, P]): DynamicRouteB[Page, P, Rule]
- def dynamicRouteCT[P <: Page](r: Route[P])(implicit ct: ClassTag[P]): DynamicRouteB[Page, P, Rule]
- def dynamicRouteF[P <: Page](r: Route[P])(op: (Page) ⇒ Option[P]): DynamicRouteB[Page, P, Rule]
- def emptyRule: Rule
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val int: RouteB[Int]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val long: RouteB[Long]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def redirectToPage(page: Page)(implicit method: Method): RedirectToPage[Page]
- def redirectToPath(path: String)(implicit method: Method): RedirectToPath[Page]
- def redirectToPath(path: Path)(implicit method: Method): RedirectToPath[Page]
-
def
remainingPath: RouteB[String]
Captures the (non-empty) remaining portion of the URL path.
-
def
remainingPathOrBlank: RouteB[String]
Captures the (potentially-empty) remaining portion of the URL path.
-
def
removeLeadingSlashes: Rule
A rule that uses a replace-state redirect to remove leading slashes from route URLs.
-
def
removeQuery: Rule
Removes the query portion of the URL.
Removes the query portion of the URL.
e.g.
a/b?c=1toa/b -
def
removeTrailingSlashes: Rule
A rule that uses a replace-state redirect to remove trailing slashes from route URLs.
- def render[A](a: ⇒ A)(implicit arg0: (A) ⇒ VdomElement): Renderer
- def renderR[A](g: (RouterCtl[Page]) ⇒ A)(implicit arg0: (A) ⇒ VdomElement): Renderer
- def rewritePath(pf: PartialFunction[Path, Redirect]): Rule
- def rewritePathF(f: (Path) ⇒ Option[Redirect]): Rule
- def rewritePathR(r: Pattern, f: (Matcher) ⇒ Option[Redirect]): Rule
- def root: Path
- def staticRedirect(r: Route[Unit]): StaticRedirectB[Page, Rule]
-
def
staticRoute(r: Route[Unit], page: Page): StaticRouteB[Page, Rule]
Note: Requires that
Page#equals()be sensible. -
def
string(regex: String): RouteB[String]
Matches a string.
Matches a string.
Best to use a whitelist of characters, eg. "[a-zA-Z0-9]+". Do not capture groups; use "[a-z]+" instead of "([a-z]+)". If you need to group, use non-capturing groups like "(?:bye|hello)" instead of "(bye|hello)".
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
trimSlashes: Rule
A rule that uses a replace-state redirect to remove leading and trailing slashes from route URLs.
- val uuid: RouteB[UUID]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )