RegexRouteMatcher

org.scalatra.RegexRouteMatcher
final class RegexRouteMatcher(regex: Regex) extends RouteMatcher

A route matcher for regular expressions. Useful for cases that are more complex than are supported by Sinatra- or Rails-style routes.

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 request path against the regular expression.

Evaluates the request path against the regular expression.

Attributes

Returns

If the regex matches the request path, returns a list of all captured groups in a "captures" variable. Otherwise, returns 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