Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.omg.CosTrading;


Generated from IDL interface "Proxy".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:24
  
 
 public abstract class ProxyPOA
 {
 	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
 	static
 	{
 		.put ( "_get_admin_if", Integer.valueOf(0));
 		.put ( "_get_type_repos", Integer.valueOf(1));
 		.put ( "_get_supports_proxy_offers", Integer.valueOf(2));
 		.put ( "_get_link_if", Integer.valueOf(3));
 		.put ( "_get_supports_modifiable_properties", Integer.valueOf(4));
 		.put ( "_get_proxy_if", Integer.valueOf(5));
 		.put ( "withdraw_proxy", Integer.valueOf(6));
 		.put ( "_get_register_if", Integer.valueOf(7));
 		.put ( "_get_lookup_if", Integer.valueOf(8));
 		.put ( "describe_proxy", Integer.valueOf(9));
 		.put ( "_get_supports_dynamic_properties", Integer.valueOf(10));
 		.put ( "export_proxy", Integer.valueOf(11));
 	}
 	private String[] ids = {"IDL:omg.org/CosTrading/Proxy:1.0","IDL:omg.org/CosTrading/SupportAttributes:1.0","IDL:omg.org/CosTrading/TraderComponents:1.0"};
 	{
 		org.omg.CORBA.Object __o = _this_object() ;
 		org.omg.CosTrading.Proxy __r = org.omg.CosTrading.ProxyHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.Object __o = _this_object(orb) ;
 		org.omg.CosTrading.Proxy __r = org.omg.CosTrading.ProxyHelper.narrow(__o);
 		return __r;
 	}
 	{
 		org.omg.CORBA.portable.OutputStream _out = null;
 		// 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: // _get_admin_if
 			{
 			_out = handler.createReply();
 			org.omg.CosTrading.AdminHelper.write(_out,admin_if());
 				break;
 			}
 			case 1: // _get_type_repos
 			{
 			_out = handler.createReply();
 				break;
 			}
 			case 2: // _get_supports_proxy_offers
 			{
 			_out = handler.createReply();
 				break;
 			}
 			case 3: // _get_link_if
 			{
 			_out = handler.createReply();
 			org.omg.CosTrading.LinkHelper.write(_out,link_if());
 				break;
 			}
 			case 4: // _get_supports_modifiable_properties
 			{
 			_out = handler.createReply();
 				break;
 			}
 			case 5: // _get_proxy_if
 			{
 			_out = handler.createReply();
 			org.omg.CosTrading.ProxyHelper.write(_out,proxy_if());
 				break;
 			}
 			case 6: // withdraw_proxy
 			{
 			try
 			{
 				java.lang.String _arg0=_input.read_string();
 				_out = handler.createReply();
 				withdraw_proxy(_arg0);
 			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.ProxyPackage.NotProxyOfferIdHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.IllegalOfferIdHelper.write(_out_ex1);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.UnknownOfferIdHelper.write(_out_ex2);
			}
				break;
			}
			case 7: // _get_register_if
			{
			_out = handler.createReply();
			org.omg.CosTrading.RegisterHelper.write(_out,register_if());
				break;
			}
			case 8: // _get_lookup_if
			{
			_out = handler.createReply();
			org.omg.CosTrading.LookupHelper.write(_out,lookup_if());
				break;
			}
			case 9: // describe_proxy
			{
			try
			{
				java.lang.String _arg0=_input.read_string();
				_out = handler.createReply();
				org.omg.CosTrading.ProxyPackage.ProxyInfoHelper.write(_out,describe_proxy(_arg0));
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.ProxyPackage.NotProxyOfferIdHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.IllegalOfferIdHelper.write(_out_ex1);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.UnknownOfferIdHelper.write(_out_ex2);
			}
				break;
			}
			case 10: // _get_supports_dynamic_properties
			{
			_out = handler.createReply();
				break;
			}
			case 11: // export_proxy
			{
			try
			{
				org.omg.CosTrading.Lookup _arg0=org.omg.CosTrading.LookupHelper.read(_input);
				java.lang.String _arg1=_input.read_string();
				org.omg.CosTrading.Property[] _arg2=org.omg.CosTrading.PropertySeqHelper.read(_input);
				boolean _arg3=_input.read_boolean();
				java.lang.String _arg4=_input.read_string();
				org.omg.CosTrading.Policy[] _arg5=org.omg.CosTrading.PolicySeqHelper.read(_input);
				_out = handler.createReply();
				java.lang.String tmpResult59 = export_proxy(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
_out.write_stringtmpResult59 );
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.DuplicatePropertyNameHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.MissingMandatoryPropertyHelper.write(_out_ex1);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.IllegalServiceTypeHelper.write(_out_ex2);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.ProxyPackage.IllegalRecipeHelper.write(_out_ex3);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.ReadonlyDynamicPropertyHelper.write(_out_ex4);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.DuplicatePolicyNameHelper.write(_out_ex5);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.PropertyTypeMismatchHelper.write(_out_ex6);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.IllegalPropertyNameHelper.write(_out_ex7);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.UnknownServiceTypeHelper.write(_out_ex8);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTrading.InvalidLookupRefHelper.write(_out_ex9);
			}
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X