request

olon.http.Factory.FactoryMaker.request
object request extends RequestVar[Maker[T]]

The request specific Maker for creating an instance

Attributes

Graph
Supertypes
class RequestVar[Maker[T]]
class AnyVar[Maker[T], RequestVar[Maker[T]]]
trait AnyVarTrait[Maker[T], RequestVar[Maker[T]]]
trait HasCalcDefaultValue[Maker[T]]
trait PSettableValueHolder[Maker[T]]
trait SettableValueHolder
trait Settable
trait PValueHolder[Maker[T]]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
request.type

Members list

Type members

Inherited types

Attributes

Inherited from:
RequestVar
type FuncType = (Box[Maker[T]], Boolean) => Unit

The function takes a Box[T] (Full if the Var is being set, Empty if it's being cleared) and a Boolean indicating that the set function is setting to the default value.

The function takes a Box[T] (Full if the Var is being set, Empty if it's being cleared) and a Boolean indicating that the set function is setting to the default value.

Attributes

Inherited from:
AnyVarTrait
type ValueType = Maker[T]

Attributes

Inherited from:
PValueHolder

Value members

Inherited methods

def apply(what: Maker[T]): Maker[T]

Set the session variable

Set the session variable

Value parameters

what

-- the value to set the session variable to

Attributes

Inherited from:
AnyVarTrait
def atomicUpdate(f: ValueType => ValueType): ValueType

Perform an atomic update of this Settable. The current value is passed to the function and the ValueHolder is set to the result of the function. This is enclosed in the performAtomicOperation method which will, by default, synchronize this instance

Perform an atomic update of this Settable. The current value is passed to the function and the ValueHolder is set to the result of the function. This is enclosed in the performAtomicOperation method which will, by default, synchronize this instance

Attributes

Inherited from:
Settable
def doSync[F](f: => F): F

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

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

Attributes

Inherited from:
RequestVar
def doWith[F](newVal: Maker[T])(f: => F): F

Change the value of the Var for the lifespan of the function

Change the value of the Var for the lifespan of the function

Attributes

Inherited from:
AnyVarTrait
final def generateSnapshotRestorer[T](): (() => T) => T

Generate a function that will take a snapshot of the current RequestVars such that they can be restored

Generate a function that will take a snapshot of the current RequestVars such that they can be restored

Attributes

Inherited from:
RequestVar
def get: Maker[T]

Shadow of the 'is' method

Shadow of the 'is' method

Attributes

Inherited from:
AnyVarTrait
def is: Maker[T]

The current value of the variable

The current value of the variable

Attributes

Inherited from:
AnyVarTrait

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.

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.

Attributes

See also

LiftRules#logUnreadRequestVars

Inherited from:
RequestVar
def onChange(f: FuncType): Unit

On any change to this Var, invoke the function. Changes are setting the value, clearing the value. There may not be a call if the Var goes out of scope (e.g., a RequestVar at the end of the Request).

On any change to this Var, invoke the function. Changes are setting the value, clearing the value. There may not be a call if the Var goes out of scope (e.g., a RequestVar at the end of the Request).

The function takes a Box[T] (Full if the Var is being set, Empty if it's being cleared) and a Boolean indicating that the set function is setting to the default value.

The function should execute very quickly (e.g., Schedule a function to be executed on a different thread).

The function should generally be set in Boot or when a singleton is created.

Value parameters

f

the function to execute on change

Attributes

Inherited from:
AnyVarTrait
protected def onShutdown(session: CleanUpParam): Unit

Attributes

Inherited from:
AnyVarTrait
def performAtomicOperation[T](f: => T): T

Perform an atomic operation on the Settable. By default synchronizes the instance, but it could use other mechanisms

Perform an atomic operation on the Settable. By default synchronizes the instance, but it could use other mechanisms

Attributes

Inherited from:
Settable
final protected def registerGlobalCleanupFunc(in: CleanUpParam => Unit): Unit

Attributes

Inherited from:
AnyVarTrait
def remove(): Unit

Attributes

Inherited from:
AnyVarTrait
def set(what: Maker[T]): Maker[T]

Shadow of the apply method

Shadow of the apply method

Attributes

Inherited from:
AnyVarTrait
def setIfUnset(value: => Maker[T]): Maker[T]

Set the Var if it has not been calculated

Set the Var if it has not been calculated

Attributes

Inherited from:
AnyVarTrait
def set_?: Boolean

Has this Var been set or accessed and had its default value calculated

Has this Var been set or accessed and had its default value calculated

Attributes

Inherited from:
AnyVarTrait
protected def settingDefault_?: Boolean

Attributes

Inherited from:
AnyVarTrait
def snapshot(): () => Unit

Return a function that, when applied, will set the value of the RequestVar to its current value

Return a function that, when applied, will set the value of the RequestVar to its current value

Attributes

Inherited from:
RequestVar

Is this RequestVar a member of a snapshot group? If so, specify the group here

Is this RequestVar a member of a snapshot group? If so, specify the group here

Attributes

Inherited from:
RequestVar
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
AnyVarTrait -> Any
Inherited from:
AnyVarTrait
def update(f: (Maker[T]) => Maker[T]): Maker[T]

Applies the given function to the contents of this variable and sets the variable to the resulting value.

Applies the given function to the contents of this variable and sets the variable to the resulting value.

Value parameters

f

-- the function to apply and set the result from.

Attributes

Inherited from:
AnyVarTrait

Inherited fields

lazy protected val name: String

Attributes

Inherited from:
AnyVarTrait