public class ScpCfDestinationFacade extends AbstractDestinationFacade
In addition to reading destinations via the SAP CP CF destination service REST API , this class provides the ability
to read HTTP destination information from the environment variable "destinations". The environment variable is
expected to be in JSON format (see AbstractDestinationFacade
).
Constructor and Description |
---|
ScpCfDestinationFacade()
Creates a new default facade.
|
ScpCfDestinationFacade(com.sap.cloud.sdk.cloudplatform.connectivity.DestinationService destinationService,
com.sap.cloud.sdk.cloudplatform.connectivity.XsuaaService xsuaaService) |
Modifier and Type | Method and Description |
---|---|
Class<? extends Destination> |
getDestinationClass()
Returns the platform-specific implementation class of
Destination . |
Class<? extends GenericDestination> |
getGenericDestinationClass()
Returns the platform-specific implementation class of
GenericDestination . |
Map<String,GenericDestination> |
getGenericDestinationsByName()
Returns all destinations by their names.
|
Class<? extends RfcDestination> |
getRfcDestinationClass()
Returns the platform-specific implementation class of
RfcDestination . |
assertDestinationType, declareDestinations, getDestination, getDestinationsByName, getDestinationsForType, getDestinationsFromEnvironmentVariable, getDestinationsFromEnvironmentVariable, getDestinationType, getGenericDestination, getRfcDestination, getRfcDestinationsByName
public ScpCfDestinationFacade()
@Nonnull public Class<? extends GenericDestination> getGenericDestinationClass()
GenericDestination
. For internal use only.@Nonnull public Class<? extends Destination> getDestinationClass()
Destination
. For internal use only.@Nonnull public Class<? extends RfcDestination> getRfcDestinationClass()
RfcDestination
. For internal use only.@Nonnull public Map<String,GenericDestination> getGenericDestinationsByName() throws DestinationAccessException
DestinationAccessException
- If there is an issue while accessing destination information.Copyright © 2018 SAP SE. All rights reserved.