DynamicServiceExecutor
with a URL based
ServiceExtractor
instead.@Deprecated
@Removal(version="3.11.0")
public class ServiceNameMapper
extends java.lang.Object
Maps a name for a Service
to a TradingRelationship
. Used by
ConfiguredServiceNameProvider
.
In the adapter configuration file this class is aliased as configured-service-name-mapper which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
ServiceNameMapper()
Deprecated.
Creates a new instance.
|
ServiceNameMapper(java.lang.String src,
java.lang.String dst,
java.lang.String typ,
java.lang.String name)
Deprecated.
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Deprecated.
|
java.lang.String |
getServiceName()
Deprecated.
If a Service name has been explicitly configured it is returned.
|
TradingRelationship |
getTradingRelationship()
Deprecated.
Returns the
TradingRelationship . |
int |
hashCode()
Deprecated.
|
void |
setServiceName(java.lang.String s)
Deprecated.
Sets the name of the
Service . |
void |
setTradingRelationship(TradingRelationship t)
Deprecated.
Sets the
TradingRelationship . |
public ServiceNameMapper()
Creates a new instance.
public ServiceNameMapper(java.lang.String src, java.lang.String dst, java.lang.String typ, java.lang.String name)
Creates a new instance.
src
- the source identifierdst
- the destination identifiertyp
- the message type identifiername
- the name of the Service
to use for this
ServiceId
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getServiceName()
If a Service name has been explicitly configured it is returned. If the
Service name is null or empty the default service name is returned. The
default service name is source-destination-type
, where none of
source, destination or type may be null or empty.
TradingRelationship
public TradingRelationship getTradingRelationship()
Returns the TradingRelationship
.
TradingRelationship
public void setTradingRelationship(TradingRelationship t)
Sets the TradingRelationship
. May not be null or empty.
t
- the TradingRelationship
public void setServiceName(java.lang.String s)
Sets the name of the Service
.
s
- the name of the Service