public class ScpNeoCloudPlatform extends Object implements CloudPlatform
Constructor and Description |
---|
ScpNeoCloudPlatform() |
Modifier and Type | Method and Description |
---|---|
String |
getApplicationName()
Get the application name.
|
String |
getApplicationProcessId()
Get the process ID of the current application.
|
String |
getApplicationUrl()
Get the application url.
|
String |
getCloudPlatformLandscape()
Get the type of the region host where the current application is deployed.
|
String |
getCloudPlatformRegion()
Get the SAP Cloud Platform region where the current application is deployed.
|
String |
getCloudPlatformRegionHost()
Get the Base URL of the SAP Cloud Platform region host where the current application is deployed.
|
String |
getCloudPlatformRegionHostCert()
Get the Base URL of the SAP Cloud Platform region host which enables client certificate authentication.
|
String |
getCloudPlatformRegionHostSvc()
Get the Base URL of the SAP Cloud Platform region host for direct communication within the same region, and not
open on the Internet or other networks.
|
int |
getLocalHttpPort()
Get the HTTP port of the application bound to localhost.
|
String |
getOnPremiseProxyHost()
Get the on-premise proxy host.
|
int |
getOnPremiseProxyPort()
Get the on-premise proxy port.
|
String |
getProviderAccountId()
Get the provider account name.
|
void |
setEnvironmentVariableReader(Function<String,String> environmentVariableReader)
Set a custom function to read environment variables with.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHttpSecuritySettings
@Nonnull public String getApplicationName() throws CloudPlatformException
getApplicationName
in interface CloudPlatform
CloudPlatformException
- If there is an error accessing the application name.@Nonnull public String getApplicationUrl() throws CloudPlatformException
getApplicationUrl
in interface CloudPlatform
CloudPlatformException
- If there is an error accessing the application url.@Nonnull public String getProviderAccountId() throws CloudPlatformException
CloudPlatformException
- If there is an issue while accessing the underlying environment variable.@Nonnull public String getOnPremiseProxyHost() throws CloudPlatformException
CloudPlatformException
- If there is an issue while accessing the underlying environment variable.public int getOnPremiseProxyPort() throws CloudPlatformException
CloudPlatformException
- If there is an issue while accessing the underlying environment variable.public int getLocalHttpPort() throws CloudPlatformException
CloudPlatformException
- If there is an issue while accessing the underlying environment variable.@Nonnull public String getCloudPlatformRegionHost() throws CloudPlatformException
CloudPlatformException
- If there is an issue while accessing the underlying environment variable.@Nonnull public String getCloudPlatformRegionHostSvc() throws CloudPlatformException
CloudPlatformException
- If there is an issue while accessing the underlying environment variable.@Nonnull public String getCloudPlatformRegionHostCert() throws CloudPlatformException
CloudPlatformException
- If there is an issue while accessing the underlying environment variable.@Nonnull public String getCloudPlatformRegion() throws CloudPlatformException
CloudPlatformException
- If there is an issue while accessing the underlying environment variable.@Nonnull public String getCloudPlatformLandscape() throws CloudPlatformException
CloudPlatformException
- If there is an issue while accessing the underlying environment variable.@Nonnull public String getApplicationProcessId() throws CloudPlatformException
getApplicationProcessId
in interface CloudPlatform
CloudPlatformException
- If there is an error accessing the process ID.public void setEnvironmentVariableReader(@Nonnull Function<String,String> environmentVariableReader)
CloudPlatform
setEnvironmentVariableReader
in interface CloudPlatform
environmentVariableReader
- A generic key-value mapping.Copyright © 2021 SAP SE. All rights reserved.