Enum Class Protocol

java.lang.Object
java.lang.Enum<Protocol>
com.midi.his.sdk.config.Protocol
所有已实现的接口:
Serializable, Comparable<Protocol>, Constable

public enum Protocol extends Enum<Protocol>
集成平台对外提供的调用协议。

文档 docs/WebServer/集成平台正式环境地址 给出的是 WSDL 地址,属于 SOAP_1_1;部分环境会同时开放直接提交 ESBEntry 报文的 HTTP 通道, 对应 RAW_XML。两种协议的业务报文完全一致,只有外层封装不同。

  • 枚举常量详细资料

    • SOAP_1_1

      public static final Protocol SOAP_1_1
      SOAP 1.1 信封,查询走 esb:HIPMessageServer,推送走 esb:OperationA。
    • RAW_XML

      public static final Protocol RAW_XML
      原生 HTTP POST,请求体就是 ESBEntry XML,响应体也是 ESBEntry XML。
  • 方法详细资料

    • values

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

      public static Protocol 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • parse

      public static Protocol parse(String value)
      解析配置值,仅接受 soap(含 SOAP_1_1)与 xml(含 RAW_XML)。
      参数:
      value - 配置原文,允许大小写混用与首尾空白
      返回:
      对应协议
      抛出:
      IllegalArgumentException - 值不属于上述两种协议时