Package play.routing

Class RoutingDsl.PathPatternMatcher

java.lang.Object
play.routing.RoutingDsl.PathPatternMatcher
Enclosing class:
RoutingDsl

public class RoutingDsl.PathPatternMatcher extends Object
A matcher for routes.
  • Constructor Details

    • PathPatternMatcher

      public PathPatternMatcher(String method, String pathPattern)
  • Method Details

    • 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 parameter
      P2 - 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 parameter
      A2 - the second type parameter
      A3 - the third type parameter
      Parameters:
      action - The action to execute.
      Returns:
      This router builder.