Class/Object

net.liftweb.http

Req

Related Docs: object Req | package http

Permalink

class Req extends HasParams with UserAgentCalculator

Contains request information

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Req
  2. UserAgentCalculator
  3. HasParams
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Req(_path: ParsePath, _contextPath: String, _requestType: RequestType, _contentType: Box[String], _request: HTTPRequest, _nanoStart: Long, _nanoEnd: Long, _paramCalculator: () ⇒ ParamCalcInfo, _addlParams: Map[String, String])

    Permalink
  2. new Req(path: ParsePath, contextPath: String, requestType: RequestType, contentType: Box[String], request: HTTPRequest, nanoStart: Long, nanoEnd: Long, _stateless_?: Boolean, paramCalculator: () ⇒ ParamCalcInfo, addlParams: Map[String, String])

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def _params: Map[String, List[String]]

    Permalink

    the raw parameters, use params

  5. lazy val accepts: Box[String]

    Permalink

    the accept header

  6. lazy val acceptsJavaScript_?: Boolean

    Permalink

    Returns true if the request accepts JavaScript

  7. lazy val acceptsJson_?: Boolean

    Permalink

    Returns true if the request accepts JSON

  8. lazy val acceptsStarStar: Boolean

    Permalink

    Is the Accepts Header * / *

  9. lazy val acceptsXml_?: Boolean

    Permalink

    Returns true if the request accepts XML

  10. def ajax_?: Boolean

    Permalink

    Returns true if the X-Requested-With header is set to XMLHttpRequest.

    Returns true if the X-Requested-With header is set to XMLHttpRequest.

    Most ajax frameworks, including jQuery and Prototype, set this header when doing any ajax request.

  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def body: Box[Array[Byte]]

    Permalink

    The POST or PUT body.

    The POST or PUT body. This will be empty if the content type is application/x-www-form-urlencoded or a multipart mime. It will also be empty if rawInputStream is accessed

  13. lazy val buildMenu: CompleteMenu

    Permalink
  14. lazy val chromeVersion: Box[Double]

    Permalink
    Definition Classes
    UserAgentCalculator
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. val contentType: Box[String]

    Permalink
  17. val contextPath: String

    Permalink
  18. lazy val cookies: List[HTTPCookie]

    Permalink
  19. def createNotFound(f: Failure): LiftResponse

    Permalink
  20. def createNotFound: LiftResponse

    Permalink
  21. def destroyServletSession(): Unit

    Permalink

    Make the servlet session go away

  22. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. lazy val firefoxVersion: Box[Double]

    Permalink
    Definition Classes
    UserAgentCalculator
  26. lazy val forcedBodyAsJson: Box[JValue]

    Permalink

    Forcibly tries to parse the request body as JSON.

    Forcibly tries to parse the request body as JSON. Does not perform any content type checks, unlike the json method.

  27. lazy val forcedBodyAsXml: Box[Elem]

    Permalink

    Forcibly tries to parse the request body as XML.

    Forcibly tries to parse the request body as XML. Does not perform any content type checks, unlike the xml method.

  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. val get_?: Boolean

    Permalink
  30. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  31. def header(name: String): Box[String]

    Permalink
  32. def headers(name: String): List[String]

    Permalink
  33. lazy val headers: List[(String, String)]

    Permalink
  34. lazy val hostAndPath: String

    Permalink

    The host and path of the request up to and including the context path.

    The host and path of the request up to and including the context path. This does not include the template path or query string.

  35. lazy val hostName: String

    Permalink

    The hostname to which the request was sent.

    The hostname to which the request was sent. This is taken from the "Host" HTTP header, or if that does not exist, the DNS name or IP address of the server.

  36. val id: String

    Permalink
  37. lazy val ieIE10: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  38. lazy val ieVersion: Box[Int]

    Permalink
    Definition Classes
    UserAgentCalculator
  39. lazy val ifModifiedSince: Box[Date]

    Permalink

    Parse the if-modified-since header and return the milliseconds since epoch of the parsed date.

  40. def isChrome: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  41. lazy val isChrome2: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  42. lazy val isChrome3: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  43. def isChrome3_+: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  44. lazy val isChrome4: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  45. lazy val isChrome5: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  46. lazy val isChrome6: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  47. def isFirefox: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  48. lazy val isFirefox2: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  49. lazy val isFirefox3: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  50. lazy val isFirefox35: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  51. def isFirefox35_+: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  52. lazy val isFirefox36: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  53. lazy val isFirefox40: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  54. lazy val isIE: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  55. lazy val isIE11: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  56. lazy val isIE6: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  57. lazy val isIE7: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  58. lazy val isIE8: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  59. lazy val isIE9: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  60. lazy val isIPad: Boolean

    Permalink

    Is the Req coming from an iPad

    Is the Req coming from an iPad

    Definition Classes
    UserAgentCalculator
  61. lazy val isIPhone: Boolean

    Permalink

    Is the Req coming from an iPhone

    Is the Req coming from an iPhone

    Definition Classes
    UserAgentCalculator
  62. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  63. def isOpera: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  64. lazy val isOpera9: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  65. def isSafari: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  66. def isSafari2: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  67. lazy val isSafari3: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  68. def isSafari3_+: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  69. lazy val isSafari4: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  70. lazy val isSafari5: Boolean

    Permalink
    Definition Classes
    UserAgentCalculator
  71. lazy val json: Box[JValue]

    Permalink

    The JValue representation of this Req's body, if the body is JSON-parsable AND the content-type of the request is JSON.

    The JValue representation of this Req's body, if the body is JSON-parsable AND the content-type of the request is JSON. Returns a Failure if the request is not considered a JSON request (see json_?), or if there was an error parsing the JSON.

    If you want to forcibly evaluate the request body as JSON, ignoring content type, see forcedBodyAsJson.

  72. def json_?: Boolean

    Permalink

    Returns true if the content-type is text/json or application/json

  73. lazy val location: Box[Loc[_]]

    Permalink

    The SiteMap Loc associated with this Req

  74. val nanoEnd: Long

    Permalink
  75. val nanoStart: Long

    Permalink
  76. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  77. def normalizeHtml(in: NodeSeq): NodeSeq

    Permalink
  78. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  79. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  80. val options_?: Boolean

    Permalink
  81. def param(n: String): Box[String]

    Permalink
    Definition Classes
    ReqHasParams
  82. def paramNames: List[String]

    Permalink

    Get the name of the params

  83. lazy val params: Map[String, List[String]]

    Permalink
  84. def path(n: Int): String

    Permalink
  85. val path: ParsePath

    Permalink
  86. def pathParam(n: Int): String

    Permalink
  87. val post_?: Boolean

    Permalink
  88. val put_?: Boolean

    Permalink
  89. def rawInputStream: Box[InputStream]

    Permalink

    The raw input stream of a POST or PUT that is not application/x-www-form-urlencoded or a multipart mime and if this method is called before the body method.

    The raw input stream of a POST or PUT that is not application/x-www-form-urlencoded or a multipart mime and if this method is called before the body method. Remember to close the stream when done.

  90. def remoteAddr: String

    Permalink

    The IP address of the request

  91. val request: HTTPRequest

    Permalink
  92. val requestType: RequestType

    Permalink
  93. lazy val safariVersion: Box[Int]

    Permalink
    Definition Classes
    UserAgentCalculator
  94. val section: String

    Permalink
  95. def sessionId: Box[String]

    Permalink

    Get the session ID if there is one without creating on

  96. def snapshot: Req

    Permalink

    A snapshot of the request that can be passed off the current thread

    A snapshot of the request that can be passed off the current thread

    returns

    a copy of the Req

  97. lazy val standardRequest_?: Boolean

    Permalink

    A request that is neither Ajax or Comet

  98. lazy val stateless_?: Boolean

    Permalink

    Should the request be treated as stateless (no session created for it)?

  99. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  100. def testFor304(lastModified: Long, headers: (String, String)*): Box[LiftResponse]

    Permalink
  101. def testIfModifiedSince(when: Long): Boolean

    Permalink
  102. def testLocation: Either[Boolean, Box[LiftResponse]]

    Permalink

    Test the current SiteMap Loc for access control to insure that this Req is allowed to access the page

  103. def toString(): String

    Permalink
    Definition Classes
    Req → AnyRef → Any
  104. def updateWithContextPath(uri: String): String

    Permalink
  105. def uploadedFiles: List[FileParamHolder]

    Permalink

    The uploaded files

  106. lazy val uri: String

    Permalink
  107. lazy val userAgent: Box[String]

    Permalink

    The user agent of the browser that sent the request

    The user agent of the browser that sent the request

    Definition Classes
    ReqUserAgentCalculator
  108. val view: String

    Permalink
  109. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  112. lazy val weightedAccept: List[ContentType]

    Permalink

    What is the content type in order of preference by the requester calculated via the Accept header

  113. def withNewPath(newPath: ParsePath): Req

    Permalink

    Build a new Req, the same except with a different path.

    Build a new Req, the same except with a different path. Useful for creating Reqs with sub-paths.

  114. lazy val xml: Box[Elem]

    Permalink

    The Elem representation of this Req's body, if the body is XML-parsable AND the content-type of the request is XML.

    The Elem representation of this Req's body, if the body is XML-parsable AND the content-type of the request is XML. Returns a Failure if the request is not considered a XML request (see xml_?), or if there was an error parsing the XML.

    If you want to forcibly evaluate the request body as XML, ignoring content type, see forcedBodyAsXml.

  115. def xml_?: Boolean

    Permalink

    Returns true if the content-type is text/xml or application/xml

Deprecated Value Members

  1. def fixHtml(in: NodeSeq): NodeSeq

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0) Use normalizeHtml instead.

Inherited from UserAgentCalculator

Inherited from HasParams

Inherited from AnyRef

Inherited from Any

Ungrouped