UrlGenerator

class Object
trait Matchable
class Any

Value members

Inherited methods

def url(route: Route, params: Map[String, String], splats: Iterable[String])(implicit req: HttpServletRequest): String

Calculate a URL for a reversible route, some params, and some splats.

Calculate a URL for a reversible route, some params, and some splats.

Value parameters:
params

a map of param/value pairs

route

a reversible route

splats

a series of splat parameters

Returns:

a URI that matches the route for the given splats

Throws:
Exception

if the route is not reversible

IllegalStateException

if the route's base path cannot be determined. This may occur outside of an HTTP request's lifecycle.

Inherited from:
UrlGeneratorSupport
def url(route: Route, splat: String, moreSplats: String*)(implicit req: HttpServletRequest): String

Calculate a URL for a reversible route and some splats.

Calculate a URL for a reversible route and some splats.

Value parameters:
moreSplats

any splat parameters beyond the first

route

a reversible route

splat

the first splat parameter

Returns:

a URI that matches the route for the given splats

Throws:
Exception

if the route is not reversible

IllegalStateException

if the route's base path cannot be determined. This may occur outside of an HTTP request's lifecycle.

Inherited from:
UrlGeneratorSupport
def url(route: Route, params: (String, String)*)(implicit req: HttpServletRequest): String

Calculate a URL for a reversible route and some params.

Calculate a URL for a reversible route and some params.

Value parameters:
params

a list of named param/value pairs

route

a reversible route

Returns:

a URI that matches the route for the given params

Throws:
Exception

if the route is not reversible

IllegalStateException

if the route's base path cannot be determined. This may occur outside of an HTTP request's lifecycle.

Inherited from:
UrlGeneratorSupport