Annotation Interface McpResourceUriParameter


Binds a McpResource method parameter to a URI-template variable.

Resource URI parameters are strings. A blank name() uses the source-level Java parameter name captured by Soklet's annotation processor; an explicit name keeps the public template contract stable across Java refactoring.

Values are UTF-8 percent-decoded exactly once. An encoded slash (%2F) becomes /; %252F becomes the literal string %2F. Captures can be empty and can contain decoded NUL, CR or LF; validate them for the intended application use. A Level 1 variable cannot capture an unencoded slash. The application owns path authorization and filesystem containment checks.

Author:
Mark Allen
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The URI-template variable name.
  • Element Details

    • name

      The URI-template variable name.
      Returns:
      variable name, or an empty string to use the Java parameter name
      Default:
      ""