org.scalatra.RichSession.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.http.HttpSession
import util.MapWithIndifferentAccess
class RichSession(session: HttpSession) extends AttributesMap {
/*
* TODO The structural type works at runtime, but fails to compile because
* of the raw type returned by getAttributeNames. We're telling the
* compiler to trust us; remove when we upgrade to Servlet 3.0.
*/
protected def attributes = session.asInstanceOf[Attributes]
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy