cngpeventadapter.java
来自「华为java接口反编译结果!其中包含其所有接口实现过程」· Java 代码 · 共 62 行
JAVA
62 行
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: CNGPSMProxy.java
package com.huawei.smproxy;
import com.huawei.insa2.comm.*;
import com.huawei.insa2.comm.cngp.CNGPConnection;
import com.huawei.insa2.comm.cngp.CNGPTransaction;
import com.huawei.insa2.comm.cngp.message.*;
// Referenced classes of package com.huawei.smproxy:
// CNGPSMProxy
class CNGPEventAdapter extends PEventAdapter
{
private CNGPSMProxy smProxy;
private CNGPConnection conn;
public CNGPEventAdapter(CNGPSMProxy smProxy)
{
this.smProxy = null;
conn = null;
this.smProxy = smProxy;
conn = smProxy.getConn();
}
public void childCreated(PLayer child)
{
CNGPTransaction t = (CNGPTransaction)child;
CNGPMessage msg = t.getResponse();
CNGPMessage resmsg = null;
if(msg.getRequestId() == 6)
{
resmsg = new CNGPExitRespMessage();
smProxy.onTerminate();
} else
if(msg.getRequestId() == 3)
{
CNGPDeliverMessage tmpmes = (CNGPDeliverMessage)msg;
resmsg = smProxy.onDeliver(tmpmes);
} else
{
t.close();
}
if(resmsg != null)
{
try
{
t.send(resmsg);
}
catch(PException e)
{
e.printStackTrace();
}
t.close();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?