public class DefaultDestination extends Object implements Destination
Destination interface to be used as the "single source of truth". All
other destination implementations provided will retrieve the properties out of this class.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultDestination.Builder
Builder class to allow for easy creation of an immutable
DefaultDestination instance. |
| Constructor and Description |
|---|
DefaultDestination(Map<String,?> properties)
Creates an immutable destination with the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultHttpDestination |
asHttp()
Decorates this object as a
HttpDestination, |
DefaultRfcDestination |
asRfc()
Decorates this object as a
RfcDestination, |
static DefaultDestination.Builder |
builder()
Starts a builder to be used to create a
DefaultDestination with some properties. |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
io.vavr.control.Option<Object> |
get(String someKey)
Gets the value associated with the given key (if any).
|
Iterable<String> |
getPropertyNames()
Retrieves the set of property keys of the destination.
|
int |
hashCode() |
boolean |
isHttp()
Verifies that this object can be converted to a
HttpDestination. |
boolean |
isRfc()
Verifies that this object can be converted to a
RfcDestination. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdecorateget, get, get@Nonnull public io.vavr.control.Option<Object> get(@Nonnull String someKey)
get in interface DestinationPropertiessomeKey - The key to get the value for.Option object containing the value, if any.@Nonnull public Iterable<String> getPropertyNames()
getPropertyNames in interface DestinationProperties@Nonnull public DefaultHttpDestination asHttp()
HttpDestination,asHttp in interface Destinationpublic boolean isHttp()
HttpDestination.isHttp in interface Destinationtrue, if a call to Destination.asHttp() will succeed; false otherwise.@Nonnull public DefaultRfcDestination asRfc()
RfcDestination,asRfc in interface Destinationpublic boolean isRfc()
RfcDestination.isRfc in interface Destinationtrue, if a call to Destination.asRfc() ()} will succeed; false otherwise.@Nonnull public static DefaultDestination.Builder builder()
DefaultDestination with some properties.Builder instance.Copyright © 2021 SAP SE. All rights reserved.