Module jakarta.mvc
Package jakarta.mvc

Annotation Type UriRef


@Target(METHOD) @Retention(RUNTIME) public @interface UriRef

Defines a symbolic name for a controller method to be referenced by one of the MvcContext.uri(java.lang.String) methods.

The same value of @UriRef can only be used multiple times on different methods if these methods are using the same URI-template with different HTTP verbs.

Since:
1.0
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The symbolic name
  • Element Details

    • value

      String value
      The symbolic name
      Returns:
      symbolic reference