Annotation Type PathParam


  • @Retention(RUNTIME)
    @Target(PARAMETER)
    public @interface PathParam
    Maps part of the HTTP request target to the parameter, converting the type if necessary. For example @Get("/foo/:id") void myMethod(@PathParam("id") int id) maps the second segment of the path to the id parameter.
    See Also:
    HttpParameterMapping
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value