public class ScpCfDestinationLoader extends Object implements DestinationLoader
Constructor and Description |
---|
ScpCfDestinationLoader()
Create instance with all default settings
|
Modifier and Type | Method and Description |
---|---|
io.vavr.control.Try<Iterable<ScpCfDestination>> |
tryGetAllDestinations(DestinationOptions options)
Retrieves destinations for the provided configuration options.
|
io.vavr.control.Try<Destination> |
tryGetDestination(String destinationName,
DestinationOptions options)
Retrieves a destination for the given name and configuration options.
|
io.vavr.control.Try<ScpCfDestination> |
tryGetDestination(String destinationName,
String pathBaseUrl,
String pathRelative,
ScpCfDestinationServiceResponseProvider responseProvider)
Get destination by name from remote destination service with custom base URL, relative path and response
provider.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
tryGetDestination
public ScpCfDestinationLoader()
@Nonnull public io.vavr.control.Try<Destination> tryGetDestination(@Nonnull String destinationName, @Nonnull DestinationOptions options)
The returned Try
object will contain a
DestinationNotFoundException
in case the
destination could not be found or a
DestinationAccessException
with more details in
case something else went wrong.
If the returned Try
object contains no Exception it will always contain a non-null Destination
value.
tryGetDestination
in interface DestinationLoader
destinationName
- The name of the destination to obtain.options
- Additional settings to modify the behaviour of the destination loader.Try
object containing either the non-null Destination
value or an exception.@Nonnull public io.vavr.control.Try<Iterable<ScpCfDestination>> tryGetAllDestinations(@Nonnull DestinationOptions options)
options
- Destination configuration object@Nonnull @Beta public io.vavr.control.Try<ScpCfDestination> tryGetDestination(@Nonnull String destinationName, @Nonnull String pathBaseUrl, @Nonnull String pathRelative, @Nonnull ScpCfDestinationServiceResponseProvider responseProvider)
destinationName
- Name of the target destination.pathBaseUrl
- Base URL of the remote destination service.pathRelative
- Relative path being attached to the base URL.responseProvider
- Response provider functional interface.Copyright © 2020 SAP SE. All rights reserved.