trait HTree extends AnyRef
If your application has (at least partly) tree-like structure (URI nodes correspond to request handlers), you can assign handlers to tree nodes in eyes-friendly manner:
object MngApp extends HApp { def resolve(req: HReqHeaderData): Option[HLet] = admRoot.resolve(req.uriPath) private lazy val bookkeepers = "bookkeeper" += ( "new" ! stub("new bookkeeper - not implemented yet"), "list" ! adm.bk.ListBkLet ) private lazy val admRoot = "adm" += ( // adm root hasn't a handler. If has: "adm" ! adm.RootLet += ( "in" ! adm.InLet, // "domain.com/adm/in" "menu" ! adm.MenuLet, "manager" += ( "new" ! adm.man.NewManLet, "list" ! adm.man.ListManLet ), bookkeepers ) // ... }
- Self Type
- HTree
- Source
- HTree.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HTree
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- final def !(addLet: ⇒ HLet): HTree { def let: Some[tiscaf.HLet] }
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- final def +=(addLays: HTree*): HTree
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def dir: String
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[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()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lays: Seq[HTree]
- def let: Option[HLet]
-
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()
- final def resolve(uriPath: String): Option[HLet]
- final def resolve(dirs: Seq[String]): Option[HLet]
-
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
- @throws( ... ) @native()