ControlAgentClientMethodsPOA.java
2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.service;
import com.adobe.service.ControlAgentClientMethods;
import com.adobe.service.ControlAgentClientMethodsHelper;
import com.adobe.service.ControlAgentClientMethodsOperations;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.ORB;
import org.omg.CORBA.SystemException;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.InvokeHandler;
import org.omg.CORBA.portable.OutputStream;
import org.omg.CORBA.portable.ResponseHandler;
import org.omg.PortableServer.POA;
import org.omg.PortableServer.Servant;
import java.util.Hashtable;
public abstract class ControlAgentClientMethodsPOA
extends Servant
implements InvokeHandler,
ControlAgentClientMethodsOperations {
private static final Hashtable m_opsHash = new Hashtable();
private String[] ids = new String[]{"IDL:com/adobe/service/ControlAgentClientMethods:1.0"};
public ControlAgentClientMethods _this() {
return ControlAgentClientMethodsHelper.narrow(this._this_object());
}
public ControlAgentClientMethods _this(ORB orb) {
return ControlAgentClientMethodsHelper.narrow(this._this_object(orb));
}
public OutputStream _invoke(String method, InputStream _input, ResponseHandler handler) throws SystemException {
OutputStream _out = null;
Integer opsIndex = (Integer)m_opsHash.get(method);
if (null == opsIndex) {
throw new BAD_OPERATION(method + " not found");
}
switch (opsIndex) {
case 0: {
boolean _arg0 = _input.read_boolean();
_out = handler.createReply();
this.done(_arg0);
break;
}
case 1: {
_out = handler.createReply();
_out.write_boolean(this.prepare());
break;
}
case 2: {
_out = handler.createReply();
_out.write_Object(this.newRequestHandler());
}
}
return _out;
}
public String[] _all_interfaces(POA poa, byte[] obj_id) {
return this.ids;
}
static {
m_opsHash.put("done", new Integer(0));
m_opsHash.put("prepare", new Integer(1));
m_opsHash.put("newRequestHandler", new Integer(2));
}
}