net.liftweb.http

Req

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
Learn more about member selection
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])

  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])

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def _params: Map[String, List[String]]

    the raw parameters, use params

  7. lazy val accepts: Box[String]

    the accept header

  8. lazy val acceptsJavaScript_?: Boolean

    Returns true if the request accepts JavaScript

  9. lazy val acceptsJson_?: Boolean

    Returns true if the request accepts JSON

  10. lazy val acceptsStarStar: Boolean

    Is the Accepts Header * / *

  11. lazy val acceptsXml_?: Boolean

    Returns true if the request accepts XML

  12. def ajax_?: Boolean

    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.

  13. final def asInstanceOf[T0]: T0

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

    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

  15. lazy val buildMenu: CompleteMenu

  16. lazy val chromeVersion: Box[Double]

    Definition Classes
    UserAgentCalculator
  17. def clone(): AnyRef

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

  19. val contextPath: String

  20. lazy val cookies: List[HTTPCookie]

  21. def createNotFound(f: Failure): LiftResponse

  22. def createNotFound: LiftResponse

  23. def destroyServletSession(): Unit

    Make the servlet session go away

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

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

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

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

    Definition Classes
    UserAgentCalculator
  28. def fixHtml(in: NodeSeq): NodeSeq

  29. lazy val forcedBodyAsJson: Box[JValue]

    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.

  30. lazy val forcedBodyAsXml: Box[Elem]

    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.

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

    Definition Classes
    AnyRef → Any
  32. val get_?: Boolean

  33. def hashCode(): Int

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

  35. def headers(name: String): List[String]

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

  37. lazy val hostAndPath: String

    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.

  38. lazy val hostName: String

    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.

  39. val id: String

  40. lazy val ieIE10: Boolean

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

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

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

  43. def isChrome: Boolean

    Definition Classes
    UserAgentCalculator
  44. lazy val isChrome2: Boolean

    Definition Classes
    UserAgentCalculator
  45. lazy val isChrome3: Boolean

    Definition Classes
    UserAgentCalculator
  46. def isChrome3_+: Boolean

    Definition Classes
    UserAgentCalculator
  47. lazy val isChrome4: Boolean

    Definition Classes
    UserAgentCalculator
  48. lazy val isChrome5: Boolean

    Definition Classes
    UserAgentCalculator
  49. lazy val isChrome6: Boolean

    Definition Classes
    UserAgentCalculator
  50. def isFirefox: Boolean

    Definition Classes
    UserAgentCalculator
  51. lazy val isFirefox2: Boolean

    Definition Classes
    UserAgentCalculator
  52. lazy val isFirefox3: Boolean

    Definition Classes
    UserAgentCalculator
  53. lazy val isFirefox35: Boolean

    Definition Classes
    UserAgentCalculator
  54. def isFirefox35_+: Boolean

    Definition Classes
    UserAgentCalculator
  55. lazy val isFirefox36: Boolean

    Definition Classes
    UserAgentCalculator
  56. lazy val isFirefox40: Boolean

    Definition Classes
    UserAgentCalculator
  57. lazy val isIE: Boolean

    Definition Classes
    UserAgentCalculator
  58. lazy val isIE11: Boolean

    Definition Classes
    UserAgentCalculator
  59. lazy val isIE6: Boolean

    Definition Classes
    UserAgentCalculator
  60. lazy val isIE7: Boolean

    Definition Classes
    UserAgentCalculator
  61. lazy val isIE8: Boolean

    Definition Classes
    UserAgentCalculator
  62. lazy val isIE9: Boolean

    Definition Classes
    UserAgentCalculator
  63. lazy val isIPad: Boolean

    Is the Req coming from an iPad

    Is the Req coming from an iPad

    Definition Classes
    UserAgentCalculator
  64. lazy val isIPhone: Boolean

    Is the Req coming from an iPhone

    Is the Req coming from an iPhone

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

    Definition Classes
    Any
  66. def isOpera: Boolean

    Definition Classes
    UserAgentCalculator
  67. lazy val isOpera9: Boolean

    Definition Classes
    UserAgentCalculator
  68. def isSafari: Boolean

    Definition Classes
    UserAgentCalculator
  69. def isSafari2: Boolean

    Definition Classes
    UserAgentCalculator
  70. lazy val isSafari3: Boolean

    Definition Classes
    UserAgentCalculator
  71. def isSafari3_+: Boolean

    Definition Classes
    UserAgentCalculator
  72. lazy val isSafari4: Boolean

    Definition Classes
    UserAgentCalculator
  73. lazy val isSafari5: Boolean

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

    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.

  75. def json_?: Boolean

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

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

    The SiteMap Loc associated with this Req

  77. val nanoEnd: Long

  78. val nanoStart: Long

  79. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  82. val options_?: Boolean

  83. def param(n: String): Box[String]

    Definition Classes
    ReqHasParams
  84. def paramNames: List[String]

    Get the name of the params

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

  86. def path(n: Int): String

  87. val path: ParsePath

  88. def pathParam(n: Int): String

  89. val post_?: Boolean

  90. val put_?: Boolean

  91. def rawInputStream: Box[InputStream]

    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.

  92. def remoteAddr: String

    The IP address of the request

  93. val request: HTTPRequest

  94. val requestType: RequestType

  95. lazy val safariVersion: Box[Int]

    Definition Classes
    UserAgentCalculator
  96. val section: String

  97. def sessionId: Box[String]

    Get the session ID if there is one without creating on

  98. def snapshot: Req

    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

  99. lazy val standardRequest_?: Boolean

    A request that is neither Ajax or Comet

  100. lazy val stateless_?: Boolean

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

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

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

  103. def testIfModifiedSince(when: Long): Boolean

  104. def testLocation: Either[Boolean, Box[LiftResponse]]

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

  105. def toString(): String

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

  107. def uploadedFiles: List[FileParamHolder]

    The uploaded files

  108. lazy val uri: String

  109. lazy val userAgent: Box[String]

    The user agent of the browser that sent the request

    The user agent of the browser that sent the request

    Definition Classes
    ReqUserAgentCalculator
  110. val view: String

  111. final def wait(): Unit

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

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

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

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

  115. def withNewPath(newPath: ParsePath): Req

    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.

  116. lazy val xml: Box[Elem]

    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.

  117. def xml_?: Boolean

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

Inherited from UserAgentCalculator

Inherited from HasParams

Inherited from AnyRef

Inherited from Any

Ungrouped