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