Class ResourceTemplate
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.ResourceTemplate
MCP resource-template descriptor (
resources/templates/list entry).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTemplate description.MIME type hint for matching resources.getName()Short template name.getTitle()Human-readable title.URI template (RFC 6570) describing matching resource URIs.setDescription(String value) Sets the description.setMimeType(String value) Sets the MIME type.Sets the short name.Sets the title.setUriTemplate(String value) Sets the URI template.
-
Constructor Details
-
ResourceTemplate
public ResourceTemplate()
-
-
Method Details
-
getUriTemplate
URI template (RFC 6570) describing matching resource URIs.- Returns:
- The URI template, or
nullif not set.
-
setUriTemplate
Sets the URI template.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getName
Short template name.- Returns:
- The name, or
nullif not set.
-
setName
Sets the short name.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getTitle
Human-readable title.- Returns:
- The title, or
nullif not set.
-
setTitle
Sets the title.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getDescription
Template description.- Returns:
- The description, or
nullif not set.
-
setDescription
Sets the description.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getMimeType
MIME type hint for matching resources.- Returns:
- The MIME type, or
nullif not set.
-
setMimeType
Sets the MIME type.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-