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 TypeMethodDescriptionvoidvoidstatic voidstatic voidcom.sap.conn.jco.JCoDestinationString value of sum of gwservOffset and systemnr.com.sap.conn.idoc.IDocRepositorycom.sap.conn.jco.JCoRepositoryString value of sum of msservOffset and systemnr.static SapSystemImplRetrieve a SapSystem from the list of systems.voidstatic voidvoidSAP application servervoidsetAuthAlias(String string) Alias to obtain userid and passwordvoidGroup of SAP application servers, when specified logon group will be used and r3name and mshost need to be specified instead of ashostvoidGateway hostvoidsetGwservOffset(int i) Number added to systemNr to find corresponding gateway portvoidDefault value for ashost, gwhost and mshost (i.e. when ashost, gwhost and mshost are all the same, only host needs to be specified)voidsetLanguage(String string) Language indicatorvoidsetMandant(String string) Mandant i.e.voidsetMaxConnections(int i) Maximum number of connections that may connect simultaneously to the SAP systemvoidSAP message servervoidsetMsservOffset(int i) Number added to systemNr to find corresponding message server portvoidOwn SNC name of the caller.voidsetPartnerName(String partnerName) SNC name of the communication partner server.voidPasswd used in the connectionvoidSystem ID of the SAP systemvoidsetServiceOffset(int i) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSncAuthMethod(String sncAuthMethod) When using SNC, this specifies if SNC should authenticate via SSO or a username/password combination. 1=SSO, 0=username/passwordvoidsetSncEnabled(boolean sncEnabled) Enable or disable SNCvoidsetSncLibrary(String sncLibPath) Path where the SNC library has been installedvoidsetSncQop(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 protectionvoidsetSncSSO2(String sncSSO2) Use SAP Cookie Version 2 as logon ticket for SSO based authenticationvoidsetSystemnr(String string) SAP system nrvoidsetTraceLevel(int i) Trace level (effective only when logging level is debug). 0=none, 10= maximumvoidsetUnicode(boolean b) If settruethe SAP system is interpreted as Unicode SAP system, otherwise as non-Unicode (only applies to SapListeners, not to SapSenders)voidUserid 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:
getDestinationAsStringin 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:
toStringin 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:
setHostin interfaceISapSystem
-
setAshost
SAP application server- Specified by:
setAshostin interfaceISapSystem
-
getAshost
-
setSystemnr
SAP system nr- Specified by:
setSystemnrin 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:
setGroupin interfaceISapSystem
-
setR3name
System ID of the SAP system- Specified by:
setR3namein interfaceISapSystem
-
setMshost
SAP message server- Specified by:
setMshostin 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:
setMsservOffsetin interfaceISapSystem- Default value
- 3600
-
setGwhost
Gateway host- Specified by:
setGwhostin 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:
setGwservOffsetin interfaceISapSystem- Default value
- 3300
-
setMandant
Mandant i.e. 'destination'- Specified by:
setMandantin interfaceISapSystem- Default value
- 100
-
setAuthAlias
Alias to obtain userid and password- Specified by:
setAuthAliasin interfaceISapSystem
-
setUserid
Userid used in the connection- Specified by:
setUseridin interfaceISapSystem
-
setPasswd
Passwd used in the connection- Specified by:
setPasswdin interfaceISapSystem
-
setLanguage
Language indicator- Specified by:
setLanguagein interfaceISapSystem- Default value
- NL
-
setUnicode
public void setUnicode(boolean b) If settruethe SAP system is interpreted as Unicode SAP system, otherwise as non-Unicode (only applies to SapListeners, not to SapSenders)- Specified by:
setUnicodein interfaceISapSystem- Default value
- false
-
setMaxConnections
public void setMaxConnections(int i) Maximum number of connections that may connect simultaneously to the SAP system- Specified by:
setMaxConnectionsin 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:
setTraceLevelin interfaceISapSystem- Default value
- 0
-
setSncEnabled
public void setSncEnabled(boolean sncEnabled) Enable or disable SNC- Specified by:
setSncEnabledin interfaceISapSystem- Default value
- false
-
setSncLibrary
Path where the SNC library has been installed- Specified by:
setSncLibraryin 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:
setSncQopin interfaceISapSystem- Throws:
ConfigurationException- Default value
- 8
-
setMyName
Own SNC name of the caller. For example: p:CN=MyUserID, O=ACompany, C=EN- Specified by:
setMyNamein interfaceISapSystem
-
setPartnerName
SNC name of the communication partner server. For example: p:CN=SID, O=ACompany, C=EN- Specified by:
setPartnerNamein 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:
setSncAuthMethodin interfaceISapSystem- Default value
- 0
-
setSncSSO2
Use SAP Cookie Version 2 as logon ticket for SSO based authentication- Specified by:
setSncSSO2in 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:
setServiceOffsetin interfaceISapSystem
-