BooleanBlockRouteMatcher

org.scalatra.BooleanBlockRouteMatcher
final class BooleanBlockRouteMatcher(block: => Boolean) extends RouteMatcher

A route matcher on a boolean condition. Does not extract any route parameters.

Attributes

Graph
Supertypes
trait RouteMatcher
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(requestPath: String): Option[MultiParams]

Evaluates the block.

Evaluates the block.

Attributes

Returns

Some empty map if the block evaluates to true, or else None.

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def apply(route: Route): Route

Attributes

Inherited from:
RouteMatcher