Package org.mcpjava.server.resources
Annotation Interface ResourceTemplateArg
Configures a parameter of a
ResourceTemplate method.
This annotation allows you to customize the name of parameters that correspond to URI template variables in resource templates.
- See Also:
-
Field Details
-
ELEMENT_NAME
Constant value forname()indicating that the annotated element's name should be used as-is.- See Also:
-
-
Element Details
-
name
String nameThe name of the URI template variable.Each argument to a resource template must have a unique name and must match one of the variables included in the
uriTemplate.By default, the parameter name from the method signature will be used (requires compilation with the
-parametersflag).- Returns:
- the template variable name
- Default:
"<<element name>>"
-