Class SapSystemImpl
java.lang.Object
org.frankframework.util.SapSystemListItem
org.frankframework.extensions.sap.jco3.SapSystemImpl
- All Implemented Interfaces:
ISapSystem
,HasName
,NameAware
,ISapSystem
A SapSystem is a provider of repository information and connections to a SAP-system.
- Since:
- 5.0
- Author:
- Gerrit van Brakel, Jaco de Groot, Niels Meijer
-
Field Summary
Fields inherited from class org.frankframework.util.SapSystemListItem
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
static void
static void
com.sap.conn.jco.JCoDestination
String value of sum of gwservOffset and systemnr.com.sap.conn.idoc.IDocRepository
com.sap.conn.jco.JCoRepository
String value of sum of msservOffset and systemnr.static SapSystemImpl
Retrieve a SapSystem from the list of systems.void
static void
void
SAP application servervoid
setAuthAlias
(String string) Alias to obtain userid and passwordvoid
Group of SAP application servers, when specified logon group will be used and r3name and mshost need to be specified instead of ashostvoid
Gateway hostvoid
setGwservOffset
(int i) Number added to systemNr to find corresponding gateway portvoid
Default value for ashost, gwhost and mshost (i.e. when ashost, gwhost and mshost are all the same, only host needs to be specified)void
setLanguage
(String string) Language indicatorvoid
setMandant
(String string) Mandant i.e.void
setMaxConnections
(int i) Maximum number of connections that may connect simultaneously to the SAP systemvoid
SAP message servervoid
setMsservOffset
(int i) Number added to systemNr to find corresponding message server portvoid
Own SNC name of the caller.void
setPartnerName
(String partnerName) SNC name of the communication partner server.void
Passwd used in the connectionvoid
System ID of the SAP systemvoid
setServiceOffset
(int i) Deprecated, for removal: This API element is subject to removal in a future version.void
setSncAuthMethod
(String sncAuthMethod) When using SNC, this specifies if SNC should authenticate via SSO or a username/password combination. 1=SSO, 0=username/passwordvoid
setSncEnabled
(boolean sncEnabled) Enable or disable SNCvoid
setSncLibrary
(String sncLibPath) Path where the SNC library has been installedvoid
setSncQop
(int qop) SNC Quality of Protection. 1: Authentication only, 2: Authentication and integrity protection, 3: Authentication, integrity and privacy protection (encryption), 8: Global default configuration, 9: Maximum protectionvoid
setSncSSO2
(String sncSSO2) Use SAP Cookie Version 2 as logon ticket for SSO based authenticationvoid
setSystemnr
(String string) SAP system nrvoid
setTraceLevel
(int i) Trace level (effective only when logging level is debug). 0=none, 10= maximumvoid
setUnicode
(boolean b) If settrue
the SAP system is interpreted as Unicode SAP system, otherwise as non-Unicode (only applies to SapListeners, not to SapSenders)void
Userid used in the connectiontoString()
Methods inherited from class org.frankframework.util.SapSystemListItem
clear, configure, getAliasFor, getItem, getName, getRegisteredNames, getRegisteredNamesAsList, registerItem, setAliasFor, setName
-
Constructor Details
-
SapSystemImpl
public SapSystemImpl()
-
-
Method Details
-
getSystem
Retrieve a SapSystem from the list of systems. -
configureAll
public static void configureAll() -
openSystem
- Throws:
SapException
-
closeSystem
public void closeSystem() -
openSystems
- Throws:
SapException
-
closeSystems
public static void closeSystems() -
clearCache
public void clearCache() -
getDestination
public com.sap.conn.jco.JCoDestination getDestination() throws com.sap.conn.jco.JCoException- Throws:
com.sap.conn.jco.JCoException
-
getDestinationAsString
- Specified by:
getDestinationAsString
in interfaceISapSystem
-
getJcoRepository
public com.sap.conn.jco.JCoRepository getJcoRepository() throws com.sap.conn.jco.JCoException- Throws:
com.sap.conn.jco.JCoException
-
getIDocRepository
public com.sap.conn.idoc.IDocRepository getIDocRepository() throws com.sap.conn.jco.JCoException- Throws:
com.sap.conn.jco.JCoException
-
getLogPrefix
-
toString
- Overrides:
toString
in classSapSystemListItem
-
setHost
Default value for ashost, gwhost and mshost (i.e. when ashost, gwhost and mshost are all the same, only host needs to be specified)- Specified by:
setHost
in interfaceISapSystem
-
setAshost
SAP application server- Specified by:
setAshost
in interfaceISapSystem
-
getAshost
-
setSystemnr
SAP system nr- Specified by:
setSystemnr
in interfaceISapSystem
- Default value
- 00
-
setGroup
Group of SAP application servers, when specified logon group will be used and r3name and mshost need to be specified instead of ashost- Specified by:
setGroup
in interfaceISapSystem
-
setR3name
System ID of the SAP system- Specified by:
setR3name
in interfaceISapSystem
-
setMshost
SAP message server- Specified by:
setMshost
in interfaceISapSystem
-
getMshost
-
getMsserv
String value of sum of msservOffset and systemnr. -
setMsservOffset
public void setMsservOffset(int i) Number added to systemNr to find corresponding message server port- Specified by:
setMsservOffset
in interfaceISapSystem
- Default value
- 3600
-
setGwhost
Gateway host- Specified by:
setGwhost
in interfaceISapSystem
-
getGwhost
-
getGwserv
String value of sum of gwservOffset and systemnr. -
setGwservOffset
public void setGwservOffset(int i) Number added to systemNr to find corresponding gateway port- Specified by:
setGwservOffset
in interfaceISapSystem
- Default value
- 3300
-
setMandant
Mandant i.e. 'destination'- Specified by:
setMandant
in interfaceISapSystem
- Default value
- 100
-
setAuthAlias
Alias to obtain userid and password- Specified by:
setAuthAlias
in interfaceISapSystem
-
setUserid
Userid used in the connection- Specified by:
setUserid
in interfaceISapSystem
-
setPasswd
Passwd used in the connection- Specified by:
setPasswd
in interfaceISapSystem
-
setLanguage
Language indicator- Specified by:
setLanguage
in interfaceISapSystem
- Default value
- NL
-
setUnicode
public void setUnicode(boolean b) If settrue
the SAP system is interpreted as Unicode SAP system, otherwise as non-Unicode (only applies to SapListeners, not to SapSenders)- Specified by:
setUnicode
in interfaceISapSystem
- Default value
- false
-
setMaxConnections
public void setMaxConnections(int i) Maximum number of connections that may connect simultaneously to the SAP system- Specified by:
setMaxConnections
in interfaceISapSystem
- Default value
- 10
-
setTraceLevel
public void setTraceLevel(int i) Trace level (effective only when logging level is debug). 0=none, 10= maximum- Specified by:
setTraceLevel
in interfaceISapSystem
- Default value
- 0
-
setSncEnabled
public void setSncEnabled(boolean sncEnabled) Enable or disable SNC- Specified by:
setSncEnabled
in interfaceISapSystem
- Default value
- false
-
setSncLibrary
Path where the SNC library has been installed- Specified by:
setSncLibrary
in interfaceISapSystem
-
setSncQop
SNC Quality of Protection. 1: Authentication only, 2: Authentication and integrity protection, 3: Authentication, integrity and privacy protection (encryption), 8: Global default configuration, 9: Maximum protection- Specified by:
setSncQop
in interfaceISapSystem
- Throws:
ConfigurationException
- Default value
- 8
-
setMyName
Own SNC name of the caller. For example: p:CN=MyUserID, O=ACompany, C=EN- Specified by:
setMyName
in interfaceISapSystem
-
setPartnerName
SNC name of the communication partner server. For example: p:CN=SID, O=ACompany, C=EN- Specified by:
setPartnerName
in interfaceISapSystem
-
setSncAuthMethod
When using SNC, this specifies if SNC should authenticate via SSO or a username/password combination. 1=SSO, 0=username/password- Specified by:
setSncAuthMethod
in interfaceISapSystem
- Default value
- 0
-
setSncSSO2
Use SAP Cookie Version 2 as logon ticket for SSO based authentication- Specified by:
setSncSSO2
in interfaceISapSystem
- Default value
- 1
-
setServiceOffset
@Deprecated(forRemoval=true, since="7.8.0") @ConfigurationWarning("setServiceOffset not used in JCo3") public void setServiceOffset(int i) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setServiceOffset
in interfaceISapSystem
-