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

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

package org.scalatra
package servlet

import org.scalatra.ServletCompat.http.HttpSession

/**
 * Extension methods to the standard HttpSession.
 */
case class RichSession(session: HttpSession) extends AttributesMap {

  def id: String = session.getId

  protected[this] type A = HttpSession
  protected[this] override def attributes = session
  protected[this] override def attributesTypeClass: Attributes[A] = Attributes[A]

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy