public class ScpCfDestinationFacade extends AbstractDestinationFacade
In addition to reading destinations via the SCP 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 facade based on the
XsuaaService . |
ScpCfDestinationFacade(com.sap.cloud.sdk.cloudplatform.connectivity.DestinationService destinationService)
Creates a new facade based on the given destination service.
|
Modifier and Type | Method and Description |
---|---|
Map<String,GenericDestination> |
getGenericDestinationsByName()
Returns all destinations by their names.
|
declareDestinations, getDestination, getDestinationsByName, getDestinationType, getGenericDestination, getRfcDestination, getRfcDestinationsByName
public ScpCfDestinationFacade()
XsuaaService
.public ScpCfDestinationFacade(@NonNull com.sap.cloud.sdk.cloudplatform.connectivity.DestinationService destinationService)
destinationService
- The destination service to be used by this facade.public Map<String,GenericDestination> getGenericDestinationsByName() throws DestinationAccessException
DestinationAccessException
- If there is an issue while accessing destination information.Copyright © 2018 SAP SE. All rights reserved.