public class ErpSystem extends Object implements TestSystem<ErpSystem>
Modifier and Type | Class and Description |
---|---|
static class |
ErpSystem.ErpSystemBuilder |
Constructor and Description |
---|
ErpSystem(String alias,
URI uri,
String systemId,
SapClient sapClient)
Constructs a new ERP system without a proxy using
locale
Locale.ENGLISH ,
an application server host equal to the host of parameter uri ,
and instance number "00" .
Delegates to ErpSystem(String, URI, String, SapClient, Locale, ProxyConfiguration, String, String) . |
ErpSystem(String alias,
URI uri,
String systemId,
SapClient sapClient,
Locale locale,
ProxyConfiguration proxyConfiguration,
String applicationServer,
String instanceNumber)
Constructs a new ERP system.
|
ErpSystem(String alias,
URI uri,
String systemId,
SapClient sapClient,
ProxyConfiguration proxyConfiguration)
Constructs a new ERP system using
locale
Locale.ENGLISH ,
an application server host equal to the host of parameter uri ,
and instance number "00" .
Delegates to ErpSystem(String, URI, String, SapClient, Locale, ProxyConfiguration, String, String) . |
ErpSystem(URI uri,
String systemId,
SapClient sapClient)
Constructs a new ERP system without a proxy using
the system
alias = systemId + "_" + sapClient
locale Locale.ENGLISH ,
an application server host equal to the host of parameter uri ,
and instance number "00" .
Delegates to ErpSystem(String, URI, String, SapClient) . |
Modifier and Type | Method and Description |
---|---|
static ErpSystem.ErpSystemBuilder |
builder()
Creates a new builder without initializing mandatory parameters.
|
static ErpSystem.ErpSystemBuilder |
builder(String alias,
URI uri)
Creates a new builder for the given mandatory parameters.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getAlias()
The alias of the test system.
|
String |
getApplicationServer() |
String |
getInstanceNumber() |
Locale |
getLocale() |
io.vavr.control.Option<ProxyConfiguration> |
getProxyConfiguration()
The
ProxyConfiguration of the test system, if present. |
SapClient |
getSapClient() |
String |
getSystemId() |
Class<ErpSystem> |
getType()
The type of the test system.
|
URI |
getUri()
The URI of the test system.
|
int |
hashCode() |
String |
toString() |
public ErpSystem(@Nonnull URI uri, @Nullable String systemId, @Nullable SapClient sapClient)
alias = systemId + "_" + sapClient
Locale.ENGLISH
,uri
,"00"
.ErpSystem(String, URI, String, SapClient)
.uri
- The URI of the ERP.systemId
- The system identifier of the ERP.sapClient
- The SapClient
to be used.public ErpSystem(@Nonnull String alias, @Nonnull URI uri, @Nullable String systemId, @Nullable SapClient sapClient)
Locale.ENGLISH
,uri
,"00"
.ErpSystem(String, URI, String, SapClient, Locale, ProxyConfiguration, String, String)
.alias
- The alias of the ERP.uri
- The URI of the ERP.systemId
- The system identifier of the ERP.sapClient
- The SapClient
to be used.public ErpSystem(@Nonnull String alias, @Nonnull URI uri, @Nullable String systemId, @Nullable SapClient sapClient, @Nullable ProxyConfiguration proxyConfiguration)
Locale.ENGLISH
,uri
,"00"
.ErpSystem(String, URI, String, SapClient, Locale, ProxyConfiguration, String, String)
.alias
- The alias of the ERP.uri
- The URI of the ERP.systemId
- The system identifier of the ERP.sapClient
- The SapClient
to be used.proxyConfiguration
- The ProxyConfiguration
to be used as proxy for connecting to the ERP. If null
, no
proxy is required.public ErpSystem(@Nonnull String alias, @Nonnull URI uri, @Nullable String systemId, @Nullable SapClient sapClient, @Nullable Locale locale, @Nullable ProxyConfiguration proxyConfiguration, @Nullable String applicationServer, @Nullable String instanceNumber)
alias
- The alias of the ERP.uri
- The URI of the ERP.systemId
- The system identifier of the ERP. If null
, an empty String is used.sapClient
- The SapClient
to be used. If null
, SapClient.DEFAULT
is used.locale
- The Locale
to be used. If null
, Locale.US
is used.proxyConfiguration
- The ProxyConfiguration
to be used as proxy for connecting to the ERP. If null
, no
proxy is required.applicationServer
- The application server host of the ERP. If null
, the host of the uri
parameter is
used.instanceNumber
- The instance number of the ERP. If null
, "00"
is used.@Nonnull public Class<ErpSystem> getType()
getType
in interface TestSystem<ErpSystem>
@Nonnull public io.vavr.control.Option<ProxyConfiguration> getProxyConfiguration()
ProxyConfiguration
of the test system, if present.getProxyConfiguration
in interface TestSystem<ErpSystem>
Option
of the ProxyConfiguration
.@Nonnull public static ErpSystem.ErpSystemBuilder builder()
@Nonnull public static ErpSystem.ErpSystemBuilder builder(@Nonnull String alias, @Nonnull URI uri)
@Nonnull public String getAlias()
TestSystem
getAlias
in interface TestSystem<ErpSystem>
@Nonnull public URI getUri()
TestSystem
getUri
in interface TestSystem<ErpSystem>
protected boolean canEqual(Object other)
Copyright © 2019 SAP SE. All rights reserved.