
com.sap.cloud.sdk.cloudplatform.connectivity.ScpNeoDestinationParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connectivity-scp-neo Show documentation
Show all versions of connectivity-scp-neo Show documentation
Implementation of the Cloud platform abstraction for general-purpose connectivity
on the SAP Cloud Platform (Cloud Foundry).
The newest version!
/*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.sap.cloud.sdk.cloudplatform.connectivity;
import java.util.Map;
import javax.annotation.Nullable;
import com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException;
import com.sap.core.connectivity.api.configuration.DestinationConfiguration;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor( access = AccessLevel.PACKAGE )
class ScpNeoDestinationParser extends AbstractDestinationParser
{
private static final String PROPERTY_CLOUD_CONNECTOR_LOCATION_ID = "CloudConnectorLocationId";
@Getter( AccessLevel.PACKAGE )
private final DestinationConfiguration destinationConfiguration;
@Nullable
String getCloudConnectorLocationId()
{
return getPropertyIfExists(PROPERTY_CLOUD_CONNECTOR_LOCATION_ID);
}
@Override
Map getProperties()
throws DestinationAccessException
{
return destinationConfiguration.getAllProperties();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy