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

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

The newest version!
package org.scalatra

import java.net.URL
import scala.collection.mutable

trait ApplicationContext extends mutable.Map[String, AnyRef] {
  def mount(handler: Handler, urlPattern: String, name: String): Unit

  def mount(handler: Handler, urlPattern: String): Unit =
    mount(handler, urlPattern, handler.getClass.getName)

  def contextPath: String

  def initParameters: mutable.Map[String, String]

  def resource(path: String): Option[URL]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy