类 McpServerSSE.Builder

java.lang.Object
com.github.codeboyzhou.mcp.declarative.configuration.McpServerSSE.Builder
封闭类:
McpServerSSE

public static class McpServerSSE.Builder extends Object
Builder class for McpServerSSE.
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • messageEndpoint

      public McpServerSSE.Builder messageEndpoint(String messageEndpoint)
      Sets the message endpoint.
      参数:
      messageEndpoint - The message endpoint.
      返回:
      This builder instance.
    • endpoint

      public McpServerSSE.Builder endpoint(String endpoint)
      Sets the endpoint.
      参数:
      endpoint - The endpoint.
      返回:
      This builder instance.
    • baseUrl

      public McpServerSSE.Builder baseUrl(String baseUrl)
      Sets the base URL.
      参数:
      baseUrl - The base URL.
      返回:
      This builder instance.
    • port

      public McpServerSSE.Builder port(Integer port)
      Sets the port.
      参数:
      port - The port.
      返回:
      This builder instance.
    • build

      public McpServerSSE build()
      Builds an instance of McpServerSSE with the configured values.
      返回:
      A new instance of McpServerSSE.