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

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

package org.openstack4j.model.network.ext;

import com.fasterxml.jackson.annotation.JsonCreator;
/**
 * SessionPersistence type
 * 
 * @author liujunpeng
 *
 */
public enum SessionPersistenceType {
	APP_COOKIE,
    HTTP_COOKIE,
    SOURCE_IP;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy