package com.vci.corba.message; /** * Generated from IDL interface "MessageService". * * @author JacORB IDL compiler V 3.9 * @version generated at 2022-12-23 15:42:24 */ public abstract class MessageServicePOA extends org.omg.PortableServer.Servant implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.message.MessageServiceOperations { static private final java.util.HashMap m_opsHash = new java.util.HashMap(); static { m_opsHash.put ( "sendMessageTo", Integer.valueOf(0)); m_opsHash.put ( "checkMessage", Integer.valueOf(1)); m_opsHash.put ( "createMessage", Integer.valueOf(2)); m_opsHash.put ( "getMessagesByPage", Integer.valueOf(3)); m_opsHash.put ( "getMessages", Integer.valueOf(4)); m_opsHash.put ( "getMessage", Integer.valueOf(5)); m_opsHash.put ( "regBusinessObjectMessage", Integer.valueOf(6)); m_opsHash.put ( "setMessageReaded", Integer.valueOf(7)); m_opsHash.put ( "getMessagesByIds", Integer.valueOf(8)); m_opsHash.put ( "subscribeMessage", Integer.valueOf(9)); m_opsHash.put ( "createAndSendMessage", Integer.valueOf(10)); m_opsHash.put ( "setMessageCompleted", Integer.valueOf(11)); } private String[] ids = {"IDL:com/vci/corba/message/MessageService:1.0"}; public com.vci.corba.message.MessageService _this() { org.omg.CORBA.Object __o = _this_object() ; com.vci.corba.message.MessageService __r = com.vci.corba.message.MessageServiceHelper.narrow(__o); return __r; } public com.vci.corba.message.MessageService _this(org.omg.CORBA.ORB orb) { org.omg.CORBA.Object __o = _this_object(orb) ; com.vci.corba.message.MessageService __r = com.vci.corba.message.MessageServiceHelper.narrow(__o); return __r; } public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) throws org.omg.CORBA.SystemException { org.omg.CORBA.portable.OutputStream _out = null; // do something // quick lookup of operation java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); if ( null == opsIndex ) throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); switch ( opsIndex.intValue() ) { case 0: // sendMessageTo { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String[] _arg1=com.vci.corba.common.data.WStringArrayHelper.read(_input); _out = handler.createReply(); _out.write_boolean(sendMessageTo(_arg0,_arg1)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 1: // checkMessage { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); _out.write_long(checkMessage(_arg0)); break; } case 2: // createMessage { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); com.vci.corba.message.data.RefObject[] _arg2=com.vci.corba.message.data.RefObjectListHelper.read(_input); _out = handler.createReply(); java.lang.String tmpResult1107 = createMessage(_arg0,_arg1,_arg2); _out.write_wstring( tmpResult1107 ); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 3: // getMessagesByPage { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); int _arg2=_input.read_long(); int _arg3=_input.read_long(); _out = handler.createReply(); com.vci.corba.message.data.PLMessageListHelper.write(_out,getMessagesByPage(_arg0,_arg1,_arg2,_arg3)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 4: // getMessages { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.message.data.PLMessageListHelper.write(_out,getMessages(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 5: // getMessage { try { java.lang.String _arg0=_input.read_wstring(); _out = handler.createReply(); com.vci.corba.message.data.PLMessageHelper.write(_out,getMessage(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 6: // regBusinessObjectMessage { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); _out = handler.createReply(); _out.write_long(regBusinessObjectMessage(_arg0,_arg1)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 7: // setMessageReaded { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(setMessageReaded(_arg0,_arg1)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 8: // getMessagesByIds { try { java.lang.String[] _arg0=com.vci.corba.common.data.WStringArrayHelper.read(_input); _out = handler.createReply(); com.vci.corba.message.data.PLMessageListHelper.write(_out,getMessagesByIds(_arg0)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 9: // subscribeMessage { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); java.lang.String _arg2=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(subscribeMessage(_arg0,_arg1,_arg2)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 10: // createAndSendMessage { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); com.vci.corba.message.data.RefObject[] _arg2=com.vci.corba.message.data.RefObjectListHelper.read(_input); java.lang.String[] _arg3=com.vci.corba.common.data.WStringArrayHelper.read(_input); _out = handler.createReply(); _out.write_boolean(createAndSendMessage(_arg0,_arg1,_arg2,_arg3)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } case 11: // setMessageCompleted { try { java.lang.String _arg0=_input.read_wstring(); java.lang.String _arg1=_input.read_wstring(); _out = handler.createReply(); _out.write_boolean(setMessageCompleted(_arg0,_arg1)); } catch(com.vci.corba.common.VCIError _ex0) { _out = handler.createExceptionReply(); com.vci.corba.common.VCIErrorHelper.write(_out, _ex0); } break; } } return _out; } public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) { return ids; } }