Class SapSystemImpl

java.lang.Object
org.frankframework.util.SapSystemListItem
org.frankframework.extensions.sap.jco3.SapSystemImpl
All Implemented Interfaces:
ISapSystem, HasName, NameAware, ISapSystem
Direct Known Subclasses:
SapSystem, SapSystem

public abstract class SapSystemImpl extends SapSystemListItem implements 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
  • Constructor Details

    • SapSystemImpl

      public SapSystemImpl()
  • Method Details

    • getSystem

      public static SapSystemImpl getSystem(String name)
      Retrieve a SapSystem from the list of systems.
    • configureAll

      public static void configureAll()
    • openSystem

      public void openSystem() throws SapException
      Throws:
      SapException
    • closeSystem

      public void closeSystem()
    • openSystems

      public static void openSystems() throws SapException
      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

      public String getDestinationAsString()
      Specified by:
      getDestinationAsString in interface ISapSystem
    • 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

      public String getLogPrefix()
    • toString

      public String toString()
      Overrides:
      toString in class SapSystemListItem
    • setHost

      public void setHost(String host)
      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 interface ISapSystem
    • setAshost

      public void setAshost(String ashost)
      SAP application server
      Specified by:
      setAshost in interface ISapSystem
    • getAshost

      public String getAshost()
    • setSystemnr

      public void setSystemnr(String string)
      SAP system nr
      Specified by:
      setSystemnr in interface ISapSystem
      Default value
      00
    • setGroup

      public void setGroup(String group)
      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 interface ISapSystem
    • setR3name

      public void setR3name(String r3name)
      System ID of the SAP system
      Specified by:
      setR3name in interface ISapSystem
    • setMshost

      public void setMshost(String mshost)
      SAP message server
      Specified by:
      setMshost in interface ISapSystem
    • getMshost

      public String getMshost()
    • getMsserv

      public String 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 interface ISapSystem
      Default value
      3600
    • setGwhost

      public void setGwhost(String string)
      Gateway host
      Specified by:
      setGwhost in interface ISapSystem
    • getGwhost

      public String getGwhost()
    • getGwserv

      public String 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 interface ISapSystem
      Default value
      3300
    • setMandant

      public void setMandant(String string)
      Mandant i.e. 'destination'
      Specified by:
      setMandant in interface ISapSystem
      Default value
      100
    • setAuthAlias

      public void setAuthAlias(String string)
      Alias to obtain userid and password
      Specified by:
      setAuthAlias in interface ISapSystem
    • setUserid

      public void setUserid(String string)
      Userid used in the connection
      Specified by:
      setUserid in interface ISapSystem
    • setPasswd

      public void setPasswd(String string)
      Passwd used in the connection
      Specified by:
      setPasswd in interface ISapSystem
    • setLanguage

      public void setLanguage(String string)
      Language indicator
      Specified by:
      setLanguage in interface ISapSystem
      Default value
      NL
    • setUnicode

      public void setUnicode(boolean b)
      If set true the SAP system is interpreted as Unicode SAP system, otherwise as non-Unicode (only applies to SapListeners, not to SapSenders)
      Specified by:
      setUnicode in interface ISapSystem
      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 interface ISapSystem
      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 interface ISapSystem
      Default value
      0
    • setSncEnabled

      public void setSncEnabled(boolean sncEnabled)
      Enable or disable SNC
      Specified by:
      setSncEnabled in interface ISapSystem
      Default value
      false
    • setSncLibrary

      public void setSncLibrary(String sncLibPath)
      Path where the SNC library has been installed
      Specified by:
      setSncLibrary in interface ISapSystem
    • setSncQop

      public void setSncQop(int qop) throws ConfigurationException
      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 interface ISapSystem
      Throws:
      ConfigurationException
      Default value
      8
    • setMyName

      public void setMyName(String myName)
      Own SNC name of the caller. For example: p:CN=MyUserID, O=ACompany, C=EN
      Specified by:
      setMyName in interface ISapSystem
    • setPartnerName

      public void setPartnerName(String partnerName)
      SNC name of the communication partner server. For example: p:CN=SID, O=ACompany, C=EN
      Specified by:
      setPartnerName in interface ISapSystem
    • setSncAuthMethod

      public void setSncAuthMethod(String sncAuthMethod)
      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 interface ISapSystem
      Default value
      0
    • setSncSSO2

      public void setSncSSO2(String sncSSO2)
      Use SAP Cookie Version 2 as logon ticket for SSO based authentication
      Specified by:
      setSncSSO2 in interface ISapSystem
      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 interface ISapSystem