DataManagerPOA.java
6.43 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.service;
import com.adobe.service.*;
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 DataManagerPOA
extends Servant
implements InvokeHandler,
DataManagerOperations {
private static final Hashtable m_opsHash = new Hashtable();
private String[] ids = new String[]{"IDL:com/adobe/service/DataManager:1.0"};
public DataManager _this() {
return DataManagerHelper.narrow(this._this_object());
}
public DataManager _this(ORB orb) {
return DataManagerHelper.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: {
_out = handler.createReply();
_out.write_long(this.getTransactionMaxInlineSize());
break;
}
case 1: {
String _arg0 = _input.read_wstring();
byte[] _arg1 = BufDataHelper.read(_input);
_out = handler.createReply();
this.setTransactionPropertyBytes(_arg0, _arg1);
break;
}
case 2: {
String _arg0 = _input.read_wstring();
String _arg1 = _input.read_wstring();
_out = handler.createReply();
this.setTransactionPropertyString(_arg0, _arg1);
break;
}
case 3: {
String _arg0 = _input.read_wstring();
_out = handler.createReply();
_out.write_long(this.getTransactionPropertyLong(_arg0));
break;
}
case 4: {
try {
String _arg0 = _input.read_wstring();
_out = handler.createReply();
FileDataBufferHelper.write(_out, this.createFileDataBuffer(_arg0));
}
catch (InvalidSourceException _ex0) {
_out = handler.createExceptionReply();
InvalidSourceExceptionHelper.write(_out, _ex0);
}
break;
}
case 5: {
byte[] _arg0 = BufDataHelper.read(_input);
_out = handler.createReply();
this.setInvocationContext(_arg0);
break;
}
case 6: {
String _arg0 = _input.read_wstring();
_out = handler.createReply();
_out.write_wstring(this.getTransactionPropertyString(_arg0));
break;
}
case 7: {
boolean _arg0 = _input.read_boolean();
_out = handler.createReply();
_out.write_wstring(this.getTempFileName(_arg0));
break;
}
case 8: {
String _arg0 = _input.read_wstring();
_out = handler.createReply();
BufDataHelper.write(_out, this.getTransactionPropertyBytes(_arg0));
break;
}
case 9: {
int _arg0 = _input.read_long();
_out = handler.createReply();
this.setTransactionMaxInlineSize(_arg0);
break;
}
case 10: {
try {
String _arg0 = _input.read_wstring();
_out = handler.createReply();
FileDataBufferHelper.write(_out, this.createFileDataBufferFromUrl(_arg0));
}
catch (InvalidSourceException _ex0) {
_out = handler.createExceptionReply();
InvalidSourceExceptionHelper.write(_out, _ex0);
}
break;
}
case 11: {
String _arg0 = _input.read_wstring();
int _arg1 = _input.read_long();
_out = handler.createReply();
this.setTransactionPropertyLong(_arg0, _arg1);
break;
}
case 12: {
_out = handler.createReply();
BufDataHelper.write(_out, this.getInvocationContext());
break;
}
case 13: {
try {
String _arg0 = _input.read_wstring();
_out = handler.createReply();
this.manageTempFile(_arg0);
}
catch (InvalidSourceException _ex0) {
_out = handler.createExceptionReply();
InvalidSourceExceptionHelper.write(_out, _ex0);
}
break;
}
case 14: {
_out = handler.createReply();
_out.write_long(this.getDefaultMaxInlineSize());
}
}
return _out;
}
public String[] _all_interfaces(POA poa, byte[] obj_id) {
return this.ids;
}
static {
m_opsHash.put("getTransactionMaxInlineSize", new Integer(0));
m_opsHash.put("setTransactionPropertyBytes", new Integer(1));
m_opsHash.put("setTransactionPropertyString", new Integer(2));
m_opsHash.put("getTransactionPropertyLong", new Integer(3));
m_opsHash.put("createFileDataBuffer", new Integer(4));
m_opsHash.put("setInvocationContext", new Integer(5));
m_opsHash.put("getTransactionPropertyString", new Integer(6));
m_opsHash.put("getTempFileName", new Integer(7));
m_opsHash.put("getTransactionPropertyBytes", new Integer(8));
m_opsHash.put("setTransactionMaxInlineSize", new Integer(9));
m_opsHash.put("createFileDataBufferFromUrl", new Integer(10));
m_opsHash.put("setTransactionPropertyLong", new Integer(11));
m_opsHash.put("getInvocationContext", new Integer(12));
m_opsHash.put("manageTempFile", new Integer(13));
m_opsHash.put("getDefaultMaxInlineSize", new Integer(14));
}
}