Package

org.scalatra

util

Permalink

package util

Visibility
  1. Public
  2. All

Type Members

  1. trait Inflector extends AnyRef

    Permalink
  2. trait InflectorImports extends AnyRef

    Permalink
  3. case class MapQueryString(initialValues: Seq[(String, Seq[String])], rawValue: String) extends Product with Serializable

    Permalink
  4. trait MapWithIndifferentAccess[+B] extends Map[String, B]

    Permalink

    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.

  5. trait Mimes extends AnyRef

    Permalink

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

  6. trait MultiMapHeadView[A, B] extends Map[A, B]

    Permalink
  7. final class MultiMapHeadViewValueReader[T <: MultiMapHeadView[String, String]] extends AnyVal with ValueReader[T, String]

    Permalink
  8. final class MultiParamsValueReader extends AnyVal with ValueReader[MultiParams, Seq[String]]

    Permalink
  9. trait MutableMapWithIndifferentAccess[B] extends MapWithIndifferentAccess[B] with Map[String, B]

    Permalink

    See also

    MapWithIndifferentAccess

  10. sealed trait NotNothing[A] extends AnyRef

    Permalink

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

  11. trait ParamsValueReaderProperties extends AnyRef

    Permalink
  12. trait RequestLogging extends ScalatraBase with Handler

    Permalink

    Logs request information using slf4j with "REQUEST" logger name by mixing-in this trait to scalatra servlet or filter.

  13. final class StringMapValueReader extends AnyVal with ValueReader[Map[String, String], String]

    Permalink
  14. trait UrlCodingUtils extends AnyRef

    Permalink
  15. trait ValueReader[S, U] extends Any

    Permalink

Value Members

  1. object DateUtil

    Permalink
  2. object Inflector extends Inflector

    Permalink
  3. object InflectorImports extends InflectorImports

    Permalink
  4. object MapQueryString extends Serializable

    Permalink
  5. object MimeTypes extends Mimes

    Permalink
  6. object Mimes

    Permalink
  7. object MultiMapHeadView

    Permalink
  8. object NotEmpty

    Permalink

    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

    Permalink
  10. object ParamsValueReaderProperties extends ParamsValueReaderProperties

    Permalink
  11. object RequestLogging

    Permalink
  12. package RicherString

    Permalink
  13. object UrlCodingUtils extends UrlCodingUtils

    Permalink
  14. package conversion

    Permalink
  15. package io

    Permalink

    A collection of I/O utility methods.

Ungrouped