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

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

The newest version!
package org

import javax.servlet.http.HttpSession
import org.scalatra.util.MultiMap

package object scalatra {
  /**
   * Structural type for the various Servlet API objects that have attributes.  These include ServletContext,
   * HttpSession, and ServletRequest.
   */
  type Attributes = {
    def getAttribute(name: String): AnyRef
    def getAttributeNames(): java.util.Enumeration[_]
    def setAttribute(name: String, value: AnyRef): Unit
    def removeAttribute(name: String): Unit
  }

  @deprecated("Use CsrfTokenSupport")
  type CSRFTokenSupport = CsrfTokenSupport

  type ErrorHandler = PartialFunction[Throwable, Any]

  type ContentTypeInferrer = PartialFunction[Any, String]

  type RenderPipeline = PartialFunction[Any, Any]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy