package util
- Alphabetic
- Public
- All
Type Members
- trait Inflector extends AnyRef
- trait InflectorImports extends AnyRef
- case class MapQueryString(initialValues: Seq[(String, Seq[String])], rawValue: String) extends Product with Serializable
-
trait
Mimes extends AnyRef
A utility to help with mime type detection for a given file path or url.
- trait MultiMapHeadView[A, B] extends AnyRef
- final class MultiMapHeadViewValueReader[T <: MultiMapHeadView[String, String]] extends AnyVal with ValueReader[T, String]
- final class MultiParamsValueReader extends AnyVal with ValueReader[MultiParams, Seq[String]]
-
sealed
trait
NotNothing[A] extends AnyRef
Nice trick from Miles Sabin using ambiguity in implicit resolution to disallow Nothing
- trait ParamsValueReaderProperties extends AnyRef
-
trait
RequestLogging extends ScalatraBase with Handler
Logs request information using slf4j with "REQUEST" logger name by mixing-in this trait to scalatra servlet or filter.
- final class StringMapValueReader extends AnyVal with ValueReader[Map[String, String], String]
- trait UrlCodingUtils extends AnyRef
- trait ValueReader[S, U] extends Any
-
trait
MapWithIndifferentAccess[+B] extends Map[String, B]
Inspired by Rails' MapWithIndifferentAccess, allows the substitution of symbols for strings as map keys.
Inspired by Rails' MapWithIndifferentAccess, allows the substitution of symbols for strings as map keys. Note that the map is still keyed with strings; symbols are stored in permgen, so symbol keys maps should not be used for maps with arbitrary keys. There is no performance gain using symbols. It is here to make our Rubyists feel more at home.
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) MapWithIndifferentAccess is deprecated from Scalatra 2.7.0. It will be deleted in the next major version. Please unify the key type of Map to either String or Symbol.
-
trait
MutableMapWithIndifferentAccess[B] extends MapWithIndifferentAccess[B] with Map[String, B]
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) MutableMapWithIndifferentAccess is deprecated from Scalatra 2.7.0. It will be deleted in the next major version. Please unify the key type of Map to either String or Symbol.
- See also
MapWithIndifferentAccess
Value Members
- object DateUtil
- object Inflector extends Inflector
- object InflectorImports extends InflectorImports
- object MapQueryString extends Serializable
- object MimeTypes extends Mimes
- object Mimes
- object MultiMapHeadView
-
object
NotEmpty
Extractor object, useful for handling empty form parameter submissions:
Extractor object, useful for handling empty form parameter submissions:
params.get("foo") match { case NotEmpty(value) => processValue(value) case _ => message("foo is required") }
- object NotNothing
- object ParamsValueReaderProperties extends ParamsValueReaderProperties
- object RequestLogging
- object UrlCodingUtils extends UrlCodingUtils