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

org.openstack4j.model.network.ext.Protocol Maven / Gradle / Ivy

package org.openstack4j.model.network.ext;

import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * A protocol type used within Load Balancing
 */
public enum Protocol {
    HTTP,
    HTTPS,
    TCP;

    @JsonCreator
    public static Protocol forValue(String value) {
        if (value != null)
        {
            for (Protocol s : Protocol.values()) {
                if (s.name().equalsIgnoreCase(value)) {
                    return s;
                }
            }
        }
        return Protocol.HTTP;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy