Interface ResourceTemplateDescriptor.Builder
- Enclosing interface:
ResourceTemplateDescriptor
public static interface ResourceTemplateDescriptor.Builder
Builder for
ResourceTemplateDescriptor.-
Method Summary
Modifier and TypeMethodDescriptionannotations(@Nullable Annotations annotations) Sets the optional annotations shared by resources matching this template.build()Builds theResourceTemplateDescriptor.description(@Nullable String description) Sets the optional description of the resource family.extensionId(@Nullable String extensionId) Sets the optional identifier of the extension that owns this template.Sets the optional icons for resources matching this template.Sets the optional icons for resources matching this template.Sets optional protocol extension metadata.Sets the optional MIME type that all matching resources share.Sets the template name, unique within the server.Sets the optional human-readable title.uriTemplate(String uriTemplate) Sets the URI template pattern (e.g.
-
Method Details
-
name
Sets the template name, unique within the server. -
uriTemplate
Sets the URI template pattern (e.g.file:///{path}). -
description
Sets the optional description of the resource family. -
mimeType
Sets the optional MIME type that all matching resources share. -
title
Sets the optional human-readable title. -
annotations
Sets the optional annotations shared by resources matching this template. -
icons
Sets the optional icons for resources matching this template. -
icons
Sets the optional icons for resources matching this template. -
extensionId
Sets the optional identifier of the extension that owns this template. -
meta
Sets optional protocol extension metadata.- Parameters:
entries- metadata entries, ornullfor none
-
build
ResourceTemplateDescriptor build()Builds theResourceTemplateDescriptor.
-