Class McpAppResourceMetadata.Builder
java.lang.Object
com.soklet.McpAppResourceMetadata.Builder
- Enclosing class:
McpAppResourceMetadata
Mutable builder for immutable Apps resource metadata.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()contentSecurityPolicy(@NonNull McpAppResourceMetadata.ContentSecurityPolicy contentSecurityPolicy) Sets a host-enforced content security policy.Sets a host-specific sandbox-origin hint without provisioning DNS.permissions(@NonNull Set<@NonNull McpAppResourceMetadata.Permission> permissions) Replaces requested permissions with an immutable ordered snapshot.prefersBorder(@NonNull Boolean prefersBorder) Requests a host-provided border and background when true, or an unframed presentation when false.
-
Method Details
-
contentSecurityPolicy
public @NonNull McpAppResourceMetadata.Builder contentSecurityPolicy(@NonNull McpAppResourceMetadata.ContentSecurityPolicy contentSecurityPolicy) Sets a host-enforced content security policy.- Parameters:
contentSecurityPolicy- immutable policy- Returns:
- this builder
-
permissions
public @NonNull McpAppResourceMetadata.Builder permissions(@NonNull Set<@NonNull McpAppResourceMetadata.Permission> permissions) Replaces requested permissions with an immutable ordered snapshot.- Parameters:
permissions- non-null permissions, possibly empty- Returns:
- this builder
-
domain
Sets a host-specific sandbox-origin hint without provisioning DNS.- Parameters:
domain- lowercase ASCII DNS name with LDH labels and no trailing dot- Returns:
- this builder
- Throws:
IllegalArgumentException- if the baseline DNS-name syntax is invalid
-
prefersBorder
Requests a host-provided border and background when true, or an unframed presentation when false. Omitting this call lets the host decide. This presentation hint does not change the App's security policy.- Parameters:
prefersBorder- whether a border is preferred- Returns:
- this builder
-
build
- Returns:
- immutable resource metadata
-