org.scalatra.ServletApiImplicits.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalatra_2.8.2.RC1 Show documentation
Show all versions of scalatra_2.8.2.RC1 Show documentation
The core Scalatra framework
The newest version!
package org.scalatra
import javax.servlet.ServletContext
import javax.servlet.http.{HttpServletRequest, HttpSession}
/**
* Some implicits to make the Servlet API more Scala-idiomatic.
*/
trait ServletApiImplicits {
implicit def requestWrapper(r: HttpServletRequest) = RichRequest(r)
implicit def sessionWrapper(s: HttpSession) = new RichSession(s)
implicit def servletContextWrapper(sc: ServletContext) = new RichServletContext(sc)
}
object ServletApiImplicits extends ServletApiImplicits
© 2015 - 2024 Weber Informatics LLC | Privacy Policy