@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, wait
decorate
get, 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 Destination
IllegalArgumentException
- if this object cannot be decorated as a HttpDestination
.public boolean isHttp()
HttpDestination
.isHttp
in interface Destination
true
, if a call to Destination.asHttp()
will succeed; false
otherwise.@Nonnull public RfcDestination asRfc() throws IllegalArgumentException
RfcDestination
,asRfc
in interface Destination
IllegalArgumentException
- if this object cannot be decorated as a RfcDestination
.public boolean isRfc()
RfcDestination
.isRfc
in interface Destination
true
, if a call to Destination.asRfc()
()} will succeed; false
otherwise.@Nonnull public io.vavr.control.Option<Object> get(@Nonnull String key)
get
in interface DestinationProperties
key
- The key to get the value for.Option
object containing the value, if any.@Nonnull public Iterable<String> getPropertyNames()
getPropertyNames
in interface DestinationProperties
Copyright © 2021 SAP SE. All rights reserved.