net.liftweb.http.CometActor

trait CometActor

trait CometActor

 extends Actor with BindHelpers


Takes care of the plumbing for building Comet-based Web Apps


Source: CometActor.scala(195)

Direct Known Subclasses

CometListenee, StatefulComet,

 Fields

? def ? Any Actor
attributes def attributes Map[String, String]
composeFunction def composeFunction PartialFunction[Any, Unit]
defaultPrefix def defaultPrefix Box[String]
defaultXml def defaultXml NodeSeq
devMode protected def devMode
Set to 'true' if we should run "render" on every page load
Boolean
fixedRender def fixedRender Box[NodeSeq]
hasOuter def hasOuter Boolean
highPriority def highPriority PartialFunction[Any, Unit]
jsonCall lazy val jsonCall JsonCall
jsonInCode lazy val jsonInCode JsCmd
lowPriority def lowPriority PartialFunction[Any, Unit]
mailbox protected val mailbox MessageQueue Actor
mailboxSize def mailboxSize Int Actor
mediumPriority def mediumPriority PartialFunction[Any, Unit]
name def name Box[String]
onJsonError def onJsonError
If there's actor-specific JSON behavior on failure to make the JSON call, include the JavaScript here
Box[JsCmd]
parentTag def parentTag Elem
receiver def receiver Actor Actor
render abstract def render
It's the main method to override, to define what is rendered by the CometActor There are implicit conversions for a bunch of stuff to RenderOut (including NodeSeq) [details]
Thus, if you don't declare the return turn to be something other than RenderOut and return something that's coersable into RenderOut, the compiler "does the right thing"(tm) for you.
RenderOut
scheduler protected def scheduler IScheduler Actor
sender def sender OutputChannel[Any] Actor
theSession def theSession LiftSession
theType def theType Box[String]
trapExit var trapExit Boolean Actor
uniqueId val uniqueId String

 Methods

! def !(arg0 : Any) Unit Actor
!! def !!(arg0 : Any) Future[Any] Actor
!! def !![A](arg0 : Any, arg1 : PartialFunction[Any, A]) Future[A] Actor
!= final def !=(arg0 : Object) Boolean AnyRef
!= final def !=(arg0 : Any) Boolean Any
!? def !?(arg0 : Any) Any Actor
!? def !?(arg0 : Long, arg1 : Any) Option[Any] Actor
== final def ==(arg0 : Any) Boolean Any
== final def ==(arg0 : Object) Boolean AnyRef
act def act Unit
answer protected def answer(answer : Any) Unit
appendJsonHandler def appendJsonHandler(h : PartialFunction[Any, JsCmd])
Prepends the handler to the Json Handlers [details]
Should only be used during instantiation
param
h - -- the PartialFunction that can handle a JSON request
Unit
asInstanceOf final def asInstanceOf[T0] T0 Any
ask protected def ask(who : CometActor, what : Any)(answerWith : (Any) => Unit) Unit
bind def bind(vals : BindParam*) NodeSeq
bind def bind(arg0 : String, arg1 : Box[(NodeSeq) => NodeSeq], arg2 : Box[(PrefixedAttribute) => MetaData], arg3 : NodeSeq, arg4 : BindParam*) NodeSeq BindHelpers
bind def bind(arg0 : Map[String, NodeSeq], arg1 : NodeSeq) NodeSeq BindHelpers
bind def bind(prefix : String, vals : BindParam*) NodeSeq
bind def bind(arg0 : String, arg1 : NodeSeq, arg2 : BindParam*) NodeSeq BindHelpers
bindlist def bindlist(arg0 : List[Map[String, NodeSeq]], arg1 : NodeSeq) Box[NodeSeq] BindHelpers
buildSpan def buildSpan(time : Long, xml : NodeSeq)
Creates the span element acting as the real estate for commet rendering
NodeSeq
chooseTemplate def chooseTemplate(arg0 : String, arg1 : String, arg2 : NodeSeq) NodeSeq BindHelpers
clone protected def clone Object AnyRef
elemToFull implicit def elemToFull(in : Elem) Box[NodeSeq]
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
error def error(n : String)
Similar with S [details]
error
Unit
error def error(id : String, n : NodeSeq)
Similar with S [details]
error
Unit
error def error(id : String, n : String)
Similar with S [details]
error
Unit
error def error(n : NodeSeq)
Similar with S [details]
error
Unit
exit def exit(arg0 : Object) Nothing Actor
exit def exit Nothing Actor
finalize protected def finalize Unit AnyRef
findNode def findNode(arg0 : Elem, arg1 : NodeSeq) Box[Elem] BindHelpers
forward def forward(arg0 : Any) Unit Actor
getClass final def getClass Class[Any] AnyRef
handleJson def handleJson(in : Any) JsCmd
hashCode def hashCode Int AnyRef
isInstanceOf final def isInstanceOf[T0] Boolean Any
jsToXmlOrJsCmd implicit def jsToXmlOrJsCmd(in : JsCmd) RenderOut
link def link(arg0 : => Unit) Actor Actor
link def link(arg0 : AbstractActor) AbstractActor Actor
localSetup protected def localSetup
This method will be called after the Actor has started [details]
Do any setup here
Unit
localShutdown protected def localShutdown
This method will be called as part of the shut-down of the actor [details]
Release any resources here.
Unit
mixinAttributes def mixinAttributes(arg0 : Elem) NodeSeq BindHelpers
ne final def ne(arg0 : Object) Boolean AnyRef
nodeSeqToFull implicit def nodeSeqToFull(in : NodeSeq) Box[NodeSeq]
notice def notice(n : String)
Similar with S [details]
notice
Unit
notice def notice(id : String, n : NodeSeq)
Similar with S [details]
notice
Unit
notice def notice(id : String, n : String)
Similar with S [details]
notice
Unit
notice def notice(n : NodeSeq)
Similar with S [details]
notice
Unit
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
pairToPair implicit def pairToPair(in : (String, Any)) (String, NodeSeq)
partialUpdate protected def partialUpdate(cmd : => JsCmd) Unit
processBind def processBind(arg0 : NodeSeq, arg1 : Map[String, NodeSeq]) NodeSeq BindHelpers
reRender def reRender(sendAll : Boolean) Unit
react override def react(pf : PartialFunction[Any, Unit]) Nothing
reactWithin def reactWithin(arg0 : Long) Nothing Actor
receive def receive[R](arg0 : PartialFunction[Any, R]) R Actor
receiveWithin def receiveWithin[R](arg0 : Long) R Actor
reply def reply(arg0 : Any) Unit Actor
scheduleActor protected def scheduleActor(arg0 : PartialFunction[Any, Unit], arg1 : Any) Unit Actor
send def send(arg0 : Any, arg1 : OutputChannel[Any]) Unit Actor
start def start Actor Actor
startQuestion protected def startQuestion(what : Any) Unit
strToBPAssoc implicit def strToBPAssoc(arg0 : String) BindParamAssoc BindHelpers
strToSuperArrowAssoc implicit def strToSuperArrowAssoc(arg0 : String) SuperArrowAssoc BindHelpers
symToBPAssoc implicit def symToBPAssoc(arg0 : Symbol) BindParamAssoc BindHelpers
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
template def template(arg0 : NodeSeq, arg1 : String, arg2 : String, arg3 : String, arg4 : String) Box[(NodeSeq, NodeSeq, NodeSeq)] BindHelpers
template def template(arg0 : NodeSeq, arg1 : String, arg2 : String) Box[NodeSeq] BindHelpers
template def template(arg0 : NodeSeq, arg1 : String, arg2 : String, arg3 : String) Box[(NodeSeq, NodeSeq)] BindHelpers
toString def toString String AnyRef
unlink def unlink(arg0 : AbstractActor) Unit Actor
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait final def wait Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
warning def warning(n : String)
Similar with S [details]
warning
Unit
warning def warning(id : String, n : NodeSeq)
Similar with S [details]
warning
Unit
warning def warning(id : String, n : String)
Similar with S [details]
warning
Unit
warning def warning(n : NodeSeq)
Similar with S [details]
warning
Unit
xbind def xbind(arg0 : String, arg1 : NodeSeq) NodeSeq BindHelpers
xmlParam def xmlParam(arg0 : NodeSeq, arg1 : String) Box[String] BindHelpers
xmlToXmlOrJsCmd implicit def xmlToXmlOrJsCmd(in : NodeSeq) RenderOut
Copyright (c) 2007-2009 Lift Team. All Rights Reserved.