net.liftweb.http

Req

class Req extends HasParams with UserAgentCalculator

Contains request information

go to: companion
linear super types: UserAgentCalculator, HasParams, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Req
  2. UserAgentCalculator
  3. HasParams
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

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. def != (arg0: AnyRef) : Boolean

    attributes: final
    definition classes: AnyRef
  2. def != (arg0: Any) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def == (arg0: AnyRef) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  7. def == (arg0: Any) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  8. def _params : Map[String, List[String]]

    the raw parameters, use params

    the raw parameters, use params

  9. lazy val accepts : Box[String]

  10. lazy val acceptsJavaScript_? : Boolean

  11. lazy val acceptsJson_? : Boolean

  12. lazy val acceptsStarStar : Boolean

  13. lazy val acceptsXml_? : Boolean

  14. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  15. 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

  16. lazy val buildMenu : CompleteMenu

  17. lazy val chromeVersion : Box[Double]

    definition classes: UserAgentCalculator
  18. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  19. val contentType : Box[String]

  20. val contextPath : String

  21. lazy val cookies : List[HTTPCookie]

  22. def createNotFound (f: Failure) : LiftResponse

  23. def createNotFound : LiftResponse

  24. def destroyServletSession () : Unit

    Make the servlet session go away

    Make the servlet session go away

  25. def eq (arg0: AnyRef) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  26. def equals (arg0: Any) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef → Any
  27. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  28. lazy val firefoxVersion : Box[Double]

    definition classes: UserAgentCalculator
  29. def fixHtml (in: NodeSeq) : NodeSeq

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

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  31. def get_? : Boolean

  32. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  33. def header (name: String) : Box[String]

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

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

  36. lazy val hostAndPath : String

  37. lazy val hostName : String

  38. val id : String

  39. lazy val ieVersion : Box[Int]

    definition classes: UserAgentCalculator
  40. lazy val ifModifiedSince : Box[Date]

  41. def isChrome : Boolean

    definition classes: UserAgentCalculator
  42. lazy val isChrome2 : Boolean

    definition classes: UserAgentCalculator
  43. lazy val isChrome3 : Boolean

    definition classes: UserAgentCalculator
  44. def isChrome3_+ : Boolean

    definition classes: UserAgentCalculator
  45. lazy val isChrome4 : Boolean

    definition classes: UserAgentCalculator
  46. lazy val isChrome5 : Boolean

    definition classes: UserAgentCalculator
  47. lazy val isChrome6 : Boolean

    definition classes: UserAgentCalculator
  48. def isFirefox : Boolean

    definition classes: UserAgentCalculator
  49. lazy val isFirefox2 : Boolean

    definition classes: UserAgentCalculator
  50. lazy val isFirefox3 : Boolean

    definition classes: UserAgentCalculator
  51. lazy val isFirefox35 : Boolean

    definition classes: UserAgentCalculator
  52. def isFirefox35_+ : Boolean

    definition classes: UserAgentCalculator
  53. lazy val isFirefox36 : Boolean

    definition classes: UserAgentCalculator
  54. lazy val isFirefox40 : Boolean

    definition classes: UserAgentCalculator
  55. lazy val isIE : Boolean

    definition classes: UserAgentCalculator
  56. lazy val isIE6 : Boolean

    definition classes: UserAgentCalculator
  57. lazy val isIE7 : Boolean

    definition classes: UserAgentCalculator
  58. lazy val isIE8 : Boolean

    definition classes: UserAgentCalculator
  59. lazy val isIE9 : Boolean

    definition classes: UserAgentCalculator
  60. lazy val isIPad : Boolean

    definition classes: UserAgentCalculator
  61. lazy val isIPhone : Boolean

    definition classes: UserAgentCalculator
  62. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  63. def isOpera : Boolean

    definition classes: UserAgentCalculator
  64. lazy val isOpera9 : Boolean

    definition classes: UserAgentCalculator
  65. def isSafari : Boolean

    definition classes: UserAgentCalculator
  66. def isSafari2 : Boolean

    definition classes: UserAgentCalculator
  67. lazy val isSafari3 : Boolean

    definition classes: UserAgentCalculator
  68. def isSafari3_+ : Boolean

    definition classes: UserAgentCalculator
  69. lazy val isSafari4 : Boolean

    definition classes: UserAgentCalculator
  70. lazy val isSafari5 : Boolean

    definition classes: UserAgentCalculator
  71. lazy val json : Box[JValue]

  72. def json_? : Boolean

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

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

  73. lazy val location : Box[net.liftweb.sitemap.Loc[_]]

  74. val nanoEnd : Long

  75. val nanoStart : Long

  76. def ne (arg0: AnyRef) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  77. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  78. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  79. def param (n: String) : Box[String]

    definition classes: ReqHasParams
  80. def paramNames : List[String]

    Get the name of the params

    Get the name of the params

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

  82. def path (n: Int) : String

  83. val path : ParsePath

  84. def pathParam (n: Int) : String

  85. def post_? : Boolean

  86. def put_? : Boolean

  87. 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.

  88. def remoteAddr : String

    The IP address of the request

    The IP address of the request

  89. val request : HTTPRequest

  90. val requestType : RequestType

  91. lazy val safariVersion : Box[Int]

    definition classes: UserAgentCalculator
  92. val section : String

  93. def sessionId : Box[String]

    Get the session ID if there is one without creating on

    Get the session ID if there is one without creating on

  94. def snapshot : Req

  95. lazy val stateless_? : Boolean

  96. def synchronized [T0] (arg0: T0) : T0

    attributes: final
    definition classes: AnyRef
  97. def testFor304 (lastModified: Long, headers: (String, String)*) : Box[LiftResponse]

  98. def testIfModifiedSince (when: Long) : Boolean

  99. 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

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

  100. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: Req → AnyRef → Any
  101. def updateWithContextPath (uri: String) : String

  102. def uploadedFiles : List[FileParamHolder]

    The uploaded files

    The uploaded files

  103. lazy val uri : String

  104. lazy val userAgent : Box[String]

    What's the user agent?

    What's the user agent?

    definition classes: ReqUserAgentCalculator
  105. val view : String

  106. def wait () : Unit

    attributes: final
    definition classes: AnyRef
  107. def wait (arg0: Long, arg1: Int) : Unit

    attributes: final
    definition classes: AnyRef
  108. def wait (arg0: Long) : Unit

    attributes: final
    definition classes: AnyRef
  109. lazy val weightedAccept : List[ContentType]

  110. def withNewPath (newPath: ParsePath) : Req

    Build a new Req, except it has a different path.

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

  111. lazy val xml : Box[Elem]

  112. def xml_? : Boolean

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

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

Inherited from UserAgentCalculator

Inherited from HasParams

Inherited from AnyRef

Inherited from Any