org.scalatra.servlet.ServletApiImplicits.scala Maven / Gradle / Ivy
The newest version!
package org.scalatra
package servlet
import javax.servlet.ServletContext
import javax.servlet.http.{ HttpServletRequest, HttpServletResponse, HttpSession }
import scala.language.implicitConversions
trait ServletApiImplicits {
implicit def enrichRequest(request: HttpServletRequest): RichRequest =
RichRequest(request)
implicit def enrichResponse(response: HttpServletResponse): RichResponse =
RichResponse(response)
implicit def enrichSession(session: HttpSession): RichSession =
RichSession(session)
implicit def enrichServletContext(servletContext: ServletContext): RichServletContext =
RichServletContext(servletContext)
}
object ServletApiImplicits extends ServletApiImplicits