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,A2> RoutingDsl |
routeAsync(java.util.function.BiFunction<A1,A2,? extends java.util.concurrent.CompletionStage<Result>> action)
Route with two parameters.
|
<A1,A2,A3> RoutingDsl |
routeAsync(F.Function3<A1,A2,A3,? extends java.util.concurrent.CompletionStage<Result>> action)
Route with three parameters.
|
<A1> RoutingDsl |
routeAsync(java.util.function.Function<A1,? extends java.util.concurrent.CompletionStage<Result>> action)
Route with one parameter.
|
RoutingDsl |
routeAsync(java.util.function.Supplier<? extends java.util.concurrent.CompletionStage<Result>> action)
Route with no parameters.
|
<A1,A2> RoutingDsl |
routeTo(java.util.function.BiFunction<A1,A2,Result> action)
Route with two parameters.
|
<A1,A2,A3> RoutingDsl |
routeTo(F.Function3<A1,A2,A3,Result> action)
Route with three parameters.
|
<A1> RoutingDsl |
routeTo(java.util.function.Function<A1,Result> action)
Route with one parameter.
|
RoutingDsl |
routeTo(java.util.function.Supplier<Result> action)
Route with no parameters.
|
public PathPatternMatcher(java.lang.String method, java.lang.String pathPattern)
public RoutingDsl routeTo(java.util.function.Supplier<Result> action)
action
- The action to execute.public <A1> RoutingDsl routeTo(java.util.function.Function<A1,Result> action)
A1
- the first type parameteraction
- The action to execute.public <A1,A2> RoutingDsl routeTo(java.util.function.BiFunction<A1,A2,Result> action)
A1
- the first type parameterA2
- the second type parameteraction
- The action to execute.public <A1,A2,A3> RoutingDsl routeTo(F.Function3<A1,A2,A3,Result> action)
A1
- the first type parameterA2
- the second type parameterA3
- the third type parameteraction
- The action to execute.public RoutingDsl routeAsync(java.util.function.Supplier<? extends java.util.concurrent.CompletionStage<Result>> action)
action
- The action to execute.public <A1> RoutingDsl routeAsync(java.util.function.Function<A1,? extends java.util.concurrent.CompletionStage<Result>> action)
A1
- the first type parameteraction
- The action to execute.public <A1,A2> RoutingDsl routeAsync(java.util.function.BiFunction<A1,A2,? extends java.util.concurrent.CompletionStage<Result>> action)
A1
- the first type parameterA2
- the second type parameteraction
- The action to execute.public <A1,A2,A3> RoutingDsl routeAsync(F.Function3<A1,A2,A3,? extends java.util.concurrent.CompletionStage<Result>> action)
A1
- the first type parameterA2
- the second type parameterA3
- the third type parameteraction
- The action to execute.