
com.tigerbrokers.stock.openapi.client.struct.enums.Protocol Maven / Gradle / Ivy
package com.tigerbrokers.stock.openapi.client.struct.enums;
/**
* Description:
* Created by liutongping on 2022/03/08.
*/
public enum Protocol {
HTTP("https://%s/gateway", ""),
WEB_SOCKET("wss://%s:%s/stomp", "port"),
SECURE_SOCKET("wss://%s:%s", "socket_port");
private String urlFormat;
private String portFieldName;
Protocol(String urlFormat, String portFieldName) {
this.urlFormat = urlFormat;
this.portFieldName = portFieldName;
}
public String getUrlFormat() {
return urlFormat;
}
public String getPortFieldName() {
return portFieldName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy