Package play.routing
Class RoutingDsl.PathPatternMatcher
- Object
-
- play.routing.RoutingDsl.PathPatternMatcher
-
- Enclosing class:
- RoutingDsl
public class RoutingDsl.PathPatternMatcher extends Object
A matcher for routes.
-
-
Constructor Summary
Constructors Constructor Description PathPatternMatcher(String method, String pathPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoutingDsl
routingAsync(RequestFunctions.Params0<? extends CompletionStage<Result>> action)
Route async with the request and no parameters.<P1> RoutingDsl
routingAsync(RequestFunctions.Params1<P1,? extends CompletionStage<Result>> action)
Route async with request and a single parameter.<P1,P2>
RoutingDslroutingAsync(RequestFunctions.Params2<P1,P2,? extends CompletionStage<Result>> action)
Route async with request and two parameters.<A1,A2,A3>
RoutingDslroutingAsync(RequestFunctions.Params3<A1,A2,A3,? extends CompletionStage<Result>> action)
Route async with request and three parameters.RoutingDsl
routingTo(RequestFunctions.Params0<Result> action)
Route with the request and no parameters.<P1> RoutingDsl
routingTo(RequestFunctions.Params1<P1,Result> action)
Route with the request and a single parameter.<P1,P2>
RoutingDslroutingTo(RequestFunctions.Params2<P1,P2,Result> action)
Route with the request and two parameter.<P1,P2,P3>
RoutingDslroutingTo(RequestFunctions.Params3<P1,P2,P3,Result> action)
Route with the request and three parameter.
-
-
-
Method Detail
-
routingTo
public RoutingDsl routingTo(RequestFunctions.Params0<Result> action)
Route with the request and no parameters.- Parameters:
action
- the action to execute- Returns:
- this router builder.
-
routingTo
public <P1> RoutingDsl routingTo(RequestFunctions.Params1<P1,Result> action)
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
public <P1,P2> RoutingDsl routingTo(RequestFunctions.Params2<P1,P2,Result> action)
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
public <P1,P2,P3> RoutingDsl routingTo(RequestFunctions.Params3<P1,P2,P3,Result> action)
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
public RoutingDsl routingAsync(RequestFunctions.Params0<? extends CompletionStage<Result>> action)
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,A3> RoutingDsl routingAsync(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.
-
-