Enum Class McpServerProtocolEnum

java.lang.Object
java.lang.Enum<McpServerProtocolEnum>
com.bytedesk.ai.springai.mcp_server.McpServerProtocolEnum
All Implemented Interfaces:
Serializable, Comparable<McpServerProtocolEnum>, Constable

public enum McpServerProtocolEnum extends Enum<McpServerProtocolEnum>
MCP Server protocol enumeration Represents the communication protocol used by MCP servers
  • Enum Constant Details

  • Field Details

    • displayName

      private final String displayName
    • description

      private final String description
    • defaultPort

      private final int defaultPort
  • Constructor Details

    • McpServerProtocolEnum

      private McpServerProtocolEnum(String displayName, String description, int defaultPort)
  • Method Details

    • values

      public static McpServerProtocolEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static McpServerProtocolEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDisplayName

      public String getDisplayName()
    • getDescription

      public String getDescription()
    • getDefaultPort

      public int getDefaultPort()
    • fromString

      public static McpServerProtocolEnum fromString(String protocol)
      Get enum from string value (case insensitive)
    • isSecure

      public boolean isSecure()
      Check if protocol is secure
    • isRealTime

      public boolean isRealTime()
      Check if protocol supports real-time communication
    • isWebBased

      public boolean isWebBased()
      Check if protocol is web-based
    • requiresNetwork

      public boolean requiresNetwork()
      Check if protocol requires network connection
    • getScheme

      public String getScheme()
      Get URL scheme for the protocol