All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy