com.aliyun.sdk.gateway.sls.policy.SLSUserAgentPolicy Maven / Gradle / Ivy
package com.aliyun.sdk.gateway.sls.policy;
import java.io.IOException;
import java.util.Properties;
public class SLSUserAgentPolicy {
private static String gatewayVersion = "unknown";
static {
try {
Properties props = new Properties();
props.load(SLSUserAgentPolicy.class.getClassLoader().getResourceAsStream("project.properties"));
gatewayVersion = props.getProperty("sls.gateway.version");
} catch (IOException e) {
e.printStackTrace();
}
}
public static String getDefaultUserAgentSuffix() {
return "aliyun-gateway-sls: " + gatewayVersion;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy