Record Class McpEndpointRegistration
java.lang.Object
java.lang.Record
com.soklet.McpEndpointRegistration
@Immutable
public record McpEndpointRegistration(@NonNull Class<? extends McpEndpoint> endpointClass, @NonNull ResourcePathDeclaration endpointPathDeclaration, @NonNull String name, @NonNull String version, @Nullable String instructions, @Nullable String title, @Nullable String description, @Nullable String websiteUrl, @NonNull Set<@NonNull String> toolNames, @NonNull Set<@NonNull String> promptNames, @NonNull Set<@NonNull String> resourceUris, @NonNull Boolean hasResourceListHandler)
extends Record
Immutable metadata describing a resolved MCP endpoint registration.
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionMcpEndpointRegistration(@NonNull Class<? extends McpEndpoint> endpointClass, @NonNull ResourcePathDeclaration endpointPathDeclaration, @NonNull String name, @NonNull String version, @Nullable String instructions, @Nullable String title, @Nullable String description, @Nullable String websiteUrl, @NonNull Set<@NonNull String> toolNames, @NonNull Set<@NonNull String> promptNames, @NonNull Set<@NonNull String> resourceUris, @NonNull Boolean hasResourceListHandler) Creates an instance of aMcpEndpointRegistrationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.@NonNull Class<? extends McpEndpoint> Returns the value of theendpointClassrecord component.Returns the value of theendpointPathDeclarationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehasResourceListHandlerrecord component.Returns the value of theinstructionsrecord component.name()Returns the value of thenamerecord component.Returns the value of thepromptNamesrecord component.Returns the value of theresourceUrisrecord component.title()Returns the value of thetitlerecord component.Returns the value of thetoolNamesrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.Returns the value of thewebsiteUrlrecord component.
-
Constructor Details
-
McpEndpointRegistration
public McpEndpointRegistration(@NonNull Class<? extends McpEndpoint> endpointClass, @NonNull ResourcePathDeclaration endpointPathDeclaration, @NonNull String name, @NonNull String version, @Nullable String instructions, @Nullable String title, @Nullable String description, @Nullable String websiteUrl, @NonNull Set<@NonNull String> toolNames, @NonNull Set<@NonNull String> promptNames, @NonNull Set<@NonNull String> resourceUris, @NonNull Boolean hasResourceListHandler) Creates an instance of aMcpEndpointRegistrationrecord class.- Parameters:
endpointClass- the value for theendpointClassrecord componentendpointPathDeclaration- the value for theendpointPathDeclarationrecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentinstructions- the value for theinstructionsrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentwebsiteUrl- the value for thewebsiteUrlrecord componenttoolNames- the value for thetoolNamesrecord componentpromptNames- the value for thepromptNamesrecord componentresourceUris- the value for theresourceUrisrecord componenthasResourceListHandler- the value for thehasResourceListHandlerrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
endpointClass
Returns the value of theendpointClassrecord component.- Returns:
- the value of the
endpointClassrecord component
-
endpointPathDeclaration
Returns the value of theendpointPathDeclarationrecord component.- Returns:
- the value of the
endpointPathDeclarationrecord component
-
name
-
version
-
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
title
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
websiteUrl
Returns the value of thewebsiteUrlrecord component.- Returns:
- the value of the
websiteUrlrecord component
-
toolNames
-
promptNames
Returns the value of thepromptNamesrecord component.- Returns:
- the value of the
promptNamesrecord component
-
resourceUris
Returns the value of theresourceUrisrecord component.- Returns:
- the value of the
resourceUrisrecord component
-
hasResourceListHandler
Returns the value of thehasResourceListHandlerrecord component.- Returns:
- the value of the
hasResourceListHandlerrecord component
-