All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.gateway.sls.policy.SLSUserAgentPolicy Maven / Gradle / Ivy

There is a newer version: 0.2.16-beta
Show newest version
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