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:
    MvcContext.uri(java.lang.String)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value
      The symbolic name
    • Element Detail

      • value

        java.lang.String value
        The symbolic name
        Returns:
        symbolic reference