HttpServletRequestReadOnly

org.scalatra.servlet.HttpServletRequestReadOnly
case class HttpServletRequestReadOnly(originalRequest: HttpServletRequest) extends HttpServletRequestWrapper

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

Value parameters

originalRequest

the original HttpServletRequest to wrap

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class HttpServletRequestWrapper
trait HttpServletRequest
class ServletRequestWrapper
trait ServletRequest
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def authenticate(x$0: HttpServletResponse): Boolean

Attributes

Inherited from:
HttpServletRequestWrapper
def changeSessionId(): String

Attributes

Inherited from:
HttpServletRequestWrapper
def getAsyncContext(): AsyncContext

Attributes

Inherited from:
ServletRequestWrapper
def getAttribute(x$0: String): <FromJavaObject>

Attributes

Inherited from:
ServletRequestWrapper
def getAttributeNames(): Enumeration[String]

Attributes

Inherited from:
ServletRequestWrapper
def getCookies(): Array[Cookie]

Attributes

Inherited from:
HttpServletRequestWrapper
def getDateHeader(x$0: String): Long

Attributes

Inherited from:
HttpServletRequestWrapper
def getDispatcherType(): DispatcherType

Attributes

Inherited from:
ServletRequestWrapper
def getHeader(x$0: String): String

Attributes

Inherited from:
HttpServletRequestWrapper
def getHeaderNames(): Enumeration[String]

Attributes

Inherited from:
HttpServletRequestWrapper
def getHeaders(x$0: String): Enumeration[String]

Attributes

Inherited from:
HttpServletRequestWrapper
def getHttpServletMapping(): HttpServletMapping

Attributes

Inherited from:
HttpServletRequestWrapper
def getInputStream(): ServletInputStream

Attributes

Inherited from:
ServletRequestWrapper
def getIntHeader(x$0: String): Int

Attributes

Inherited from:
HttpServletRequestWrapper
def getLocale(): Locale

Attributes

Inherited from:
ServletRequestWrapper
def getLocales(): Enumeration[Locale]

Attributes

Inherited from:
ServletRequestWrapper
def getParameter(x$0: String): String

Attributes

Inherited from:
ServletRequestWrapper
def getParameterMap(): Map[String, Array[String]]

Attributes

Inherited from:
ServletRequestWrapper
def getParameterNames(): Enumeration[String]

Attributes

Inherited from:
ServletRequestWrapper
def getParameterValues(x$0: String): Array[String]

Attributes

Inherited from:
ServletRequestWrapper
def getPart(x$0: String): Part

Attributes

Inherited from:
HttpServletRequestWrapper
def getParts(): Collection[Part]

Attributes

Inherited from:
HttpServletRequestWrapper
def getReader(): BufferedReader

Attributes

Inherited from:
ServletRequestWrapper
def getRequest(): ServletRequest

Attributes

Inherited from:
ServletRequestWrapper
def getRequestDispatcher(x$0: String): RequestDispatcher

Attributes

Inherited from:
ServletRequestWrapper
def getRequestURL(): StringBuffer

Attributes

Inherited from:
HttpServletRequestWrapper
def getServletContext(): ServletContext

Attributes

Inherited from:
ServletRequestWrapper
def getSession(): HttpSession

Attributes

Inherited from:
HttpServletRequestWrapper
def getSession(x$0: Boolean): HttpSession

Attributes

Inherited from:
HttpServletRequestWrapper
def getTrailerFields(): Map[String, String]

Attributes

Inherited from:
HttpServletRequestWrapper
def getUserPrincipal(): Principal

Attributes

Inherited from:
HttpServletRequestWrapper
def isTrailerFieldsReady(): Boolean

Attributes

Inherited from:
HttpServletRequestWrapper
def isUserInRole(x$0: String): Boolean

Attributes

Inherited from:
HttpServletRequestWrapper
def isWrapperFor(x$0: Class[_ <: <FromJavaObject>]): Boolean

Attributes

Inherited from:
ServletRequestWrapper
def isWrapperFor(x$0: ServletRequest): Boolean

Attributes

Inherited from:
ServletRequestWrapper
def login(x$0: String, x$1: String): Unit

Attributes

Inherited from:
HttpServletRequestWrapper
def logout(): Unit

Attributes

Inherited from:
HttpServletRequestWrapper
def newPushBuilder(): PushBuilder

Attributes

Inherited from:
HttpServletRequestWrapper
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def removeAttribute(x$0: String): Unit

Attributes

Inherited from:
ServletRequestWrapper
def setAttribute(x$0: String, x$1: <FromJavaObject>): Unit

Attributes

Inherited from:
ServletRequestWrapper
def setCharacterEncoding(x$0: String): Unit

Attributes

Inherited from:
ServletRequestWrapper
def setRequest(x$0: ServletRequest): Unit

Attributes

Inherited from:
ServletRequestWrapper
def startAsync(x$0: ServletRequest, x$1: ServletResponse): AsyncContext

Attributes

Inherited from:
ServletRequestWrapper
def startAsync(): AsyncContext

Attributes

Inherited from:
ServletRequestWrapper
def upgrade[T <: HttpUpgradeHandler](x$0: Class[T]): T

Attributes

Inherited from:
HttpServletRequestWrapper

Deprecated and Inherited methods

@Deprecated
def getRealPath(x$0: String): String

Attributes

Deprecated
true
Inherited from:
ServletRequestWrapper

Concrete fields

override val getAuthType: String
override val getCharacterEncoding: String
override val getContentLength: Int
override val getContentLengthLong: Long
override val getContentType: String
override val getContextPath: String
override val getLocalAddr: String
override val getLocalName: String
override val getLocalPort: Int
override val getMethod: String
override val getPathInfo: String
override val getPathTranslated: String
override val getProtocol: String
override val getQueryString: String
override val getRemoteAddr: String
override val getRemoteHost: String
override val getRemotePort: Int
override val getRemoteUser: String
override val getRequestURI: String
override val getRequestedSessionId: String
override val getScheme: String
override val getServerName: String
override val getServerPort: Int
override val getServletPath: String
override val isAsyncStarted: Boolean
override val isAsyncSupported: Boolean
override val isRequestedSessionIdFromCookie: Boolean
override val isRequestedSessionIdFromURL: Boolean
override val isRequestedSessionIdFromUrl: Boolean
override val isRequestedSessionIdValid: Boolean
override val isSecure: Boolean