1 package org.jacorb.orb.iiop; 2 3 23 24 import org.apache.avalon.framework.configuration.*; 25 26 import org.omg.IOP.*; 27 import org.omg.ETF.*; 28 29 33 public class IIOPFactories 34 extends org.jacorb.orb.etf.FactoriesBase 35 { 36 static 37 { 38 connectionClz = ClientIIOPConnection.class; 39 listenerClz = IIOPListener.class; 40 profileClz = IIOPProfile.class; 41 } 42 43 69 70 public int profile_tag() 71 { 72 return org.omg.IOP.TAG_INTERNET_IOP.value; 73 } 74 75 public Profile decode_corbaloc (String corbaloc) 76 { 77 int colon = corbaloc.indexOf (':'); 78 String token = corbaloc.substring (0,colon).toLowerCase(); 79 if (token.length() == 0 || 80 token.equals ("iiop") || 81 token.equals ("ssliop")) 82 { 83 IIOPProfile result = new IIOPProfile(corbaloc); 84 try 85 { 86 result.configure(configuration); 87 } 88 catch(ConfigurationException e) 89 { 90 throw new org.omg.CORBA.INTERNAL ("ConfigurationException: " + e.getMessage()); 91 } 92 93 return result; 94 } 95 else 96 return null; 97 } 98 } 99 | Popular Tags |