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

org.openstack4j.model.octavia.ListenerProtocol Maven / Gradle / Ivy

package org.openstack4j.model.octavia;

import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * Protocol options for lbaas v2 listener
 * @author wei
 */
public enum ListenerProtocol {
    HTTP,
    HTTPS,
    TERMINATED_HTTPS,
    TCP;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy