Class Resource
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.Resource
MCP resource descriptor (
resources/list entry).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResource description.MIME type hint.getName()Short resource name.getSize()Optional size in bytes when known statically.getTitle()Human-readable title.getUri()Resource URI.setDescription(String value) Sets the description.setMimeType(String value) Sets the MIME type.Sets the short name.Sets the size hint.Sets the title.Sets the resource URI.
-
Constructor Details
-
Resource
public Resource()
-
-
Method Details
-
getUri
Resource URI.- Returns:
- The URI, or
nullif not set.
-
setUri
Sets the resource URI.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getName
Short resource 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
Resource 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.- 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).
-
getSize
Optional size in bytes when known statically.- Returns:
- The size, or
nullif not set.
-
setSize
Sets the size hint.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-