Record Class McpServerConfiguration
java.lang.Object
java.lang.Record
com.github.codeboyzhou.mcp.declarative.configuration.McpServerConfiguration
public record McpServerConfiguration(boolean enabled, boolean stdio, String name, String version, String instructions, long requestTimeout, String type, boolean resourceChangeNotification, boolean promptChangeNotification, boolean toolChangeNotification, String sseMessageEndpoint, String sseEndpoint, String baseUrl, int ssePort)
extends Record
-
构造器概要
构造器构造器说明McpServerConfiguration(boolean enabled, boolean stdio, String name, String version, String instructions, long requestTimeout, String type, boolean resourceChangeNotification, boolean promptChangeNotification, boolean toolChangeNotification, String sseMessageEndpoint, String sseEndpoint, String baseUrl, int ssePort) 创建McpServerConfiguration记录的实例。 -
方法概要
修饰符和类型方法说明baseUrl()返回baseUrl记录组件的值。static McpServerConfigurationbooleanenabled()返回enabled记录组件的值。final boolean指示某个其他对象是否“等于”此对象。final inthashCode()返回此对象的哈希代码值。返回instructions记录组件的值。name()返回name记录组件的值。boolean返回promptChangeNotification记录组件的值。long返回requestTimeout记录组件的值。boolean返回resourceChangeNotification记录组件的值。返回sseEndpoint记录组件的值。返回sseMessageEndpoint记录组件的值。intssePort()返回ssePort记录组件的值。booleanstdio()返回stdio记录组件的值。boolean返回toolChangeNotification记录组件的值。final StringtoString()返回此记录的字符串表示形式。type()返回type记录组件的值。version()返回version记录组件的值。
-
构造器详细资料
-
McpServerConfiguration
public McpServerConfiguration(boolean enabled, boolean stdio, String name, String version, String instructions, long requestTimeout, String type, boolean resourceChangeNotification, boolean promptChangeNotification, boolean toolChangeNotification, String sseMessageEndpoint, String sseEndpoint, String baseUrl, int ssePort) 创建McpServerConfiguration记录的实例。- 参数:
enabled-enabled记录组件的值stdio-stdio记录组件的值name-name记录组件的值version-version记录组件的值instructions-instructions记录组件的值requestTimeout-requestTimeout记录组件的值type-type记录组件的值resourceChangeNotification-resourceChangeNotification记录组件的值promptChangeNotification-promptChangeNotification记录组件的值toolChangeNotification-toolChangeNotification记录组件的值sseMessageEndpoint-sseMessageEndpoint记录组件的值sseEndpoint-sseEndpoint记录组件的值baseUrl-baseUrl记录组件的值ssePort-ssePort记录组件的值
-
-
方法详细资料
-
defaultConfiguration
-
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)对参考组件进行比较;使用 '==' 对基元组件进行比较 -
enabled
public boolean enabled()返回enabled记录组件的值。- 返回:
enabled记录组件的值
-
stdio
public boolean stdio()返回stdio记录组件的值。- 返回:
stdio记录组件的值
-
name
返回name记录组件的值。- 返回:
name记录组件的值
-
version
返回version记录组件的值。- 返回:
version记录组件的值
-
instructions
返回instructions记录组件的值。- 返回:
instructions记录组件的值
-
requestTimeout
public long requestTimeout()返回requestTimeout记录组件的值。- 返回:
requestTimeout记录组件的值
-
type
返回type记录组件的值。- 返回:
type记录组件的值
-
resourceChangeNotification
public boolean resourceChangeNotification()返回resourceChangeNotification记录组件的值。- 返回:
resourceChangeNotification记录组件的值
-
promptChangeNotification
public boolean promptChangeNotification()返回promptChangeNotification记录组件的值。- 返回:
promptChangeNotification记录组件的值
-
toolChangeNotification
public boolean toolChangeNotification()返回toolChangeNotification记录组件的值。- 返回:
toolChangeNotification记录组件的值
-
sseMessageEndpoint
返回sseMessageEndpoint记录组件的值。- 返回:
sseMessageEndpoint记录组件的值
-
sseEndpoint
返回sseEndpoint记录组件的值。- 返回:
sseEndpoint记录组件的值
-
baseUrl
返回baseUrl记录组件的值。- 返回:
baseUrl记录组件的值
-
ssePort
public int ssePort()返回ssePort记录组件的值。- 返回:
ssePort记录组件的值
-