@Beta public final class WrappedDestination extends Object implements Destination
| Modifier and Type | Method and Description |
|---|---|
HttpDestination |
asHttp()
Decorates this object as a
HttpDestination, |
RfcDestination |
asRfc()
Decorates this object as a
RfcDestination, |
io.vavr.control.Option<Object> |
get(String key)
Gets the value associated with the given key (if any).
|
Iterable<String> |
getPropertyNames()
Retrieves the set of property keys of the destination.
|
boolean |
isHttp()
Verifies that this object can be converted to a
HttpDestination. |
boolean |
isRfc()
Verifies that this object can be converted to a
RfcDestination. |
static Destination |
of(HttpDestination httpDestination)
Wrap a
HttpDestination as Destination. |
static WrappedDestination |
of(RfcDestination rfcDestination)
Wrap a
RfcDestination as Destination. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecorateget, get, get@Nonnull public static Destination of(@Nonnull HttpDestination httpDestination)
HttpDestination as Destination.httpDestination - The destination to wrap.@Nonnull public static WrappedDestination of(@Nonnull RfcDestination rfcDestination)
RfcDestination as Destination.rfcDestination - The destination to wrap.@Nonnull public HttpDestination asHttp() throws IllegalArgumentException
HttpDestination,asHttp in interface DestinationIllegalArgumentException - if this object cannot be decorated as a HttpDestination.public boolean isHttp()
HttpDestination.isHttp in interface Destinationtrue, if a call to Destination.asHttp() will succeed; false otherwise.@Nonnull public RfcDestination asRfc() throws IllegalArgumentException
RfcDestination,asRfc in interface DestinationIllegalArgumentException - if this object cannot be decorated as a RfcDestination.public boolean isRfc()
RfcDestination.isRfc in interface Destinationtrue, if a call to Destination.asRfc() ()} will succeed; false otherwise.@Nonnull public io.vavr.control.Option<Object> get(@Nonnull String key)
get in interface DestinationPropertieskey - The key to get the value for.Option object containing the value, if any.@Nonnull public Iterable<String> getPropertyNames()
getPropertyNames in interface DestinationPropertiesCopyright © 2021 SAP SE. All rights reserved.