Mimetype

case class Mimetype(primary: String, sub: String, params: Map[String, String])

Utility around `javax.activation.Mimetype'.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def asString: String

Renders this mimetype into its string representation.

Renders this mimetype into its string representation.

def baseEqual(other: Mimetype): Boolean

Return

Return

true

if base type of

this

and

other

are equal. IOW compare without parameters.

other }}} equal. IOW compare without parameters.

this }}} equal. IOW compare without parameters.

true }}} equal. IOW compare without parameters.

def baseType: String

Return basetype as string in

Return basetype as string in

primary/sub

format. primary/sub }}}

def matches(other: Mimetype): Boolean
def orElse(other: Mimetype): Mimetype

Return

Return

other

if this is an unknown mimetype. other }}}

def param(name: String): Option[String]

Return the value of parameter

Return the value of parameter

name

. name }}}

def param(name: String, value: String): Mimetype

Set a new parameter

Set a new parameter

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product