Package

org.scalatra

util

Permalink

package util

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

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

  2. trait Mimes extends AnyRef

    Permalink

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

  3. class MultiMap extends Map[String, Seq[String]]

    Permalink
  4. trait MultiMapHeadView[A, B] extends Map[A, B]

    Permalink
  5. class MultiMapHeadViewValueReader[T <: MultiMapHeadView[String, String]] extends ValueReader[T, String]

    Permalink
  6. class MultiParamsValueReader extends ValueReader[MultiParams, Seq[String]]

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

    Permalink

    See also

    MapWithIndifferentAccess

  8. sealed trait NotNothing[A] extends AnyRef

    Permalink

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

  9. trait ParamsValueReaderProperties extends AnyRef

    Permalink
  10. class RicherString extends AnyRef

    Permalink
  11. class StringMapValueReader extends ValueReader[Map[String, String], String]

    Permalink
  12. trait ValueReader[S, U] extends AnyRef

    Permalink

Value Members

  1. object DateUtil

    Permalink
  2. object FileCharset

    Permalink
  3. object MimeTypes extends Mimes

    Permalink
  4. object Mimes

    Permalink
  5. object MultiMap

    Permalink
  6. object MultiMapHeadView

    Permalink
  7. 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") }

  8. object NotNothing

    Permalink
  9. object ParamsValueReaderProperties extends ParamsValueReaderProperties

    Permalink
  10. object RicherString

    Permalink
  11. package conversion

    Permalink
  12. def using[A, B <: AnyRef { def close(): Unit }](closeable: B)(f: (B) ⇒ A): A

    Permalink

    Executes a block with a closeable resource, and closes it after the block runs

    Executes a block with a closeable resource, and closes it after the block runs

    A

    the return type of the block

    B

    the closeable resource type

    closeable

    the closeable resource

    f

    the block

Inherited from AnyRef

Inherited from Any

Ungrouped