Package org.mcpjava.server.resources
Annotation Interface Resource.Annotations
- Enclosing class:
Resource
Nested annotation for resource metadata annotations.
These provide hints to clients about the resource's audience, modification time, and priority.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionRole[]The intended audience for this resource.The last modification timestamp in ISO 8601 format.doubleThe priority of this resource.
-
Element Details
-
audience
Role[] audienceThe intended audience for this resource.- Returns:
- the intended audience roles, or an empty array to indicate no value
- Default:
{}
-
lastModified
String lastModifiedThe last modification timestamp in ISO 8601 format.- Returns:
- the last modified timestamp, or an empty string to indicate no value
- Default:
""
-
priority
double priorityThe priority of this resource.1.0 represents the highest priority, and 0.0 represents the lowest priority.
- Returns:
- the priority value between 0.0 and 1.0, or -1 to indicate no value
- Default:
-1.0
-