c

org.scalatra.servlet

HttpServletRequestReadOnly

case class HttpServletRequestReadOnly(originalRequest: HttpServletRequest) extends HttpServletRequestWrapper with Product with Serializable

Read-only immutable wrapper for an HttpServletRequest that can, for the most part, be passed around to different threads.

This is necessary because ServletContainers will "recycle" a request once the original HTTP thread is returned, meaning that a lot of attributes are set to null (in the case of Jetty).

Limitations of this class include the following:

  • it is mostly immutable (methods on the original request are not given stable values, nor are methods that return non-primitive types)
  • changes made to the original object or this object may not be reflected across threads
originalRequest

the original HttpServletRequest to wrap

Linear Supertypes
Serializable, Product, Equals, HttpServletRequestWrapper, HttpServletRequest, ServletRequestWrapper, ServletRequest, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpServletRequestReadOnly
  2. Serializable
  3. Product
  4. Equals
  5. HttpServletRequestWrapper
  6. HttpServletRequest
  7. ServletRequestWrapper
  8. ServletRequest
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new HttpServletRequestReadOnly(originalRequest: HttpServletRequest)

    originalRequest

    the original HttpServletRequest to wrap

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def authenticate(arg0: HttpServletResponse): Boolean
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
    Annotations
    @throws(classOf[java.io.IOException]) @throws(classOf[jakarta.servlet.ServletException])
  6. def changeSessionId(): String
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def getAsyncContext(): AsyncContext
    Definition Classes
    ServletRequestWrapper → ServletRequest
  10. def getAttribute(arg0: String): AnyRef
    Definition Classes
    ServletRequestWrapper → ServletRequest
  11. def getAttributeNames(): Enumeration[String]
    Definition Classes
    ServletRequestWrapper → ServletRequest
  12. val getAuthType: String
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  13. val getCharacterEncoding: String
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. val getContentLength: Int
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  16. val getContentLengthLong: Long
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  17. val getContentType: String
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  18. val getContextPath: String
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  19. def getCookies(): Array[jakarta.servlet.http.Cookie]
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  20. def getDateHeader(arg0: String): Long
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  21. def getDispatcherType(): DispatcherType
    Definition Classes
    ServletRequestWrapper → ServletRequest
  22. def getHeader(arg0: String): String
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  23. def getHeaderNames(): Enumeration[String]
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  24. def getHeaders(arg0: String): Enumeration[String]
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  25. def getHttpServletMapping(): HttpServletMapping
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  26. def getInputStream(): ServletInputStream
    Definition Classes
    ServletRequestWrapper → ServletRequest
    Annotations
    @throws(classOf[java.io.IOException])
  27. def getIntHeader(arg0: String): Int
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  28. val getLocalAddr: String
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  29. val getLocalName: String
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  30. val getLocalPort: Int
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  31. def getLocale(): Locale
    Definition Classes
    ServletRequestWrapper → ServletRequest
  32. def getLocales(): Enumeration[Locale]
    Definition Classes
    ServletRequestWrapper → ServletRequest
  33. val getMethod: String
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  34. def getParameter(arg0: String): String
    Definition Classes
    ServletRequestWrapper → ServletRequest
  35. def getParameterMap(): Map[String, Array[String]]
    Definition Classes
    ServletRequestWrapper → ServletRequest
  36. def getParameterNames(): Enumeration[String]
    Definition Classes
    ServletRequestWrapper → ServletRequest
  37. def getParameterValues(arg0: String): Array[String]
    Definition Classes
    ServletRequestWrapper → ServletRequest
  38. def getPart(arg0: String): Part
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
    Annotations
    @throws(classOf[java.io.IOException]) @throws(classOf[jakarta.servlet.ServletException])
  39. def getParts(): Collection[Part]
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
    Annotations
    @throws(classOf[java.io.IOException]) @throws(classOf[jakarta.servlet.ServletException])
  40. val getPathInfo: String
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  41. val getPathTranslated: String
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  42. val getProtocol: String
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  43. def getProtocolRequestId(): String
    Definition Classes
    ServletRequestWrapper → ServletRequest
  44. val getQueryString: String
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  45. def getReader(): BufferedReader
    Definition Classes
    ServletRequestWrapper → ServletRequest
    Annotations
    @throws(classOf[java.io.IOException])
  46. val getRemoteAddr: String
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  47. val getRemoteHost: String
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  48. val getRemotePort: Int
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  49. val getRemoteUser: String
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  50. def getRequest(): ServletRequest
    Definition Classes
    ServletRequestWrapper
  51. def getRequestDispatcher(arg0: String): RequestDispatcher
    Definition Classes
    ServletRequestWrapper → ServletRequest
  52. def getRequestId(): String
    Definition Classes
    ServletRequestWrapper → ServletRequest
  53. val getRequestURI: String
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  54. def getRequestURL(): StringBuffer
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  55. def getRequestedSessionId(): String
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  56. val getScheme: String
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  57. val getServerName: String
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  58. val getServerPort: Int
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  59. def getServletConnection(): ServletConnection
    Definition Classes
    ServletRequestWrapper → ServletRequest
  60. def getServletContext(): ServletContext
    Definition Classes
    ServletRequestWrapper → ServletRequest
  61. val getServletPath: String
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  62. def getSession(): HttpSession
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  63. def getSession(arg0: Boolean): HttpSession
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  64. def getTrailerFields(): Map[String, String]
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  65. def getUserPrincipal(): Principal
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  66. val isAsyncStarted: Boolean
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  67. val isAsyncSupported: Boolean
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  68. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  69. val isRequestedSessionIdFromCookie: Boolean
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  70. val isRequestedSessionIdFromURL: Boolean
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  71. val isRequestedSessionIdValid: Boolean
    Definition Classes
    HttpServletRequestReadOnly → HttpServletRequestWrapper → HttpServletRequest
  72. val isSecure: Boolean
    Definition Classes
    HttpServletRequestReadOnly → ServletRequestWrapper → ServletRequest
  73. def isTrailerFieldsReady(): Boolean
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  74. def isUserInRole(arg0: String): Boolean
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  75. def isWrapperFor(arg0: Class[_ <: AnyRef]): Boolean
    Definition Classes
    ServletRequestWrapper
  76. def isWrapperFor(arg0: ServletRequest): Boolean
    Definition Classes
    ServletRequestWrapper
  77. def login(arg0: String, arg1: String): Unit
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
    Annotations
    @throws(classOf[jakarta.servlet.ServletException])
  78. def logout(): Unit
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
    Annotations
    @throws(classOf[jakarta.servlet.ServletException])
  79. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  80. def newPushBuilder(): PushBuilder
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
  81. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  82. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  83. def productElementNames: Iterator[String]
    Definition Classes
    Product
  84. def removeAttribute(arg0: String): Unit
    Definition Classes
    ServletRequestWrapper → ServletRequest
  85. def setAttribute(arg0: String, arg1: AnyRef): Unit
    Definition Classes
    ServletRequestWrapper → ServletRequest
  86. def setCharacterEncoding(arg0: String): Unit
    Definition Classes
    ServletRequestWrapper → ServletRequest
    Annotations
    @throws(classOf[java.io.UnsupportedEncodingException])
  87. def setRequest(arg0: ServletRequest): Unit
    Definition Classes
    ServletRequestWrapper
  88. def startAsync(arg0: ServletRequest, arg1: ServletResponse): AsyncContext
    Definition Classes
    ServletRequestWrapper → ServletRequest
    Annotations
    @throws(classOf[java.lang.IllegalStateException])
  89. def startAsync(): AsyncContext
    Definition Classes
    ServletRequestWrapper → ServletRequest
    Annotations
    @throws(classOf[java.lang.IllegalStateException])
  90. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  91. def upgrade[T <: HttpUpgradeHandler](arg0: Class[T]): T
    Definition Classes
    HttpServletRequestWrapper → HttpServletRequest
    Annotations
    @throws(classOf[java.io.IOException]) @throws(classOf[jakarta.servlet.ServletException])
  92. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  93. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  94. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpServletRequestWrapper

Inherited from HttpServletRequest

Inherited from ServletRequestWrapper

Inherited from ServletRequest

Inherited from AnyRef

Inherited from Any

Ungrouped