⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serverpoa.java

📁 java开源的企业总线.xmlBlaster
💻 JAVA
字号:
package org.xmlBlaster.protocol.corba.serverIdl;/** *	Generated from IDL interface "Server" *	@author JacORB IDL compiler V 2.1, 16-Feb-2004 */public abstract class ServerPOA	extends org.omg.PortableServer.Servant	implements org.omg.CORBA.portable.InvokeHandler, org.xmlBlaster.protocol.corba.serverIdl.ServerOperations{	static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();	static	{		m_opsHash.put ( "get", new java.lang.Integer(0));		m_opsHash.put ( "publishOneway", new java.lang.Integer(1));		m_opsHash.put ( "ping", new java.lang.Integer(2));		m_opsHash.put ( "publish", new java.lang.Integer(3));		m_opsHash.put ( "publishArr", new java.lang.Integer(4));		m_opsHash.put ( "unSubscribe", new java.lang.Integer(5));		m_opsHash.put ( "erase", new java.lang.Integer(6));		m_opsHash.put ( "subscribe", new java.lang.Integer(7));	}	private String[] ids = {"IDL:org.xmlBlaster.protocol.corba/serverIdl/Server:1.0"};	public org.xmlBlaster.protocol.corba.serverIdl.Server _this()	{		return org.xmlBlaster.protocol.corba.serverIdl.ServerHelper.narrow(_this_object());	}	public org.xmlBlaster.protocol.corba.serverIdl.Server _this(org.omg.CORBA.ORB orb)	{		return org.xmlBlaster.protocol.corba.serverIdl.ServerHelper.narrow(_this_object(orb));	}	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: // get			{			try			{				java.lang.String _arg0=_input.read_string();				java.lang.String _arg1=_input.read_string();				_out = handler.createReply();				org.xmlBlaster.protocol.corba.serverIdl.MessageUnitArrHelper.write(_out,get(_arg0,_arg1));			}			catch(org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException _ex0)			{				_out = handler.createExceptionReply();				org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.write(_out, _ex0);			}				break;			}			case 1: // publishOneway			{				org.xmlBlaster.protocol.corba.serverIdl.MessageUnit[] _arg0=org.xmlBlaster.protocol.corba.serverIdl.MessageUnitArrHelper.read(_input);				_out = handler.createReply();				publishOneway(_arg0);				break;			}			case 2: // ping			{				java.lang.String _arg0=_input.read_string();				_out = handler.createReply();				_out.write_string(ping(_arg0));				break;			}			case 3: // publish			{			try			{				org.xmlBlaster.protocol.corba.serverIdl.MessageUnit _arg0=org.xmlBlaster.protocol.corba.serverIdl.MessageUnitHelper.read(_input);				_out = handler.createReply();				_out.write_string(publish(_arg0));			}			catch(org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException _ex0)			{				_out = handler.createExceptionReply();				org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.write(_out, _ex0);			}				break;			}			case 4: // publishArr			{			try			{				org.xmlBlaster.protocol.corba.serverIdl.MessageUnit[] _arg0=org.xmlBlaster.protocol.corba.serverIdl.MessageUnitArrHelper.read(_input);				_out = handler.createReply();				org.xmlBlaster.protocol.corba.serverIdl.XmlTypeArrHelper.write(_out,publishArr(_arg0));			}			catch(org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException _ex0)			{				_out = handler.createExceptionReply();				org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.write(_out, _ex0);			}				break;			}			case 5: // unSubscribe			{			try			{				java.lang.String _arg0=_input.read_string();				java.lang.String _arg1=_input.read_string();				_out = handler.createReply();				org.xmlBlaster.protocol.corba.serverIdl.XmlTypeArrHelper.write(_out,unSubscribe(_arg0,_arg1));			}			catch(org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException _ex0)			{				_out = handler.createExceptionReply();				org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.write(_out, _ex0);			}				break;			}			case 6: // erase			{			try			{				java.lang.String _arg0=_input.read_string();				java.lang.String _arg1=_input.read_string();				_out = handler.createReply();				org.xmlBlaster.protocol.corba.serverIdl.XmlTypeArrHelper.write(_out,erase(_arg0,_arg1));			}			catch(org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException _ex0)			{				_out = handler.createExceptionReply();				org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.write(_out, _ex0);			}				break;			}			case 7: // subscribe			{			try			{				java.lang.String _arg0=_input.read_string();				java.lang.String _arg1=_input.read_string();				_out = handler.createReply();				_out.write_string(subscribe(_arg0,_arg1));			}			catch(org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException _ex0)			{				_out = handler.createExceptionReply();				org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.write(_out, _ex0);			}				break;			}		}		return _out;	}	public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)	{		return ids;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -