📄 jtrfcserv$jtrfcserver.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: JTRfcServ.java
package com.sap.mw.jco.support;
import com.sap.mw.jco.IRepository;
import com.sap.mw.jco.JCO;
import java.io.PrintStream;
import java.util.Date;
import java.util.Properties;
// Referenced classes of package com.sap.mw.jco.support:
// RfcTest, JTRfcServ
protected static class JTRfcServ$JTRfcServer extends com.sap.mw.jco.JCO$Server
{
protected boolean onCheckTID(String tid)
{
tidManager.ate_TID(tid, "CHECKED");
System.out.println("onCheckTID(" + tid + ") returns true");
return true;
}
protected void onConfirmTID(String tid)
{
tidManager.ate_TID(tid, "CONFIRMED");
System.out.println("onConfirmTID(" + tid + ") ");
}
protected void onCommit(String tid)
{
tidManager.ate_TID(tid, "COMMITED");
System.out.println("onCommit(" + tid + ") ");
}
protected void onRollback(String tid)
{
tidManager.ate_TID(tid, "ROLLBACKED");
System.out.println("onRollbac(" + tid + ") ");
}
protected com.sap.mw.jco.JCO$Function getFunction(String function_name)
{
try
{
com.sap.mw.jco.IFunctionTemplate ft = null;
ft = rep.getFunctionTemplate(function_name);
return ft == null ? null : new com.sap.mw.jco.JCO$Function(ft);
}
catch(Exception ex)
{
RfcTest.displayException(ex);
}
return null;
}
protected void handleRequest(com.sap.mw.jco.cServer function)
{
try
{
com.sap.mw.jco.JCO$ParameterList imp = function.ParameterList();
com.sap.mw.jco.cServer exp = function.ParameterList();
com.sap.mw.jco.cServer tab = function.arameterList();
com.sap.mw.jco.JCO$Attributes a = es();
RfcTest.out.println("Start function '" + function.es() + "'");
RfcTest.out.println("Attributes:\n" + a.g());
if(function.g().equals("STFC_CONNECTION"))
{
exp.g(imp.getString("REQUTEXT"), "ECHOTEXT");
exp.setValue("SAP R/3 Rel " + a.ase() + " Sysid: " + a.emID() + " Date: " + (new Date()).toString() + " Logon Data: " + a.nt() + "/" + a.().trim() + "/" + a.uage(), "RESPTEXT");
} else
if(function.getName().equals("STFC_WRITE_TO_TCPIC"))
System.out.println("handle 'STFC_WRITE_TO_TCPIC'");
else
RfcTest.out.println("Function '" + function.getName() + "' not supported.");
}
catch(Exception ex)
{
RfcTest.out.println("Exception in server " + getProgID() + " [handle: " + ectionHandle() + "]");
RfcTest.displayException(ex);
}
}
IRepository rep;
RfcTest$TidManager tidManager;
JTRfcServ$JTRfcServer(Properties serverP, IRepository repository)
{
super(serverP, repository);
rep = repository;
tidManager = new RfcTest$TidManager("trfcserv.tid");
}
JTRfcServ$JTRfcServer(String serverS[], IRepository repository)
{
super(serverS, repository);
rep = repository;
tidManager = new it>("trfcserv.tid");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -