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, wait
decorate
get, get, get
@Nonnull public io.vavr.control.Option<Object> get(@Nonnull String someKey)
get
in interface DestinationProperties
someKey
- 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 Destination
public boolean isHttp()
HttpDestination
.isHttp
in interface Destination
true
, if a call to Destination.asHttp()
will succeed; false
otherwise.@Nonnull public DefaultRfcDestination asRfc()
RfcDestination
,asRfc
in interface Destination
public boolean isRfc()
RfcDestination
.isRfc
in interface Destination
true
, if a call to Destination.asRfc()
()} will succeed; false
otherwise.@Nonnull public static DefaultDestination.Builder builder()
DefaultDestination
with some properties.Builder
instance.protected boolean canEqual(Object other)
Copyright © 2020 SAP SE. All rights reserved.