public enum CloudPlatform extends Enum<CloudPlatform>
Enum Constant and Description |
---|
CLOUD_FOUNDRY
Cloud Foundry platform.
|
HEROKU
Heroku platform.
|
KUBERNETES
Kubernetes platform.
|
SAP
SAP Cloud platform.
|
Modifier and Type | Method and Description |
---|---|
static CloudPlatform |
getActive(org.springframework.core.env.Environment environment)
Returns the active
CloudPlatform or null if one cannot be deduced. |
abstract boolean |
isActive(org.springframework.core.env.Environment environment)
Determines if the platform is active (i.e.
|
boolean |
isUsingForwardHeaders()
Returns if the platform is behind a load balancer and uses
X-Forwarded-For headers.
|
static CloudPlatform |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloudPlatform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloudPlatform CLOUD_FOUNDRY
public static final CloudPlatform HEROKU
public static final CloudPlatform SAP
public static final CloudPlatform KUBERNETES
public static CloudPlatform[] values()
for (CloudPlatform c : CloudPlatform.values()) System.out.println(c);
public static CloudPlatform valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract boolean isActive(org.springframework.core.env.Environment environment)
environment
- the environmentpublic boolean isUsingForwardHeaders()
public static CloudPlatform getActive(org.springframework.core.env.Environment environment)
CloudPlatform
or null
if one cannot be deduced.environment
- the environmentCloudPlatform
or null
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.