Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.CosBridgeAdmin;


Generated from IDL interface "BridgeFactory".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:23
 
public abstract class BridgeFactoryPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "create_bridge", Integer.valueOf(0));
		.put ( "get_bridge_with_id", Integer.valueOf(1));
		.put ( "get_all_bridges", Integer.valueOf(2));
	}
	private String[] ids = {"IDL:omg.org/CosBridgeAdmin/BridgeFactory:1.0"};
	{
		org.omg.CosBridgeAdmin.BridgeFactory __r = org.omg.CosBridgeAdmin.BridgeFactoryHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.omg.CosBridgeAdmin.BridgeFactory __r = org.omg.CosBridgeAdmin.BridgeFactoryHelper.narrow(__o);
		return __r;
	}
	{
		// do something
		// quick lookup of operation
		java.lang.Integer opsIndex = (java.lang.Integer).get ( method );
		if ( null == opsIndex )
			throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
		switch ( opsIndex.intValue() )
		{
			case 0: // create_bridge
			{
			try
			{
				org.omg.CosBridgeAdmin.ExternalEndpoint _arg0=org.omg.CosBridgeAdmin.ExternalEndpointHelper.read(_input);
				org.omg.CosBridgeAdmin.ExternalEndpoint _arg1=org.omg.CosBridgeAdmin.ExternalEndpointHelper.read(_input);
				_out = handler.createReply();
				org.omg.CosBridgeAdmin.BridgeHelper.write(_out,create_bridge(_arg0,_arg1,_arg2));
				_out.write_long(_arg2.value);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosBridgeAdmin.InvalidExternalEndPointsHelper.write(_out_ex0);
			}
				break;
			}
			case 1: // get_bridge_with_id
			{
			try
			{
				int _arg0=_input.read_long();
				_out = handler.createReply();
				org.omg.CosBridgeAdmin.BridgeHelper.write(_out,get_bridge_with_id(_arg0));
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosBridgeAdmin.BridgeNotFoundHelper.write(_out_ex0);
			}
				break;
			}
			case 2: // get_all_bridges
			{
				_out = handler.createReply();
				org.omg.CosBridgeAdmin.BridgeIDSeqHelper.write(_out,get_all_bridges());
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X