public class ScpCfDestination extends AbstractScpDestination implements Destination
ScpCfHttpDestination
or a ScpCfRfcDestination
.
Additionally provides a builder to construct instances.
Modifier and Type | Class and Description |
---|---|
static class |
ScpCfDestination.Builder
Builder class to allow for easy creation of an immutable
ScpCfDestination 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 ScpCfDestination.Builder |
builder(String name,
DestinationType type)
Starts a builder to be used to create a
ScpCfDestination 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() 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 static ScpCfDestination.Builder builder(@Nonnull String name, @Nonnull DestinationType type)
ScpCfDestination
with mandatory properties.name
- The name of the destination.type
- The type of the destination (HTTP, RFC, etc.).Builder
instance.public boolean equals(Object o)
equals
in class AbstractScpDestination
protected boolean canEqual(Object other)
canEqual
in class AbstractScpDestination
public int hashCode()
hashCode
in class AbstractScpDestination
Copyright © 2020 SAP SE. All rights reserved.