Annotation Interface PathParam


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface PathParam
Use this annotation with the ManagedService annotation. Annotate a field which will get appropriate value when the service is instantiated for given path. The syntax of the path is the following /whatever/{varX}/.../whatever/.../{varY}/... The @PathVariable annotation may be given a name, otherwise verbatim name of field is used The number of slashes in the matched and matching paths shall be equal, otherwise the result is undefined.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The URI template variable to bind to.
  • Element Details

    • value

      String value
      The URI template variable to bind to.
      Default:
      ""