org.scalatra

util

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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

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

  2. trait Mimes extends AnyRef

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

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

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

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

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

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

    See also

    MapWithIndifferentAccess

  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. class RicherString extends AnyRef

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

  12. trait ValueReader[S, U] extends AnyRef

Value Members

  1. object DateUtil

  2. object FileCharset

  3. object MimeTypes extends Mimes

  4. object Mimes

  5. object MultiMap

  6. object MultiMapHeadView

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

  8. object NotNothing

  9. object ParamsValueReaderProperties extends ParamsValueReaderProperties

  10. object RicherString

  11. package conversion

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

    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