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

org.scalatra.RichSession.scala Maven / Gradle / Ivy

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