📄 middlewarerfc$client.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: MiddlewareRFC.java
package com.sap.mw.jco.rfc;
import com.sap.mw.jco.IMiddleware;
import com.sap.mw.jco.JCO;
import java.util.*;
// Referenced classes of package com.sap.mw.jco.rfc:
// MiddlewareRFC
public static final class MiddlewareRFC$Client
implements com.sap.mw.jco.IMiddleware$IClient
{
private native void nativeConnect(com.sap.mw.jco.JCO$Client jco$client, String s);
private native void nativeReset(com.sap.mw.jco.JCO$Client jco$client);
private native void nativeConfirmTID(com.sap.mw.jco.JCO$Client jco$client, String s);
private native String nativeCreateTID(com.sap.mw.jco.JCO$Client jco$client);
private native void nativeExecute(com.sap.mw.jco.JCO$Client jco$client, String s, com.sap.mw.jco.JCO$ParameterList jco$parameterlist, com.sap.mw.jco.JCO$ParameterList jco$parameterlist1, com.sap.mw.jco.JCO$ParameterList jco$parameterlist2, com.sap.mw.jco.JCO$ParameterList jco$parameterlist3, String s1,
String s2, int i);
public String[][] getPropertyInfo()
{
return pinfo;
}
public void initialize(com.sap.mw.jco.JCO$Client client, Properties params)
{
Properties props = (Properties)params.clone();
StringBuffer conn_params = new StringBuffer();
String value = parent.getTrimmedProperty("jco.client.user", props);
if(value != null && value.equalsIgnoreCase("$MYSAPSSO2$"))
{
parent.removeProperty("jco.client.user", props);
value = parent.getTrimmedProperty("jco.client.passwd", props);
if(value != null)
{
parent.removeProperty("jco.client.passwd", props);
parent.removeProperty("jco.client.mysapsso2", props);
props.put("jco.client.mysapsso2", value);
}
} else
if(value != null && value.equalsIgnoreCase("$X509CERT$"))
{
parent.removeProperty("jco.client.user", props);
value = parent.getTrimmedProperty("jco.client.passwd", props);
if(value != null)
{
parent.removeProperty("jco.client.passwd", props);
parent.removeProperty("jco.client.x509cert", props);
props.put("jco.client.x509cert", value);
}
}
value = parent.getBinaryProperty("jco.client.snc_mode", props);
if(value != null && parent.toBoolean(value) && parent.getProperty("jco.client.snc_lib", props) == null)
{
String path = parent.getProperty("jco.middleware.snc_lib");
if(path != null)
props.put("jco.client.snc_lib", path);
}
value = parent.getBinaryProperty("jco.client.toupper", props);
if(value == null)
props.put("jco.client.toupper", "0");
for(int i = 0; i < pinfo_binary_properties; i++)
{
String name = pinfo[i][0];
if(name.equals("jco.client.user"))
{
value = parent.getRightTrimmedProperty(name, props);
if(value != null)
{
int strlen = value.length();
StringBuffer strBuf = new StringBuffer(strlen);
for(int c = 0; c < strlen; c++)
strBuf.append(Character.toUpperCase(value.charAt(c)));
value = strBuf.toString();
}
} else
if(name.equals("jco.client.passwd"))
value = parent.getRightTrimmedProperty(name, props);
else
value = parent.getTrimmedProperty(name, props);
if(value != null)
{
value = parent.quote(value);
conn_params.append(name.substring(name.lastIndexOf('.') + 1).toUpperCase(Locale.ENGLISH));
conn_params.append('=');
conn_params.append(value);
conn_params.append(' ');
}
}
for(int i = pinfo_binary_properties; i < pinfo.length; i++)
{
String name = pinfo[i][0];
value = parent.getBinaryProperty(name, props);
if(value != null)
{
value = parent.quote(value);
conn_params.append(name.substring(name.lastIndexOf('.') + 1).toUpperCase(Locale.ENGLISH));
conn_params.append('=');
conn_params.append(value);
conn_params.append(' ');
}
}
conn_params.setLength(conn_params.length() - 1);
parent.setConnParams(client, conn_params.toString());
}
public void connect(com.sap.mw.jco.ent client, String params)
{
nativeConnect(client, params);
}
public void disconnect(com.sap.mw.jco.JCO$Client client)
{
parent.nativeDisconnect(client);
}
public void abort(com.sap.mw.jco.JCO$Client client, String message)
{
parent.nativeAbort(client, message);
}
public void reset(com.sap.mw.jco.JCO$Client client)
{
if(client.ug() || client.getSapGui() > 0)
client.();
else
nativeReset(client);
}
public boolean isAlive(com.sap.mw.jco.JCO$Client client)
{
return parent.nativeIsAlive(client);
}
public void getAttributes(com.sap.mw.jco.JCO$Client client)
{
parent.nativeGetAttributes(client);
}
public void execute(com.sap.mw.jco.JCO$Client client, String name, com.sap.mw.jco.JCO$ParameterList imp, com.sap.mw.jco.JCO$ParameterList imptab, com.sap.mw.jco.ent exp, com.sap.mw.jco.JCO$ParameterList exptab, String tid,
String qname, int qcount)
{
nativeExecute(client, name, imp, imptab, exp, exptab, tid, qname, qcount);
}
public void confirmTID(com.sap.mw.jco.JCO$Client client, String tid)
{
nativeConfirmTID(client, tid);
}
public String createTID(com.sap.mw.jco.ent client)
{
return nativeCreateTID(client);
}
private MiddlewareRFC parent;
private static final String JCO_CLIENT = "jco.client.client";
private static final String JCO_USER = "jco.client.user";
private static final String JCO_ALIAS_USER = "jco.client.alias_user";
private static final String JCO_PASSWD = "jco.client.passwd";
private static final String JCO_LANG = "jco.client.lang";
private static final String JCO_SYSNR = "jco.client.sysnr";
private static final String JCO_ASHOST = "jco.client.ashost";
private static final String JCO_MSHOST = "jco.client.mshost";
private static final String JCO_GWHOST = "jco.client.gwhost";
private static final String JCO_GWSERV = "jco.client.gwserv";
private static final String JCO_R3NAME = "jco.client.r3name";
private static final String JCO_GROUP = "jco.client.group";
private static final String JCO_TPHOST = "jco.client.tphost";
private static final String JCO_TPNAME = "jco.client.tpname";
private static final String JCO_TYPE = "jco.client.type";
private static final String JCO_TRACE = "jco.client.trace";
private static final String JCO_CODEPAGE = "jco.client.codepage";
private static final String JCO_ABAP_DEBUG = "jco.client.abap_debug";
private static final String JCO_MYSAPSSO2 = "jco.client.mysapsso2";
private static final String JCO_GETSSO2 = "jco.client.getsso2";
private static final String JCO_X509CERT = "jco.client.x509cert";
private static final String JCO_EXTIDDATA = "jco.client.extiddata";
private static final String JCO_EXTIDTYPE = "jco.client.extidtype";
private static final String JCO_LCHECK = "jco.client.lcheck";
private static final String JCO_GRT_DATA = "jco.client.grt_data";
private static final String JCO_USE_SAPGUI = "jco.client.use_sapgui";
private static final String JCO_GUISERV = "jco.client.use_guiserv";
private static final String JCO_GUIHOST = "jco.client.use_guihost";
private static final String JCO_GUIPROGID = "jco.client.use_guiprogid";
private static final String JCO_SNC_PARTNERNAME = "jco.client.snc_partnername";
private static final String JCO_SNC_QOP = "jco.client.snc_qop";
private static final String JCO_SNC_MYNAME = "jco.client.snc_myname";
private static final String JCO_SNC_MODE = "jco.client.snc_mode";
private static final String JCO_SNC_LIBRARY = "jco.client.snc_lib";
private static final String JCO_DEST = "jco.client.dest";
private static final String JCO_SAPLOGON_ID = "jco.client.saplogon_id";
private static final String JCO_MSSERV = "jco.client.msserv";
private static final String JCO_ICCE = "jco.client.icce";
private static final String JCO_PROFILE_NAME = "jco.client.profile_name";
private static final String JCO_IDLE_TIMEOUT = "jco.client.idle_timeout";
private static final String JCO_TOUPPER = "jco.client.toupper";
private static final String pinfo[][] = {
{
"jco.client.client", "Logon client"
}, {
"jco.client.user", "Logon user"
}, {
"jco.client.alias_user", "Alias user name"
}, {
"jco.client.passwd", "Logon password"
}, {
"jco.client.lang", "Logon language"
}, {
"jco.client.sysnr", "R/3 system number"
}, {
"jco.client.ashost", "R/3 application server"
}, {
"jco.client.mshost", "R/3 message server"
}, {
"jco.client.gwhost", "Gateway host"
}, {
"jco.client.gwserv", "Gateway service"
}, {
"jco.client.r3name", "R/3 name"
}, {
"jco.client.group", "Group of application servers"
}, {
"jco.client.tpname", "Program ID of external server program"
}, {
"jco.client.tphost", "Host of external server program"
}, {
"jco.client.type", "Type of remote host 3 = R/3, E = External"
}, {
"jco.client.codepage", "Initial codepage for logon"
}, {
"jco.client.use_sapgui", "Use remote SAP graphical user interface (0/1/2)"
}, {
"jco.client.mysapsso2", "Use the specified SAP Cookie Version 2 as logon ticket"
}, {
"jco.client.grt_data", "Additional data for GUI"
}, {
"jco.client.use_guihost", "Host to which to redirect the remote GUI"
}, {
"jco.client.use_guiserv", "Service to which to redirect of the remote GUI"
}, {
"jco.client.use_guiprogid", "Progid of the server which starts the remote GUI"
}, {
"jco.client.snc_partnername", "SNC partner name (e.g. \"p:CN=B20, O=SAP-AG, C=DE\")"
}, {
"jco.client.snc_qop", "SNC level of security (1 to 9)"
}, {
"jco.client.snc_myname", "SNC name. Overrides default SNC partner"
}, {
"jco.client.snc_lib", "Path to library"
}, {
"jco.client.dest", "R/2 destination"
}, {
"jco.client.saplogon_id", "String defined for SAPLOGON on 32-bit Windows"
}, {
"jco.client.extiddata", "Data for external authentication (PAS)"
}, {
"jco.client.extidtype", "Type of external authentication (PAS)"
}, {
"jco.client.x509cert", "Use the specified X509-certificate as logon ticket"
}, {
"jco.client.msserv", "R/3 port number of message server"
}, {
"jco.client.profile_name", "Profile name used for shared memory communication"
}, {
"jco.client.idle_timeout", "Idle timeout for the connection"
}, {
"jco.client.icce", "Ignore RFC library character conversion errors (1 or 0)"
}, {
"jco.client.lcheck", "Enable/Disable logon check at open time (1 or 0)"
}, {
"jco.client.trace", "Enable/disable RFC trace (1 or 0)"
}, {
"jco.client.abap_debug", "Enable ABAP debugging (1 or 0)"
}, {
"jco.client.getsso2", "Get/Don't get a SSO ticket after logon (1 or 0)"
}, {
"jco.client.snc_mode", "SNC mode (0 or 1)"
}, {
"jco.client.toupper", "Enable/Disable uppercase character conversions for logon"
}
};
private static int pinfo_binary_properties = 34;
protected MiddlewareRFC$Client(MiddlewareRFC parent)
{
this.parent = parent;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -