NotEmpty

org.scalatra.util.NotEmpty$
object NotEmpty

Extractor object, useful for handling empty form parameter submissions:

params.get("foo") match { case NotEmpty(value) => processValue(value) case _ => message("foo is required") }

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
NotEmpty.type

Members list

Value members

Concrete methods

def unapply(s: String): Option[String]
def unapply(o: Option[String]): Option[String]