public class ScpNeoDestination extends AbstractScpDestination implements Destination
ScpNeoHttpDestination
or a ScpNeoRfcDestination
.
Additionally provides a builder to construct instances.
Modifier and Type | Class and Description |
---|---|
static class |
ScpNeoDestination.Builder
Builder class to allow for easy creation of an immutable
ScpNeoDestination instance. |
baseDestination
Modifier and Type | Method and Description |
---|---|
HttpDestination |
asHttp()
Decorates this object as a
HttpDestination , |
RfcDestination |
asRfc()
Decorates this object as a
RfcDestination , |
static ScpNeoDestination.Builder |
builder(String name,
DestinationType type)
Starts a builder to be used to create a
ScpNeoDestination with mandatory properties. |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
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 . |
get, getName, getPropertyNames, getType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
decorate
get, get, get, get, getPropertyNames
@Nonnull public HttpDestination 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 RfcDestination 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 ScpNeoDestination.Builder builder(@Nonnull String name, @Nonnull DestinationType type)
ScpNeoDestination
with mandatory properties.name
- The name of the destination.type
- The type of the destination (HTTP, RFC, etc.).Builder
instance.public boolean equals(@Nullable Object o)
equals
in class AbstractScpDestination
protected boolean canEqual(@Nullable Object other)
canEqual
in class AbstractScpDestination
public int hashCode()
hashCode
in class AbstractScpDestination
Copyright © 2021 SAP SE. All rights reserved.