net.liftweb.http

TransientRequestVar

abstract class TransientRequestVar[T] extends AnyVar[T, TransientRequestVar[T]] with HasLogUnreadVal

A typesafe container for data with a lifetime strictly equal to the processing of a single HTTP request. Unlike ordinary RequestVar instances, TransientRequestVars will not maintain data for servicing of AJAX callbacks from a rendered page. This is useful in cases where the value stored within the RequestVar cannot safely be used across multiple requests; an example of such a value is a JTA UserTransaction which has a lifecycle strictly coupled to the actul HTTP request handling by the enclosing container.

Linear Supertypes
HasLogUnreadVal, AnyVar[T, TransientRequestVar[T]], AnyVarTrait[T, TransientRequestVar[T]], HasCalcDefaultValue[T], PSettableValueHolder[T], SettableValueHolder, Settable, PValueHolder[T], ValueHolder, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TransientRequestVar
  2. HasLogUnreadVal
  3. AnyVar
  4. AnyVarTrait
  5. HasCalcDefaultValue
  6. PSettableValueHolder
  7. SettableValueHolder
  8. Settable
  9. PValueHolder
  10. ValueHolder
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TransientRequestVar(dflt: ⇒ T)

    dflt

    - the default value to be returned if none was set prior to requesting a value to be returned from the container

Type Members

  1. type CleanUpParam = Box[LiftSession]

    Definition Classes
    TransientRequestVar → AnyVarTrait
  2. type FuncType = (Box[T], Boolean) ⇒ Unit

    Definition Classes
    AnyVarTrait
  3. type ValueType = T

    Definition Classes
    PValueHolder → ValueHolder

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def __nameSalt: String

    Attributes
    protected
    Definition Classes
    AnyVarTrait
  5. def apply(what: T): T

    Definition Classes
    AnyVarTrait
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def atomicUpdate(f: (ValueType) ⇒ ValueType): ValueType

    Definition Classes
    Settable
  8. def calcDefaultValue: T

    Attributes
    protected
    Definition Classes
    AnyVar → AnyVarTrait → HasCalcDefaultValue
  9. def clearFunc(name: String): Unit

    Attributes
    protected
    Definition Classes
    TransientRequestVar → AnyVarTrait
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def doSync[F](f: ⇒ F): F

    Different Vars require different mechanisms for synchronization.

    Different Vars require different mechanisms for synchronization. This method implements the Var specific synchronization mechanism

    Definition Classes
    TransientRequestVar → AnyVarTrait
  12. def doWith[F](newVal: T)(f: ⇒ F): F

    Definition Classes
    AnyVarTrait
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def findFunc(name: String): Box[T]

    Attributes
    protected
    Definition Classes
    TransientRequestVar → AnyVarTrait
  17. def get: T

    Definition Classes
    AnyVarTrait → ValueHolder
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. def is: T

    Definition Classes
    AnyVarTrait
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def logUnreadVal: Boolean

    This defines whether or not Lift will log when a RequestVar is set but then not read within the same request cycle.

    This defines whether or not Lift will log when a RequestVar is set but then not read within the same request cycle. Change this to false to turn off logging. Logging can also be turned off globally via LiftRules.logUnreadRequestVars.

    Definition Classes
    TransientRequestVar → HasLogUnreadVal
    See also

    LiftRules#logUnreadRequestVars

  23. lazy val name: String

    Attributes
    protected
    Definition Classes
    AnyVarTrait
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def onChange(f: FuncType): Unit

    Definition Classes
    AnyVarTrait
  28. def onShutdown(session: CleanUpParam): Unit

    Attributes
    protected
    Definition Classes
    AnyVarTrait
  29. def performAtomicOperation[T](f: ⇒ T): T

    Definition Classes
    Settable
  30. def registerCleanupFunc(in: (Box[LiftSession]) ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    TransientRequestVar → AnyVarTrait
  31. final def registerGlobalCleanupFunc(in: (CleanUpParam) ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    AnyVarTrait
  32. def remove(): Unit

    Definition Classes
    AnyVarTrait
  33. def set(what: T): T

    Definition Classes
    AnyVarTrait → Settable
  34. def setFunc(name: String, value: T): Unit

    Attributes
    protected
    Definition Classes
    TransientRequestVar → AnyVarTrait
  35. def setIfUnset(value: ⇒ T): T

    Definition Classes
    AnyVarTrait
  36. def set_?: Boolean

    Definition Classes
    AnyVarTrait
  37. def settingDefault_?: Boolean

    Attributes
    protected
    Definition Classes
    AnyVarTrait
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def testWasSet(name: String, bn: String): Boolean

    Attributes
    protected
    Definition Classes
    TransientRequestVar → AnyVarTrait
  40. def toString(): String

    Definition Classes
    AnyVarTrait → AnyRef → Any
  41. def update(f: (T) ⇒ T): T

    Definition Classes
    AnyVarTrait
  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def wasInitialized(name: String, bn: String): Boolean

    Attributes
    protected
    Definition Classes
    TransientRequestVar → AnyVarTrait

Inherited from HasLogUnreadVal

Inherited from AnyVar[T, TransientRequestVar[T]]

Inherited from AnyVarTrait[T, TransientRequestVar[T]]

Inherited from HasCalcDefaultValue[T]

Inherited from PSettableValueHolder[T]

Inherited from SettableValueHolder

Inherited from Settable

Inherited from PValueHolder[T]

Inherited from ValueHolder

Inherited from AnyRef

Inherited from Any

Ungrouped