01: // @@
02: // @@
03: /*
04: * Wi.Ser Framework
05: *
06: * Version: 1.8.1, 20-September-2007
07: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
08: *
09: * This library is free software; you can redistribute it and/or
10: * modify it under the terms of the GNU Lesser General Public
11: * License as published by the Free Software Foundation; either
12: * version 2 of the License, or (at your option) any later version.
13: *
14: * This library is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17: * Lesser General Public License for more details.
18: *
19: * You should have received a copy of the GNU Lesser General Public
20: * License along with this library located in LGPL.txt in the
21: * license directory; if not, write to the
22: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23: * Boston, MA 02111-1307, USA.
24: *
25: * If this agreement does not cover your requirements, please contact us
26: * via email to get detailed information about the commercial license
27: * or our service offerings!
28: *
29: */
30: // @@
31: package de.ug2t.channel.ho.session;
32:
33: import de.ug2t.kernel.*;
34: import de.ug2t.xmlScript.*;
35:
36: // XML_RPC-Server
37: // Arbeitet im Prinzip wie PcScheduler, ordnet einen Worker allerdings
38: // immer genau einer Connection zu !!
39: // XML_RPC-Client
40: // Arbeitet im Prinzip wie PcScheduler, mit genau einem Worker !!
41: // XML_RPC-Dispatcher liest und verarbeitet den String innerhalb des Workers !!
42: public class HoXmlRpcDispatcher extends KeRegisteredObject {
43: static String pem_stdProcName = "Jmc_RMC";
44: private ScXmlScript pem_script = new ScXmlScript();
45:
46: public HoXmlRpcDispatcher() {
47: super (false);
48: };
49:
50: // Die hier vom Script angelegten globalen Objekte leben ewiglich,
51: // es sei denn sie werden in eine Löschkaskade eingefügt!
52: // Hier findet die Verarbeitung statt
53: public Object pcmf_execObj(Object xObj) {
54: Object l_ret = null;
55:
56: try {
57: this .pem_script.pcmf_parseString(xObj.toString());
58: this .pem_script
59: .pcmf_execProc(HoXmlRpcDispatcher.pem_stdProcName);
60: } catch (Exception e) {
61: KeLog.pcmf_logException("ug2t", this, e);
62: }
63: ;
64: return (l_ret);
65: };
66: }
|