public class RoutingDsl.PathPatternMatcher
extends java.lang.Object
Constructor and Description |
---|
PathPatternMatcher(java.lang.String method,
java.lang.String pathPattern) |
Modifier and Type | Method and Description |
---|---|
<A1> RoutingDsl |
routeAsync(F.Function<A1,F.Promise<Result>> action)
Route with one parameter.
|
RoutingDsl |
routeAsync(F.Function0<F.Promise<Result>> action)
Route with no parameters.
|
<A1,A2> RoutingDsl |
routeAsync(F.Function2<A1,A2,F.Promise<Result>> action)
Route with two parameters.
|
<A1,A2,A3> RoutingDsl |
routeAsync(F.Function3<A1,A2,A3,F.Promise<Result>> action)
Route with three parameters.
|
<A1> RoutingDsl |
routeTo(F.Function<A1,Result> action)
Route with one parameter.
|
RoutingDsl |
routeTo(F.Function0<Result> action)
Route with no parameters.
|
<A1,A2> RoutingDsl |
routeTo(F.Function2<A1,A2,Result> action)
Route with two parameters.
|
<A1,A2,A3> RoutingDsl |
routeTo(F.Function3<A1,A2,A3,Result> action)
Route with three parameters.
|
public PathPatternMatcher(java.lang.String method, java.lang.String pathPattern)
public RoutingDsl routeTo(F.Function0<Result> action)
action
- The action to execute.public <A1> RoutingDsl routeTo(F.Function<A1,Result> action)
action
- The action to execute.public <A1,A2> RoutingDsl routeTo(F.Function2<A1,A2,Result> action)
action
- The action to execute.public <A1,A2,A3> RoutingDsl routeTo(F.Function3<A1,A2,A3,Result> action)
action
- The action to execute.public RoutingDsl routeAsync(F.Function0<F.Promise<Result>> action)
action
- The action to execute.public <A1> RoutingDsl routeAsync(F.Function<A1,F.Promise<Result>> action)
action
- The action to execute.public <A1,A2> RoutingDsl routeAsync(F.Function2<A1,A2,F.Promise<Result>> action)
action
- The action to execute.public <A1,A2,A3> RoutingDsl routeAsync(F.Function3<A1,A2,A3,F.Promise<Result>> action)
action
- The action to execute.