package util

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait Inflector extends AnyRef
  2. trait InflectorImports extends AnyRef
  3. case class MapQueryString(initialValues: Seq[(String, Seq[String])], rawValue: String) extends Product with Serializable
  4. trait Mimes extends AnyRef

    A utility to help with mime type detection for a given file path or url.

  5. trait MultiMapHeadView[A, B] extends AnyRef
  6. final class MultiMapHeadViewValueReader[T <: MultiMapHeadView[String, String]] extends AnyVal with ValueReader[T, String]
  7. final class MultiParamsValueReader extends AnyVal with ValueReader[MultiParams, Seq[String]]
  8. sealed trait NotNothing[A] extends AnyRef

    Nice trick from Miles Sabin using ambiguity in implicit resolution to disallow Nothing

  9. trait ParamsValueReaderProperties extends AnyRef
  10. 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.

  11. final class StringMapValueReader extends AnyVal with ValueReader[Map[String, String], String]
  12. trait UrlCodingUtils extends AnyRef
  13. trait ValueReader[S, U] extends Any
  14. 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.

  15. 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

  1. object DateUtil
  2. object Inflector extends Inflector
  3. object InflectorImports extends InflectorImports
  4. object MapQueryString extends Serializable
  5. object MimeTypes extends Mimes
  6. object Mimes
  7. object MultiMapHeadView
  8. 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") }

  9. object NotNothing
  10. object ParamsValueReaderProperties extends ParamsValueReaderProperties
  11. object RequestLogging
  12. object UrlCodingUtils extends UrlCodingUtils

Ungrouped