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

mesosphere.client.common.HeaderUtils Maven / Gradle / Ivy

There is a newer version: 0.6.3
Show newest version
package mesosphere.client.common;

public class HeaderUtils {
    // Used to designate what client the request is from since DCOS has several different APIs that can be used. This
    // allows us to flex some things specific to that API, such as adding "/marathon" to paths for all marathon calls.
    public static final String API_SOURCE_HEADER = "X-API-Source";
    public static final String MARATHON_API_SOURCE = "marathon/client";
    public static final String AUTH_API_SOURCE = "auth/client";
    public static final String SECRETS_API_SOURCE = "secret/client";
    public static final String METRONOME_API_SOURCE = "metronome/client";
    public static final String MESOS_API_SOURCE = "mesos/client";
    public static final String MARATHON_API_SOURCE_HEADER = API_SOURCE_HEADER + ": " + MARATHON_API_SOURCE;
    public static final String AUTH_API_SOURCE_HEADER = API_SOURCE_HEADER + ": " + AUTH_API_SOURCE;
    public static final String SECRETS_API_SOURCE_HEADER = API_SOURCE_HEADER + ": " + SECRETS_API_SOURCE;
    public static final String METRONOME_API_SOURCE_HEADER = API_SOURCE_HEADER + ": " + METRONOME_API_SOURCE;
    public static final String MESOS_API_SOURCE_HEADER = API_SOURCE_HEADER + ": " + MESOS_API_SOURCE;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy