SinatraRouteMatcher

org.scalatra.SinatraRouteMatcher
final class SinatraRouteMatcher(pattern: String) extends RouteMatcher, ReversibleRouteMatcher

An implementation of Sinatra's path pattern syntax.

Attributes

Graph
Supertypes
trait RouteMatcher
class Object
trait Matchable
class Any
Show all

Members list

Type members

Classlikes

case class Builder(path: String, params: Map[String, String], splats: List[String])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object BuilderGeneratorParser extends RegexParsers

Attributes

Supertypes
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def apply(requestPath: String): Option[MultiParams]
def reverse(params: Map[String, String], splats: List[String]): String

Generates a URI from a route matcher.

Generates a URI from a route matcher.

Value parameters

params

a map of named params extractable by the route

splats

a list of splats extractable by the route

Attributes

Returns

a String that would match the route with the given params and splats

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

Concrete fields

lazy val generator: Builder => Builder