net.liftweb.http

LiftRules

class LiftRules extends Factory with FormVendor with LazyLoggable

LiftRules is the global object that holds all of Lift's configuration.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. LiftRules
  2. LazyLoggable
  3. FormVendor
  4. Factory
  5. SimpleInjector
  6. Injector
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LiftRules ()

Type Members

  1. class FactoryMaker [T] extends StackableMaker[T] with Vendor[T]

    Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.

  2. trait FirstBox [F, T] extends AnyRef

  3. class Inject [T] extends StackableMaker[T] with Vendor[T]

    Create an object or val that is a subclass of the FactoryMaker to generate factory for a particular class as well as define session and request specific vendors and use doWith to define the vendor just for the scope of the call.

  4. class RulesSeq [T] extends AnyRef

    Generic container used mainly for adding functions

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

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

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. object RulesSeq extends AnyRef

  7. def addSyncProvider (asyncMeta: AsyncProviderMeta): Unit

    Register an AsyncMeta provider in addition to the default Jetty6, Jetty7, and Servlet 3.

    Register an AsyncMeta provider in addition to the default Jetty6, Jetty7, and Servlet 3.0 providers

  8. def addToPackages (what: Package): Unit

    Tells Lift where to find Snippets,Views, Comet Actors and Lift ORM Model object

  9. def addToPackages (what: String): Unit

    Tells Lift where to find Snippets,Views, Comet Actors and Lift ORM Model object

  10. val afterSend : RulesSeq[(BasicResponse, HTTPResponse, List[(String, String)], Box[Req]) ⇒ Any]

    Holds user functions that are executed after the response was sent to client.

    Holds user functions that are executed after the response was sent to client. The functions' result will be ignored.

  11. var ajaxDefaultFailure : Box[() ⇒ JsCmd]

    The default action to take when the JavaScript action fails

  12. var ajaxEnd : Box[() ⇒ JsCmd]

    The JavaScript to execute at the end of an Ajax request (for example, removing the spinning working thingy)

  13. var ajaxPath : String

    Contains the Ajax URI path used by Lift to process Ajax requests.

  14. var ajaxPostTimeout : Int

  15. var ajaxRetryCount : Box[Int]

    How many times do we retry an Ajax command before calling it a failure?

  16. var ajaxScriptName : () ⇒ String

    The name of the Ajax script that manages Ajax requests.

  17. var ajaxScriptUpdateTime : (LiftSession) ⇒ Long

    Holds the last update time of the Ajax request.

    Holds the last update time of the Ajax request. Based on this server mayreturn HTTP 304 status indicating the client to used the cached information.

  18. var ajaxStart : Box[() ⇒ JsCmd]

    The JavaScript to execute at the begining of an Ajax request (for example, showing the spinning working thingy)

  19. val allowParallelSnippets : FactoryMaker[Boolean]

    Does the current context support parallel snippet execution

  20. def appendGlobalFormBuilder [T] (builder: FormBuilderLocator[T]): Unit

    Definition Classes
    FormVendor
  21. def appendRequestFormBuilder [T] (builder: FormBuilderLocator[T]): Unit

    Definition Classes
    FormVendor
  22. def appendSessionFormBuilder [T] (builder: FormBuilderLocator[T]): Unit

    Definition Classes
    FormVendor
  23. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  24. lazy val asyncProviderMeta : Box[AsyncProviderMeta]

    The meta for the detected AsyncProvider given the container we're running in

  25. var attachResourceId : (String) ⇒ String

    Attached an ID entity for resource URI specified in link or script tags.

    Attached an ID entity for resource URI specified in link or script tags. This allows controlling browser resource caching. By default this just adds a query string parameter unique per application lifetime. More complex implementation could user per resource MD5 sequences thus "forcing" browsers to refresh the resource only when the resource file changes. Users can define other rules as well. Inside user's function it is safe to use S context as attachResourceId is called from inside the <lift:with-resource-id> snippet

  26. var authentication : HttpAuthentication

    The HTTP authentication mechanism that ift will perform.

    The HTTP authentication mechanism that ift will perform. See LiftRules.protectedResource

  27. var autoIncludeAjax : (LiftSession) ⇒ Boolean

    Tells Lift if the Ajax JavaScript shoukd be included.

    Tells Lift if the Ajax JavaScript shoukd be included. By default it is set to true.

  28. var autoIncludeComet : (LiftSession) ⇒ Boolean

    Tells Lift if the Comet JavaScript shoukd be included.

    Tells Lift if the Comet JavaScript shoukd be included. By default it is set to true.

  29. val beforeSend : RulesSeq[(BasicResponse, HTTPResponse, List[(String, String)], Box[Req]) ⇒ Any]

    Holds user functions that are executed before sending the response to client.

    Holds user functions that are executed before sending the response to client. The functions' result will be ignored.

  30. def buildPackage (end: String): List[String]

    Used by Lift to construct full pacakge names fromthe packages provided to addToPackages function

  31. var calcCometPath : (String) ⇒ JsExp

    Computes the Comet path by adding additional tokens on top of cometPath

  32. var calcIE6ForResponse : () ⇒ Boolean

  33. var calcIEMode : () ⇒ Boolean

    The function that calculates if the response should be rendered in IE6/7 compatibility mode

  34. var calcRequestTimeout : Box[(Req) ⇒ Int]

    Put a function that will calculate the request timeout based on the incoming request.

  35. var calculateContextPath : () ⇒ Box[String]

    If there is an alternative way of calculating the context path (by default returning Empty)

    If there is an alternative way of calculating the context path (by default returning Empty)

    If this function returns an Empty, the contextPath provided by the container will be used.

  36. var calculateXmlHeader : (NodeResponse, Node, Box[String]) ⇒ String

    An XML header is inserted at the very beginning of returned XHTML pages.

    An XML header is inserted at the very beginning of returned XHTML pages. This function defines the cases in which such a header is inserted. The function takes a NodeResponse (the LiftResponse that is converting the XML to a stream of bytes), the Node (root node of the XML), and a Box containing the content type.

  37. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. val cometCreation : RulesSeq[CometCreationPF]

    Partial function to allow you to build a CometActor from code rather than via reflection

  39. val cometCreationFactory : FactoryMaker[(CometCreationInfo) ⇒ Box[LiftCometActor]]

    A factory that will vend comet creators

  40. var cometFailureRetryTimeout : Long

    If a Comet request fails timeout for this period of time.

    If a Comet request fails timeout for this period of time. Default value is 10 seconds

  41. var cometGetTimeout : Int

  42. def cometLogger : Logger

    Holds the CometLogger that will be used to log comet activity

  43. def cometLogger_= (newLogger: Logger): Unit

    Holds the CometLogger that will be used to log comet activity

  44. var cometPath : String

    Contains the Comet URI path used by Lift to process Comet requests.

  45. var cometRequestTimeout : Box[Int]

    If you want the AJAX request timeout to be something other than 120 seconds, put the value here

  46. var cometScriptName : () ⇒ String

    The name of the Comet script that manages Comet requests.

  47. var cometScriptUpdateTime : (LiftSession) ⇒ Long

    Holds the last update time of the Comet request.

    Holds the last update time of the Comet request. Based on this server mayreturn HTTP 304 status indicating the client to used the cached information.

  48. var cometServer : () ⇒ String

    Calculate the Comet Server (by default, the server that the request was made on, but can do the multi-server thing as well)

  49. def configureLogging : () ⇒ Unit

    Holds the function that configures logging.

    Holds the function that configures logging. Must be set before any loggers are created

  50. def configureLogging_= (newConfigurer: () ⇒ Unit): Unit

    Holds the function that configures logging.

    Holds the function that configures logging. Must be set before any loggers are created

  51. def context : HTTPContext

    Returns the HTTPContext

  52. var convertResponse : PartialFunction[(Any, List[(String, String)], List[HTTPCookie], Req), LiftResponse]

    convertResponse is a PartialFunction that reduces a given Tuple4 into a LiftResponse that can then be sent to the browser.

  53. val convertToEntity : FactoryMaker[Boolean]

    Should codes that represent entities be converted to XML entities when rendered?

  54. val dateTimeConverter : FactoryMaker[DateTimeConverter]

  55. def defaultGetResource (name: String): Box[URL]

    Obtain the resource URL by name

  56. var defaultHeaders : PartialFunction[(NodeSeq, Req), List[(String, String)]]

  57. def defaultLocaleCalculator (request: Box[HTTPRequest]): Locale

  58. def defaultTimeZoneCalculator (request: Box[HTTPRequest]): TimeZone

  59. val deferredSnippetFailure : FactoryMaker[(Failure) ⇒ NodeSeq]

    If a deferred snippet has a failure during render, what should we display?

  60. val deferredSnippetTimeout : FactoryMaker[NodeSeq]

    If a deferred snippet has a failure during render, what should we display?

  61. var determineContentType : PartialFunction[(Box[Req], Box[String]), String]

    A partial function that determines content type based on an incoming Req and Accept header

  62. var devModeFailureResponseCodeOverride : Box[Int]

    In Dev mode and Test mode, return a non-200 response code if there is an error on the page (one that would result in the red box with the error message being displayed).

    In Dev mode and Test mode, return a non-200 response code if there is an error on the page (one that would result in the red box with the error message being displayed). This helps in automate testing

  63. val dispatch : RulesSeq[DispatchPF]

    Holds the user's DispatchPF functions that will be executed in stateful context

  64. var displayHelpfulSiteMapMessages_? : Boolean

    Set to false if you want to have 404's handled the same way in dev and production mode

  65. def doWith [F, T] (builder: FormBuilderLocator[T])(f: ⇒ F): F

    Definition Classes
    FormVendor
  66. def doWithResource [T] (name: String)(f: (InputStream) ⇒ T): Box[T]

    Open a resource by name and process its contents using the supplied function.

  67. def doneBoot : Boolean

    Does the LiftRules instance think it's done booting?

  68. val early : RulesSeq[(HTTPRequest) ⇒ Any]

    Holds user functions that willbe executed very early in the request processing.

    Holds user functions that willbe executed very early in the request processing. The functions' result will be ignored.

  69. val earlyInStateful : RulesSeq[(Box[Req]) ⇒ Unit]

    Execute certain functions early in a Stateful Request

  70. val earlyInStateless : RulesSeq[(Box[Req]) ⇒ Unit]

    Execute certain functions early in a Stateful Request

  71. val earlyResponse : RulesSeq[(Req) ⇒ Box[LiftResponse]] with FirstBox[Req, LiftResponse]

  72. var enableContainerSessions : Boolean

  73. var enableLiftGC : Boolean

    By default lift uses a garbage-collection mechanism of removing unused bound functions from LiftSesssion.

    By default lift uses a garbage-collection mechanism of removing unused bound functions from LiftSesssion. Setting this to false will disable this mechanims and there will be no Ajax polling requests attempted.

  74. var encodeJSessionIdInUrl_? : Boolean

    Should the JSESSIONID be encoded in the URL if cookies are not supported

  75. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  76. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  77. var exceptionHandler : RulesSeq[ExceptionHandlerPF]

    The sequence of partial functions (pattern matching) for handling converting an exception to something to be sent to the browser depending on the current RunMode (development, etc.

    The sequence of partial functions (pattern matching) for handling converting an exception to something to be sent to the browser depending on the current RunMode (development, etc.)

    By default it returns an XhtmlResponse containing a predefined markup. You can overwrite this by calling LiftRules.exceptionHandler.prepend(...). If you are calling append then your code will not be calle since a default implementation is already appended.

  78. val excludePathFromContextPathRewriting : FactoryMaker[(String) ⇒ Boolean]

    Update the function here that calculates particular paths to exclused from context path rewriting

  79. var explicitlyParsedSuffixes : Set[String]

    When a request is parsed into a Req object, certain suffixes are explicitly split from the last part of the request URI.

    When a request is parsed into a Req object, certain suffixes are explicitly split from the last part of the request URI. If the suffix is contained in this list, it is explicitly split. The default list is: "html", "htm", "jpg", "png", "gif", "xml", "rss", "json" ...

  80. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  81. def fixCSS (path: List[String], prefix: Box[String]): Unit

    Modifies the root relative paths from the css url-s

    Modifies the root relative paths from the css url-s

    path

    - the path of the css resource

  82. var flipDocTypeForIE6 : Boolean

  83. val formAttrs : FactoryMaker[List[String]]

    If you use the form attribute in a snippet invocation, what attributes should be copied from the snippet invocation tag to the form tag.

    If you use the form attribute in a snippet invocation, what attributes should be copied from the snippet invocation tag to the form tag. The default list is "class", "id", "target", "style", "onsubmit"

  84. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  85. var getLiftSession : (Req) ⇒ LiftSession

  86. var getResource : (String) ⇒ Box[URL]

    Obtain the resource URL by name

  87. var handleMimeFile : (String, String, String, InputStream) ⇒ FileParamHolder

    The function that converts a fieldName, contentType, fileName and an InputStream into a FileParamHolder.

    The function that converts a fieldName, contentType, fileName and an InputStream into a FileParamHolder. By default, create an in-memory instance. Use OnDiskFileParamHolder to create an on-disk version

  88. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  89. val htmlProperties : FactoryMaker[(Req) ⇒ HtmlProperties]

    A unified set of properties for managing how to treat HTML, XHTML, HTML5.

    A unified set of properties for managing how to treat HTML, XHTML, HTML5. The default behavior is to return an OldHtmlPropteries instance, but you can change this to return an Html5Properties instance any you'll get HTML5 support. LiftRules.htmlProperties.default.set((r: Req) => new Html5Properties(r.userAgent))

  90. val httpAuthProtectedResource : RulesSeq[HttpAuthProtectedResourcePF]

    Defines the resources that are protected by authentication and authorization.

    Defines the resources that are protected by authentication and authorization. If this function is not defined for the input data, the resource is considered unprotected ergo no authentication is performed. If this function is defined and returns a Full box, it means that this resource is protected by authentication,and authenticated subjed must be assigned to the role returned by this function or to a role that is child-of this role. If this function returns Empty it means that this resource is protected by authentication but no authorization is performed meaning that roles are not verified.

  91. implicit def inject [T] (implicit man: Manifest[T]): Box[T]

    Perform the injection for the given type.

    Perform the injection for the given type. You can call: inject[Date] or inject[List[Map[String, PaymentThing]]]. The appropriate Manifest will be

    Attributes
    implicit
    Definition Classes
    SimpleInjectorInjector
  92. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  93. var jsArtifacts : JSArtifacts

    Holds the JS library specific UI artifacts.

    Holds the JS library specific UI artifacts. By efault it uses JQuery's artifacts

  94. val jsonOutputConverter : FactoryMaker[(Document) ⇒ String]

    The function that converts a scala.

    The function that converts a scala.text.Document to a String (used for JsonAST.JValue to text convertion. By default, use Printer.pretty for dev mode and Printer.compact for other modes

  95. val lazySnippetTimeout : FactoryMaker[TimeSpan]

    How long should we wait for all the lazy snippets to render

  96. lazy val liftBuildDate : Date

  97. var liftCoreResourceName : String

    The base name of the resource bundle of the lift core code

  98. var liftGCFailureRetryTimeout : Long

    The polling interval for background Ajax requests to keep functions to not be garbage collected.

    The polling interval for background Ajax requests to keep functions to not be garbage collected. This will be applied if the Ajax request will fail. Default value is set to 15 seconds.

  99. var liftGCPollingInterval : Long

    The polling interval for background Ajax requests to prevent functions of being garbage collected.

    The polling interval for background Ajax requests to prevent functions of being garbage collected. Default value is set to 75 seconds.

  100. val liftRequest : RulesSeq[LiftRequestPF]

    Get the partial function that defines if a request should be handled by the application (rather than the default container handler)

  101. val liftTagProcessing : RulesSeq[LiftTagPF]

    Allows user adding additional Lift tags (the tags must be prefixed by lift namespace such as <lift:xxxx/>).

    Allows user adding additional Lift tags (the tags must be prefixed by lift namespace such as <lift:xxxx/>). Each LiftTagPF function will be called with the folowing parameters:

     - Element label,
     - The Element itselft,
     - The attrbutes
     - The child nodes
     - The page name
    

  102. lazy val liftVersion : String

  103. def loadResource (name: String): Box[Array[Byte]]

    Obtain the resource as an array of bytes by name

  104. def loadResourceAsString (name: String): Box[String]

    Obtain the resource as a String by name

  105. def loadResourceAsXml (name: String): Box[NodeSeq]

    Obtain the resource as an XML by name.

    Obtain the resource as an XML by name. If you're using this to load a template, consider using the Template object instead.

    See also

    Template

  106. var localeCalculator : (Box[HTTPRequest]) ⇒ Locale

    A function that takes the current HTTP request and returns the current

  107. var localizationLookupFailureNotice : Box[(String, Locale) ⇒ Unit]

    The function referenced here is called if there's a localization lookup failure

  108. var localizeStringToXml : (String) ⇒ NodeSeq

    A function that defines how a String should be converted to XML for the localization stuff.

    A function that defines how a String should be converted to XML for the localization stuff. By default, Text(s) is returned, but you can change this to attempt to parse the XML in the String and return the NodeSeq.

  109. var logServiceRequestTiming : Boolean

    Controls whether or not the service handling timing messages (Service request (GET) .

    Controls whether or not the service handling timing messages (Service request (GET) ... took ... Milliseconds) are logged. Defaults to true.

  110. var logUnreadRequestVars : Boolean

    This variable controls whether RequestVars that have been set but not subsequently read will be logged in Dev mode.

    This variable controls whether RequestVars that have been set but not subsequently read will be logged in Dev mode. Logging can be disabled at the per-RequestVar level via RequestVar.logUnreadVal

    See also

    RequestVar#logUnreadVal

  111. var loggedInTest : Box[() ⇒ Boolean]

    Put a test for being logged in into this function

  112. lazy val logger : Logger

    Attributes
    protected
    Definition Classes
    LazyLoggable
  113. var makeCometBreakoutDecision : (LiftSession, Req) ⇒ Unit

    A function that takes appropriate action in breaking out of any existing comet requests based on the request, browser type, etc.

  114. val maxConcurrentRequests : FactoryMaker[(Req) ⇒ Int]

    The maximum concurrent requests.

    The maximum concurrent requests. If this number of requests are being serviced for a given session, messages will be sent to all Comet requests to terminate

  115. var maxMimeFileSize : Long

    The maximum allowed size of a single file in a mime multi-part POST.

    The maximum allowed size of a single file in a mime multi-part POST. Default 7MB

  116. var maxMimeSize : Long

    The maximum allowed size of a complete mime multi-part POST.

    The maximum allowed size of a complete mime multi-part POST. Default 8MB

  117. def mimeHeaders : Box[Map[String, List[String]]]

    Returns any mimeHeaders for the currently invoked handleMimeFile.

  118. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  119. var noCometSessionPage : String

    Where to send the user if there's no comet session

  120. val noticesAutoFadeOut : FactoryMaker[(Value) ⇒ Box[(TimeSpan, TimeSpan)]]

    Set the default fadeout mechanism for Lift notices.

    Set the default fadeout mechanism for Lift notices. Thus you provide a function that take a NoticeType.Value and decide the duration after which the fade out will start and the actual fadeout time. This is applicable for general notices (not associated with id-s) regardless if they are set for the page rendering, ajax response or Comet response.

  121. def noticesContainerId : String

  122. val noticesEffects : FactoryMaker[(Box[Value], String) ⇒ Box[JsCmd]]

    Use this to apply various effects to the notices.

    Use this to apply various effects to the notices. The user function receives the NoticeType and the id of the element containing the specific notice. Thus it is the function's responsability to form the javascript code for the visual effects. This is applicable for both ajax and non ajax contexts. For notices associated with ID's the user type will receive an Empty notice type. That's because the effect is applied on the real estate holding the notices for this ID. Typically this contains a single message.

  123. var noticesToJsCmd : () ⇒ JsCmd

    This function is called to convert the current set of Notices into a JsCmd that will be executed on the client to display the Notices.

    This function is called to convert the current set of Notices into a JsCmd that will be executed on the client to display the Notices.

    See also

    net.liftweb.builtin.snippet.Msgs

  124. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  125. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  126. val onBeginServicing : RulesSeq[(Req) ⇒ Unit]

    Holds user function hooks when the request is about to be processed

  127. val onEndServicing : RulesSeq[(Req, Box[LiftResponse]) ⇒ Unit]

    Holds user function hooks when the request was processed

  128. val overwrittenReponseHeaders : FactoryMaker[List[String]]

    By default, Http response headers are appended.

    By default, Http response headers are appended. However, there are some headers that should only appear once (for example "expires"). This Vendor vends the list of header responses that can only appear once.

  129. var passNotFoundToChain : Boolean

    Should pages that are not found be passed along the request processing chain to the next handler outside Lift?

  130. def performTransform (in: LiftResponse): LiftResponse

    Runs responseTransformers

  131. val preAccessControlResponse_!! : RulesSeq[(Req) ⇒ Box[LiftResponse]] with FirstBox[Req, LiftResponse]

  132. def prependGlobalFormBuilder [T] (builder: FormBuilderLocator[T]): Unit

    Definition Classes
    FormVendor
  133. def prependRequestFormBuilder [T] (builder: FormBuilderLocator[T]): Unit

    Definition Classes
    FormVendor
  134. def prependSessionFormBuilder [T] (builder: FormBuilderLocator[T]): Unit

    Definition Classes
    FormVendor
  135. var progressListener : (Long, Long, Int) ⇒ Unit

    The global multipart progress listener: pBytesRead - The total number of bytes, which have been read so far.

    The global multipart progress listener: pBytesRead - The total number of bytes, which have been read so far. pContentLength - The total number of bytes, which are being read. May be -1, if this number is unknown. pItems - The number of the field, which is currently being read. (0 = no item so far, 1 = first item is being read, ...)

  136. var redirectAjaxOnSessionLoss : Boolean

    Set to false if you do not want Ajax/Comet requests that are not associated with a session to cause a page reload

  137. def registerInjection [T] (f: () ⇒ T)(implicit man: Manifest[T]): Unit

    Register a function that will inject for the given Manifest

    Register a function that will inject for the given Manifest

    Definition Classes
    SimpleInjector
  138. var renderAjaxScript : (LiftSession) ⇒ JsCmd

    Returns the JavaScript that manages Ajax requests.

  139. var renderCometPageContents : (LiftSession, Seq[CometVersionPair]) ⇒ JsCmd

    Renders that JavaScript that holds Comet identification information

  140. var renderCometScript : (LiftSession) ⇒ JsCmd

    Returns the JavaScript that manages Comet requests.

  141. var requestTimedOut : Box[(Req, Any) ⇒ Box[LiftResponse]]

    If the request times out (or returns a non-Response) you can intercept the response here and create your own response

  142. val resourceBundleFactories : RulesSeq[ResourceBundleFactoryPF]

  143. val resourceForCurrentLoc : FactoryMaker[() ⇒ List[ResourceBundle]]

    Given the current location (based on the Req.

    Given the current location (based on the Req.path.partPath), what are the resource bundles in the templates for the current page.

    See also

    DefaultRoutines.resourceForCurrentLoc()

  144. var resourceNames : List[String]

    The base name of the resource bundle

  145. var resourceServerPath : String

    The path to handle served resources

  146. val responseTransformers : RulesSeq[(LiftResponse) ⇒ LiftResponse]

    Holds the user's transformer functions allowing the user to modify a LiftResponse before sending it to client.

  147. def searchSnippetsWithRequestPath (name: String): List[String]

    Implementation for snippetNamesToSearch that looks first in a package named by taking the current template path.

    Implementation for snippetNamesToSearch that looks first in a package named by taking the current template path. For example, suppose the following is configured in Boot: LiftRules.snippetNamesToSearch.default.set(() => LiftRules.searchSnippetsWithRequestPath) LiftRules.addToPackages("com.mycompany.myapp") LiftRules.addToPackages("com.mycompany.mylib") The tag <lift:MySnippet> in template foo/bar/baz.html would search for the snippet in the following locations:

    • com.mycompany.myapp.snippet.foo.bar.MySnippet
    • com.mycompany.myapp.snippet.MySnippet
    • com.mycompany.mylib.snippet.foo.bar.MySnippet
    • com.mycompany.mylib.snippet.MySnippet
    • and then the Lift builtin snippet packages
  148. var serveAjaxScript : (LiftSession, Req) ⇒ Box[LiftResponse]

    Returns the Ajax script as a JavaScript response

  149. var serveCometScript : (LiftSession, Req) ⇒ Box[LiftResponse]

    Returns the Comet script as a JavaScript response

  150. var sessionCreator : (HTTPSession, String) ⇒ LiftSession

    A function that takes the HTTPSession and the contextPath as parameters and returns a LiftSession reference.

    A function that takes the HTTPSession and the contextPath as parameters and returns a LiftSession reference. This can be used in cases subclassing LiftSession is necessary.

  151. def sessionCreatorForMigratorySessions : (HTTPSession, String) ⇒ LiftSession

    A method that returns a function to create migratory sessions.

    A method that returns a function to create migratory sessions. If you want migratory sessions for your application, LiftRules.sessionCreator = LiftRules.sessionCreatorForMigratorySessions

  152. val sessionInactivityTimeout : FactoryMaker[Box[Long]]

    If you want to make the Lift inactivity timeout shorter than the container inactivity timeout, set the inactivity timeout here

  153. def setAjaxEnd (f: Func0[JsCmd]): Unit

    Set the Ajax end JavaScript function.

    Set the Ajax end JavaScript function. The Java calable alternative to assigning the var ajaxEnd

  154. def setAjaxStart (f: Func0[JsCmd]): Unit

    Set the Ajax end JavaScript function.

    Set the Ajax end JavaScript function. The Java calable alternative to assigning the var ajaxStart

  155. def setContext (in: HTTPContext): Unit

    Sets the HTTPContext

  156. def setSiteMap (sm: SiteMap): Unit

    Define the sitemap.

  157. def setSiteMapFunc (smf: () ⇒ SiteMap): Unit

    Set the sitemap to a function that will be run to generate the sitemap.

    Set the sitemap to a function that will be run to generate the sitemap.

    This allows for changing the SiteMap when in development mode and having the function re-run for each request.

    This is **NOT** a mechanism for dynamic SiteMap. This is a mechanism **ONLY** for allowing you to change the SiteMap during development. There will be significant performance penalties (serializing the service of requests... only one at a time) for changing the SiteMap.

  158. def siteMap : Box[SiteMap]

    Return the sitemap if set in Boot.

    Return the sitemap if set in Boot. If the current runMode is development mode, the sitemap may be recomputed on each page load.

  159. var siteMapFailRedirectLocation : List[String]

    The default location to send people if SiteMap access control fails.

    The default location to send people if SiteMap access control fails. The path is expressed a a List[String]

  160. val snippetDispatch : RulesSeq[SnippetDispatchPF]

    The dispatcher that takes a Snippet and converts it to a DispatchSnippet instance

  161. val snippetFailedFunc : RulesSeq[(SnippetFailure) ⇒ Unit]

    Set a snippet failure handler here.

    Set a snippet failure handler here. The class and method for the snippet are passed in

  162. var snippetNamesToSearch : FactoryMaker[(String) ⇒ List[String]]

    Function that generates variants on snippet names to search for, given the name from the template.

    Function that generates variants on snippet names to search for, given the name from the template. The default implementation just returns name :: Nil (e.g. no change). The names are searched in order. See also searchSnippetsWithRequestPath for an implementation.

  163. val snippets : RulesSeq[SnippetPF]

    Holds the user's snippet functions that will be executed by lift given a certain path.

  164. val statefulRewrite : RulesSeq[RewritePF]

    Holds the user's rewrite functions that can alter the URI parts and query parameters.

    Holds the user's rewrite functions that can alter the URI parts and query parameters. This rewrite takes place within the scope of the S state so SessionVars and other session-related information is available.
    Note also that rewrites should not have side effects except to memoize database query results. No side effects means that you should not change SessionVars in a rewrite.
    In general, rewrites should be considered low level access. Rather than using a rewrite to extract parameters out of a URL, you'll be much better off using SiteMap generally and Menu.param and Menu.params specifically for extracting parameters from URLs.

  165. val statelessDispatchTable : RulesSeq[DispatchPF]

    Holds user's DispatchPF functions that will be executed in a stateless context.

    Holds user's DispatchPF functions that will be executed in a stateless context. This means that S object is not availble yet.

  166. val statelessReqTest : RulesSeq[StatelessReqTestPF]

    Certain paths and requests within your application can be marked as stateless and if there is access to Lift's stateful facilities (setting SessionVars, updating function tables, etc.

    Certain paths and requests within your application can be marked as stateless and if there is access to Lift's stateful facilities (setting SessionVars, updating function tables, etc.) the developer will receive a notice and the operation will not complete.

  167. val statelessRewrite : RulesSeq[RewritePF]

    Holds the user's rewrite functions that can alter the URI parts and query parameters.

    Holds the user's rewrite functions that can alter the URI parts and query parameters. This rewrite is performed very early in the HTTP request cycle and may not include any state. This rewrite is meant to rewrite requests for statelessDispatch.
    Note also that rewrites should not have side effects except to memoize database query results. No side effects means that you should not change SessionVars in a rewrite.

  168. val statelessSession : FactoryMaker[(Req) ⇒ LiftSession with StatelessSession]

  169. var stdRequestTimeout : Box[Int]

    If you want the standard (non-AJAX) request timeout to be something other than 10 seconds, put the value here

  170. val stripComments : FactoryMaker[Boolean]

    Should comments be stripped from the served XHTML

  171. val suffixSplitters : RulesSeq[SplitSuffixPF]

    Determins the path parts and suffix from given path parts

  172. var supplimentalHeaders : (HTTPResponse) ⇒ Unit

  173. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  174. var templateCache : Box[TemplateCache[(Locale, List[String]), NodeSeq]]

  175. var templateSuffixes : List[String]

    The list of suffixes that Lift looks for in templates.

    The list of suffixes that Lift looks for in templates. By default, html, xhtml, and htm

  176. lazy val theServletAsyncProvider : Box[(HTTPRequest) ⇒ ServletAsyncProvider]

    A function that converts the current Request into an AsyncProvider.

  177. var throwOnOutOfScopeVarAccess : Boolean

    Should an exception be thrown on out of scope Session and RequestVar access.

    Should an exception be thrown on out of scope Session and RequestVar access. By default, no.

  178. var timeZoneCalculator : (Box[HTTPRequest]) ⇒ TimeZone

    A function that takes the current HTTP request and returns the current

  179. def toString (): String

    Definition Classes
    AnyRef → Any
  180. val unloadHooks : RulesSeq[() ⇒ Unit]

    Hooks to be run when LiftServlet.

    Hooks to be run when LiftServlet.destroy is called.

  181. var unusedFunctionsLifeTime : Long

    If Lift garbage collection is enabled, functions that are not seen in the page for this period of time (given in milliseonds) will be discarded, hence eligibe for garbage collection.

    If Lift garbage collection is enabled, functions that are not seen in the page for this period of time (given in milliseonds) will be discarded, hence eligibe for garbage collection. The default value is 10 minutes.

  182. val uriNotFound : RulesSeq[URINotFoundPF]

    The list of partial function for defining the behavior of what happens when URI is invalid and you're not using a site map

  183. val urlDecorate : RulesSeq[URLDecoratorPF]

    Use this PartialFunction to to automatically add static URL parameters to any URL reference from the markup of Ajax request.

  184. var useXhtmlMimeType : Boolean

    If you don't want lift to send the application/xhtml+xml mime type to those browsers that understand it, then set this to { @code false }

  185. def vendForm [T] (implicit man: Manifest[T]): Box[(T, (T) ⇒ Any) ⇒ NodeSeq]

    Given a type manifest, vend a form

    Given a type manifest, vend a form

    Definition Classes
    FormVendor
  186. val viewDispatch : RulesSeq[ViewDispatchPF]

    Change this variable to set view dispatching

  187. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  190. var xhtmlValidator : Box[XHtmlValidator]

    Define the XHTML validator

Deprecated Value Members

  1. val docType : FactoryMaker[(Req) ⇒ Box[String]]

    Set the doc type used.

    Set the doc type used. Use the HtmlProperties

    @deprecated

    Annotations
    @deprecated
    Deprecated

    Use the HtmlProperties

  2. var formatDate : (Date) ⇒ String

    A function to format a Date.

    A function to format a Date... can be replaced by a function that is user-specific Replaced by dateTimeConverter

    Annotations
    @deprecated
    Deprecated

    Replaced by dateTimeConverter

  3. var parseDate : (String) ⇒ Box[Date]

    A function that parses a String into a Date.

    A function that parses a String into a Date... can be replaced by something that's user-specific Replaced by dateTimeConverter

    Annotations
    @deprecated
    Deprecated

    Replaced by dateTimeConverter

  4. val rewrite : RulesSeq[RewritePF]

    Use statelessRewrite or statefuleRewrite

    Use statelessRewrite or statefuleRewrite

    Annotations
    @deprecated
    Deprecated

    Use statelessRewrite or statefuleRewrite

  5. var servletAsyncProvider : (HTTPRequest) ⇒ ServletAsyncProvider

    Provides the async provider instance responsible for suspending/resuming requests

    Provides the async provider instance responsible for suspending/resuming requests

    Annotations
    @deprecated
    Deprecated

    Register your povider via addSyncProvider

  6. val statelessTest : RulesSeq[StatelessTestPF]

    Certain paths within your application can be marked as stateless and if there is access to Lift's stateful facilities (setting SessionVars, updating function tables, etc.

    Certain paths within your application can be marked as stateless and if there is access to Lift's stateful facilities (setting SessionVars, updating function tables, etc.) the developer will receive a notice and the operation will not complete. This test has been deprecated in favor of statelessReqTest which also passes the HTTPRequest instance for testing of the user agent and other stuff.

    Annotations
    @deprecated
    Deprecated

    Use statelessReqTest

Inherited from LazyLoggable

Inherited from FormVendor

Inherited from Factory

Inherited from SimpleInjector

Inherited from Injector

Inherited from AnyRef

Inherited from Any