final class RouterLogic[Page] extends Broadcaster[Unit]
Performs all routing logic.
- Page
Routing rules context. Prevents different routing rule sets being mixed up.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RouterLogic
- Broadcaster
- Listenable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
RouterLogic(baseUrl: BaseUrl, cfg: RouterConfig[Page])
- baseUrl
The prefix of all routes in a set.
Type Members
- type Action = router.Action[Page]
- type Redirect = router.Redirect[Page]
- type Renderer = router.Renderer[Page]
- type Resolution = router.Resolution[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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val baseUrl: BaseUrl
-
def
broadcast(a: Unit): Callback
- Attributes
- protected
- Definition Classes
- Broadcaster
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val ctl: RouterCtl[Page]
- val ctlByPath: RouterCtl[Path]
-
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()
-
implicit
def
impbaseurl: BaseUrl
- Attributes
- protected
- Annotations
- @inline()
- def interpret[A](r: RouteCmd[A]): CallbackTo[A]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
listenerIterator: Iterator[(Unit) ⇒ Callback]
- Attributes
- protected
- Definition Classes
- Broadcaster
-
def
log(msg: ⇒ String): Log
- Attributes
- protected
- Annotations
- @inline()
-
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 parseUrl(url: AbsUrl): Option[Path]
- def redirect(r: Redirect): RouteCmd[Resolution]
- def redirectCmd(p: Path, m: Method): RouteCmd[Unit]
- def redirectToPath(path: Path, method: Method): RouteCmd[Resolution]
-
def
register(listener: (Unit) ⇒ Callback): CallbackTo[Callback]
Register a listener.
Register a listener.
- listener
The listener/consumer. A procedure that receives data of type A.
- returns
A procedure to unregister the given listener.
- Definition Classes
- Broadcaster → Listenable
- def render(r: Resolution): VdomElement
- def resolve(page: Page, action: Action): RouteCmd[Resolution]
- def resolveAction(a: Action): Either[RouteCmd[Resolution], Renderer]
- def setPath(path: Path): RouteCmd[Unit]
- def syncToPath(path: Path): RouteCmd[Resolution]
- def syncToUrl(url: AbsUrl): RouteCmd[Resolution]
- val syncToWindowUrl: CallbackTo[Resolution]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )
- def wrongBase(wrongUrl: AbsUrl): RouteCmd[Resolution]
Deprecated Value Members
-
final
def
listeners: List[(Unit) ⇒ Callback]
- Attributes
- protected
- Definition Classes
- Broadcaster
- Annotations
- @deprecated
- Deprecated
(Since version 1.2.0) Use listenerIterator