Package play.routing
Class RoutingDsl.PathPatternMatcher
java.lang.Object
play.routing.RoutingDsl.PathPatternMatcher
- Enclosing class:
- RoutingDsl
A matcher for routes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionroutingAsync(RequestFunctions.Params0<? extends CompletionStage<Result>> action) Route async with the request and no parameters.<P1> RoutingDslroutingAsync(RequestFunctions.Params1<P1, ? extends CompletionStage<Result>> action) Route async with request and a single parameter.<P1,P2> RoutingDsl routingAsync(RequestFunctions.Params2<P1, P2, ? extends CompletionStage<Result>> action) Route async with request and two parameters.<A1,A2, A3> RoutingDsl routingAsync(RequestFunctions.Params3<A1, A2, A3, ? extends CompletionStage<Result>> action) Route async with request and three parameters.routingTo(RequestFunctions.Params0<Result> action) Route with the request and no parameters.<P1> RoutingDslroutingTo(RequestFunctions.Params1<P1, Result> action) Route with the request and a single parameter.<P1,P2> RoutingDsl routingTo(RequestFunctions.Params2<P1, P2, Result> action) Route with the request and two parameter.<P1,P2, P3> RoutingDsl routingTo(RequestFunctions.Params3<P1, P2, P3, Result> action) Route with the request and three parameter.
-
Constructor Details
-
PathPatternMatcher
-
-
Method Details
-
routingTo
Route with the request and no parameters.- Parameters:
action- the action to execute- Returns:
- this router builder.
-
routingTo
Route with the request and a single parameter.- Type Parameters:
P1- the first parameter type.- Parameters:
action- the action to execute.- Returns:
- this router builder.
-
routingTo
Route with the request and two parameter.- Type Parameters:
P1- the first parameter type.P2- the second parameter type.- Parameters:
action- the action to execute.- Returns:
- this router builder.
-
routingTo
Route with the request and three parameter.- Type Parameters:
P1- the first parameter type.P2- the second parameter type.P3- the third parameter type.- Parameters:
action- the action to execute.- Returns:
- this router builder.
-
routingAsync
Route async with the request and no parameters.- Parameters:
action- The action to execute.- Returns:
- This router builder.
-
routingAsync
public <P1> RoutingDsl routingAsync(RequestFunctions.Params1<P1, ? extends CompletionStage<Result>> action) Route async with request and a single parameter.- Type Parameters:
P1- the first type parameter- Parameters:
action- The action to execute.- Returns:
- This router builder.
-
routingAsync
public <P1,P2> RoutingDsl routingAsync(RequestFunctions.Params2<P1, P2, ? extends CompletionStage<Result>> action) Route async with request and two parameters.- Type Parameters:
P1- the first type parameterP2- the second type parameter- Parameters:
action- The action to execute.- Returns:
- This router builder.
-
routingAsync
public <A1,A2, RoutingDsl routingAsyncA3> (RequestFunctions.Params3<A1, A2, A3, ? extends CompletionStage<Result>> action) Route async with request and three parameters.- Type Parameters:
A1- the first type parameterA2- the second type parameterA3- the third type parameter- Parameters:
action- The action to execute.- Returns:
- This router builder.
-