index
int64
0
0
repo_id
stringlengths
9
205
file_path
stringlengths
31
246
content
stringlengths
1
12.2M
__index_level_0__
int64
0
10k
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectorSeqHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConnectorSeq:1.0 // final public class ConnectorSeqHolder implements org.omg.CORBA.portable.Streamable { public Connector[] value; public ConnectorSeqHolder() { } public ConnectorSeqHolder(Connector[] initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ConnectorSeqHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ConnectorSeqHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ConnectorSeqHelper.type(); } }
6,500
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/iiop.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; import java.util.logging.Logger; import org.apache.yoko.orb.OB.AssertionFailed; import org.apache.yoko.orb.OCI.IIOP.ConnectionHelper; import org.apache.yoko.orb.OCI.IIOP.ExtendedConnectionHelper; import org.apache.yoko.osgi.ProviderLocator; public class iiop implements PluginInit { static final Logger logger = Logger.getLogger(iiop.class.getName()); // default settings for loading the connectionHelper "plugin-to-the-plugin" private String connectionHelper = "org.apache.yoko.orb.OCI.IIOP.DefaultConnectionHelper"; private String helperArgs = ""; // // Compatibility check. The plug-in should verify that it is // compatible with the given OCI version, and raise an exception // if not. // public void version(org.omg.CORBA.ORB orb, String ver) { // Nothing to do } // // Initialize the plug-in for an ORB // public org.apache.yoko.orb.OCI.Plugin init(org.omg.CORBA.ORB orb, org.omg.CORBA.StringSeqHolder args) { org.apache.yoko.orb.CORBA.ORB oborb = (org.apache.yoko.orb.CORBA.ORB) orb; java.util.Properties props = oborb.properties(); // // Parse arguments // args.value = parse_args(args.value, props); try { // get the appropriate class for the loading. ClassLoader loader = Thread.currentThread().getContextClassLoader(); Class c = ProviderLocator.loadClass(connectionHelper, getClass(), loader); Object o = c.newInstance(); if (o instanceof org.apache.yoko.orb.OCI.IIOP.ConnectionHelper) { ConnectionHelper helper = (org.apache.yoko.orb.OCI.IIOP.ConnectionHelper) o; // give this a chance to initializer helper.init(orb, helperArgs); return new org.apache.yoko.orb.OCI.IIOP.Plugin_impl(orb, helper); } else if (o instanceof org.apache.yoko.orb.OCI.IIOP.ExtendedConnectionHelper) { ExtendedConnectionHelper helper = (org.apache.yoko.orb.OCI.IIOP.ExtendedConnectionHelper) o; // give this a chance to initializer helper.init(orb, helperArgs); return new org.apache.yoko.orb.OCI.IIOP.Plugin_impl(orb, helper); } throw new AssertionFailed("connection helper class " + connectionHelper + " does not implement ConnectionHelper or ExtendedConnectionHelper"); } catch (AssertionFailed af) { throw af; } catch (org.omg.CORBA.INITIALIZE i) { throw i; } catch (Exception ex) { throw new org.omg.CORBA.INITIALIZE("unable to load IIOP ConnectionHelper plug-in `" + connectionHelper + "': " + ex.getMessage()); } } // // Parse IIOP arguments. The return value is the a new array // with the IIOP arguments removed. // public String[] parse_args(String[] args, java.util.Properties props) { String backlog = null; String bind = null; String host = null; boolean numeric = false; String port = null; boolean haveArgs = false; // // First check deprecated properties, which have lowest precedence // { java.util.Enumeration keys = props.keys(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); // we'll recognize and process the some of the // portable CORBA properties for cross-orb compatibility if (key.startsWith("org.omg.CORBA.")) { String value = props.getProperty(key); if (key.equals("org.omg.CORBA.ORBInitialHost")) { host = value; haveArgs = true; logger.fine("Using ORBInitialHost value of " + host); } else if (key.equals("org.omg.CORBA.ORBInitialPort")) { port = value; haveArgs = true; logger.fine("Using ORBInitialPort value of " + port); } else if (key.equals("org.omg.CORBA.ORBListenEndpoints")) { // both specified on one property int sep = value.indexOf(':'); if (sep != -1) { host = value.substring(0, sep); port = value.substring(sep + 1); haveArgs = true; logger.fine("Using ORBListenEndpoints values of " + host + "/" + port); } } } else if (key.startsWith("yoko.iiop.")) { String value = props.getProperty(key); if (key.equals("yoko.iiop.host")) { host = value; haveArgs = true; logger.fine("Using yoko.iiop.host value of " + host); } else if (key.equals("yoko.iiop.numeric")) { numeric = true; haveArgs = true; logger.fine("Using yoko.iiop.numeric value"); } else if (key.equals("yoko.iiop.port")) { port = value; haveArgs = true; logger.fine("Using yoko.iiop.port value of " + port); } else { throw new org.omg.CORBA.INITIALIZE("iiop: unknown " + "property " + key); } } } } // // Check command-line arguments // int i = 0; while (i < args.length) { if (args[i].equals("-IIOPbacklog")) { if (i + 1 >= args.length) throw new org.omg.CORBA.INITIALIZE("iiop: argument " + "expected for " + "-IIOPbacklog"); backlog = args[i + 1]; haveArgs = true; i += 2; } else if (args[i].equals("-IIOPbind")) { if (i + 1 >= args.length) throw new org.omg.CORBA.INITIALIZE("iiop: argument " + "expected for " + "-IIOPbind"); bind = args[i + 1]; haveArgs = true; i += 2; } else if (args[i].equals("-IIOPhost") || args[i].equals("-OAhost")) { if (i + 1 >= args.length) throw new org.omg.CORBA.INITIALIZE("iiop: argument " + "expected for " + args[i]); host = args[i + 1]; haveArgs = true; i += 2; } else if (args[i].equals("-IIOPnumeric") || args[i].equals("-OAnumeric")) { numeric = true; haveArgs = true; i++; } else if (args[i].equals("-IIOPport") || args[i].equals("-OAport")) { if (i + 1 >= args.length) throw new org.omg.CORBA.INITIALIZE("iiop: argument " + "expected for " + args[i]); port = args[i + 1]; haveArgs = true; i += 2; } else if (args[i].equals("-IIOPconnectionHelper")) { if (i + 1 >= args.length) throw new org.omg.CORBA.INITIALIZE("iiop: argument " + "expected for " + args[i]); connectionHelper = args[i + 1]; // NB: We strip out the connection helper related arguments, so we don't set the // haveArgs flag for this. i += 2; } else if (args[i].equals("-IIOPconnectionHelperArgs")) { if (i + 1 >= args.length) throw new org.omg.CORBA.INITIALIZE("iiop: argument " + "expected for " + args[i]); helperArgs = args[i + 1]; // NB: We strip out the connection helper related arguments, so we don't set the // haveArgs flag for this. i += 2; } else if (args[i].startsWith("-IIOP")) { throw new org.omg.CORBA.INITIALIZE("iiop: unknown option `" + args[i] + "'"); } else i++; } if (haveArgs) { String propName = "yoko.orb.poamanager.RootPOAManager.endpoint"; String value = props.getProperty(propName); if (value == null) { propName = "yoko.orb.oa.endpoint"; value = props.getProperty(propName); } String str = "iiop"; if (backlog != null) { str += " --backlog "; str += backlog; } if (bind != null) { str += " --bind "; str += bind; } if (host != null) { str += " --host "; // // If host contains a comma, then we must put the value // in quotes // if (host.indexOf(',') != -1) { str += '"'; str += host; str += '"'; } else str += host; } if (numeric) { str += " --numeric"; } if (port != null) { str += " --port "; str += port; } if (value == null) { logger.fine("Setting endpoint property " + propName + " to " + str); props.put(propName, str); } else { // // Append to existing property value // logger.fine("Setting endpoint property " + propName + " to " + value + ", " + str); props.put(propName, value + ", " + str); } } // // Filter arguments // org.apache.yoko.orb.OB.OptionFilter filter; filter = new org.apache.yoko.orb.OB.OptionFilter("iiop.parse_args", "-OA"); filter.add("host", 1); // Deprecated filter.add("numeric", 0); // Deprecated filter.add("port", 1); // Deprecated args = filter.filter(args); filter = new org.apache.yoko.orb.OB.OptionFilter("iiop.parse_args", "-IIOP"); filter.add("backlog", 1); filter.add("bind", 1); filter.add("host", 1); filter.add("numeric", 0); filter.add("port", 1); return filter.filter(args); } }
6,501
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AccFactorySeqHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AccFactorySeq:1.0 // final public class AccFactorySeqHolder implements org.omg.CORBA.portable.Streamable { public AccFactory[] value; public AccFactorySeqHolder() { } public AccFactorySeqHolder(AccFactory[] initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = AccFactorySeqHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { AccFactorySeqHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return AccFactorySeqHelper.type(); } }
6,502
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectCBHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConnectCB:1.0 // final public class ConnectCBHolder implements org.omg.CORBA.portable.Streamable { public ConnectCB value; public ConnectCBHolder() { } public ConnectCBHolder(ConnectCB initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ConnectCBHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ConnectCBHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ConnectCBHelper.type(); } }
6,503
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/Transport.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Transport:1.0 // /** * * The interface for a Transport object, which provides operations * for sending and receiving octet streams. In addition, it is * possible to register callbacks with the Transport object, which * are invoked whenever data can be sent or received without * blocking. * * @see Connector * @see Acceptor * **/ public interface Transport extends TransportOperations, org.omg.CORBA.Object { }
6,504
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/InvalidParamHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/InvalidParam:1.0 // final public class InvalidParamHelper { public static void insert(org.omg.CORBA.Any any, InvalidParam val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static InvalidParam extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[1]; members[0] = new org.omg.CORBA.StructMember(); members[0].name = "reason"; members[0].type = orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string); typeCode_ = orb.create_exception_tc(id(), "InvalidParam", members); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/InvalidParam:1.0"; } public static InvalidParam read(org.omg.CORBA.portable.InputStream in) { if(!id().equals(in.read_string())) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadIDMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorReadIDMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } InvalidParam _ob_v = new InvalidParam(); _ob_v.reason = in.read_string(); return _ob_v; } public static void write(org.omg.CORBA.portable.OutputStream out, InvalidParam val) { out.write_string(id()); out.write_string(val.reason); } }
6,505
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectorInfoHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConnectorInfo:1.0 // final public class ConnectorInfoHolder implements org.omg.CORBA.portable.Streamable { public ConnectorInfo value; public ConnectorInfoHolder() { } public ConnectorInfoHolder(ConnectorInfo initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ConnectorInfoHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ConnectorInfoHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ConnectorInfoHelper.type(); } }
6,506
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AcceptorSeqHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AcceptorSeq:1.0 // final public class AcceptorSeqHolder implements org.omg.CORBA.portable.Streamable { public Acceptor[] value; public AcceptorSeqHolder() { } public AcceptorSeqHolder(Acceptor[] initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = AcceptorSeqHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { AcceptorSeqHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return AcceptorSeqHelper.type(); } }
6,507
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AccFactoryHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AccFactory:1.0 // final public class AccFactoryHelper { public static void insert(org.omg.CORBA.Any any, AccFactory val) { any.insert_Object(val, type()); } public static AccFactory extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "AccFactory"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/AccFactory:1.0"; } public static AccFactory read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, AccFactory val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static AccFactory narrow(org.omg.CORBA.Object val) { try { return (AccFactory)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,508
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AccFactoryHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AccFactory:1.0 // final public class AccFactoryHolder implements org.omg.CORBA.portable.Streamable { public AccFactory value; public AccFactoryHolder() { } public AccFactoryHolder(AccFactory initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = AccFactoryHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { AccFactoryHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return AccFactoryHelper.type(); } }
6,509
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/PluginIdHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/PluginId:1.0 // final public class PluginIdHelper { public static void insert(org.omg.CORBA.Any any, String val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static String extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = orb.create_alias_tc(id(), "PluginId", orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string)); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/PluginId:1.0"; } public static String read(org.omg.CORBA.portable.InputStream in) { String _ob_v; _ob_v = in.read_string(); return _ob_v; } public static void write(org.omg.CORBA.portable.OutputStream out, String val) { out.write_string(val); } }
6,510
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AcceptorSeqHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AcceptorSeq:1.0 // final public class AcceptorSeqHelper { public static void insert(org.omg.CORBA.Any any, Acceptor[] val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static Acceptor[] extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = orb.create_alias_tc(id(), "AcceptorSeq", orb.create_sequence_tc(0, AcceptorHelper.type())); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/AcceptorSeq:1.0"; } public static Acceptor[] read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, Acceptor[] val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,511
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/InvalidParamHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/InvalidParam:1.0 // final public class InvalidParamHolder implements org.omg.CORBA.portable.Streamable { public InvalidParam value; public InvalidParamHolder() { } public InvalidParamHolder(InvalidParam initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = InvalidParamHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { InvalidParamHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return InvalidParamHelper.type(); } }
6,512
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectorInfoHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConnectorInfo:1.0 // final public class ConnectorInfoHelper { public static void insert(org.omg.CORBA.Any any, ConnectorInfo val) { any.insert_Object(val, type()); } public static ConnectorInfo extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "ConnectorInfo"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/ConnectorInfo:1.0"; } public static ConnectorInfo read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, ConnectorInfo val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static ConnectorInfo narrow(org.omg.CORBA.Object val) { try { return (ConnectorInfo)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,513
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectorInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConnectorInfo:1.0 // /** * * Information on a OCI Connector object. Objects of this type must be * narrowed to a Connector information object for a concrete protocol * implementation, for example to <code>OCI::IIOP::ConnectorInfo</code> * in case the plug-in implements IIOP. * * @see Connector * **/ public interface ConnectorInfo extends ConnectorInfoOperations, org.omg.CORBA.Object { }
6,514
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AccFactoryRegistry.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AccFactoryRegistry:1.0 // /** * * A registry for Acceptor factories. * * @see Acceptor * @see AccFactory * **/ public interface AccFactoryRegistry extends AccFactoryRegistryOperations, org.omg.CORBA.Object { }
6,515
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/Plugin.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Plugin:1.0 // /** * * The interface for a Plugin object, which is used to initialize * an OCI plug-in. * **/ public interface Plugin extends PluginOperations, org.omg.CORBA.Object { }
6,516
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConFactoryOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConFactory:1.0 // /** * * A factory for Connector objects. * * @see Connector * @see ConFactoryRegistry * **/ public interface ConFactoryOperations { // // IDL:orb.yoko.apache.org/OCI/ConFactory/id:1.0 // /** The plugin id. */ String id(); // // IDL:orb.yoko.apache.org/OCI/ConFactory/tag:1.0 // /** The profile id tag. */ int tag(); // // IDL:orb.yoko.apache.org/OCI/ConFactory/describe_profile:1.0 // /** * * Returns a description of the given tagged profile. * * @param prof The tagged profile. * * @return The profile description. * **/ String describe_profile(org.omg.IOP.TaggedProfile prof); // // IDL:orb.yoko.apache.org/OCI/ConFactory/create_connectors:1.0 // /** * * Returns a sequence of Connectors for a given IOR and a list of * policies. The sequence includes one or more Connectors for each * IOR profile that matches this Connector factory and satisfies * the list of policies. * * @param ref The IOR for which Connectors are returned. * * @param policies The policies that must be satisfied. * * @return The sequence of Connectors. * **/ Connector[] create_connectors(org.omg.IOP.IOR ref, org.omg.CORBA.Policy[] policies); // // IDL:orb.yoko.apache.org/OCI/ConFactory/equivalent:1.0 // /** * * Checks whether two IORs are equivalent, taking only profiles * into account matching this Connector factory. * * @param ior1 The first IOR to check for equivalence. * * @param ior2 The second IOR to check for equivalence. * * @return <code>TRUE</code> if the IORs are equivalent, * <code>FALSE</code> otherwise. * **/ boolean equivalent(org.omg.IOP.IOR ior1, org.omg.IOP.IOR ior2); // // IDL:orb.yoko.apache.org/OCI/ConFactory/hash:1.0 // /** * * Calculates a hash value for an IOR. * * @param ref The IOR to calculate a hash value for. * * @param maximum The maximum value of the hash value. * * @return The hash value. * **/ int hash(org.omg.IOP.IOR ref, int maximum); // // IDL:orb.yoko.apache.org/OCI/ConFactory/get_info:1.0 // /** * * Returns the information object associated with the Connector * factory. * * @return The Connector factory information object. * **/ ConFactoryInfo get_info(); }
6,517
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/TransportInfoOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/TransportInfo:1.0 // /** * * Information on an OCI Transport object. Objects of this type must * be narrowed to a Transport information object for a concrete * protocol implementation, for example to * <code>OCI::IIOP::TransportInfo</code> in case the plug-in * implements IIOP. * * @see Transport * **/ public interface TransportInfoOperations { // // IDL:orb.yoko.apache.org/OCI/TransportInfo/id:1.0 // /** The plugin id. */ String id(); // // IDL:orb.yoko.apache.org/OCI/TransportInfo/tag:1.0 // /** The profile id tag. */ int tag(); // // IDL:orb.yoko.apache.org/OCI/TransportInfo/connector_info:1.0 // // // IDL:orb.yoko.apache.org/OCI/TransportInfo/acceptor_info:1.0 // // // IDL:orb.yoko.apache.org/OCI/TransportInfo/origin:1.0 // /** * * The origin indicates whether the transport was originally * created by a server side accept or a client side connect. This * is information is required for connection lifecycle management * in bidirectional communications. This information cannot be * inferred by the connector_info and acceptor_info attributes as * they may both be set in a bidirectional case. * * @return <code>CLIENT_SIDE</code> if transport was initially * created as a client side connection. <code>SERVER_SIDE</code> * if transport was initially created to handle incoming requests. * **/ short origin(); // // IDL:orb.yoko.apache.org/OCI/TransportInfo/describe:1.0 // /** * * Returns a human readable description of the transport. * * @return The description. * **/ String describe(); // // IDL:orb.yoko.apache.org/OCI/TransportInfo/add_close_cb:1.0 // // // IDL:orb.yoko.apache.org/OCI/TransportInfo/remove_close_cb:1.0 // // // IDL:orb.yoko.apache.org/OCI/TransportInfo/get_service_contexts:1.0 // /** * * Returns a sequence of service contexts for this transport based * on the policies. Certain policies result in service contexts * being applied to requests. * * @param policies The CORBA Policy list. * * @return The service contexts for the given polices. * **/ org.omg.IOP.ServiceContext[] get_service_contexts(org.omg.CORBA.Policy[] policies); // // IDL:orb.yoko.apache.org/OCI/TransportInfo/handle_service_contexts:1.0 // /** * * Handles service contexts that might be received during a * request. This allows transports to change their internal state * or behavior during their runtime. * * @param contexts The service context list * **/ void handle_service_contexts(org.omg.IOP.ServiceContext[] contexts); // // IDL:orb.yoko.apache.org/OCI/TransportInfo/received_bidir_SCL:1.0 // /** * * Queries whether this' transport has received a BiDir SCL in a * request. * **/ boolean received_bidir_SCL(); // // IDL:orb.yoko.apache.org/OCI/TransportInfo/endpoint_alias_match:1.0 // /** * * Uses the BiDir SCL information in this TransportInfo to check * whether we can be used as a BiDir connection alias instead of * creating a new connection with the information specified in the * ConnectorInfo paramater * **/ boolean endpoint_alias_match(ConnectorInfo connInfo); }
6,518
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConFactoryInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConFactoryInfo:1.0 // /** * * Information on an OCI ConFactory object. * * @see ConFactory * **/ public interface ConFactoryInfo extends ConFactoryInfoOperations, org.omg.CORBA.Object { }
6,519
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/GiopVersion.java
package org.apache.yoko.orb.OCI; public enum GiopVersion { GIOP1_0(1,0), GIOP1_1(1,1), GIOP1_2(1,2); public final byte major; public final byte minor; private GiopVersion(int major, int minor) { this.major = (byte)(major & 0xff); this.minor = (byte)(minor & 0xff); } public static GiopVersion get(byte major, byte minor) { if (major < 1) return GIOP1_0; if (major > 1) return GIOP1_2; switch (minor) { case 0: return GIOP1_0; case 1: return GIOP1_1; default: return GIOP1_2; } } }
6,520
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IORHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/IOR:1.0 // final public class IORHelper { public static void insert(org.omg.CORBA.Any any, org.omg.IOP.IOR val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static org.omg.IOP.IOR extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = orb.create_alias_tc(id(), "IOR", org.omg.IOP.IORHelper.type()); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/IOR:1.0"; } public static org.omg.IOP.IOR read(org.omg.CORBA.portable.InputStream in) { org.omg.IOP.IOR _ob_v; _ob_v = org.omg.IOP.IORHelper.read(in); return _ob_v; } public static void write(org.omg.CORBA.portable.OutputStream out, org.omg.IOP.IOR val) { org.omg.IOP.IORHelper.write(out, val); } }
6,521
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/CurrentOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Current:1.0 // /** * * Interface to access Transport and Acceptor information objects * related to the current request. * **/ public interface CurrentOperations extends org.omg.CORBA.CurrentOperations { // // IDL:orb.yoko.apache.org/OCI/Current/get_oci_transport_info:1.0 // /** * * This method returns the Transport information object for the * Transport used to invoke the current request. * * @returns The Transport information object. * **/ TransportInfo get_oci_transport_info(); // // IDL:orb.yoko.apache.org/OCI/Current/get_oci_acceptor_info:1.0 // }
6,522
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConFactory:1.0 // /** * * A factory for Connector objects. * * @see Connector * @see ConFactoryRegistry * **/ public interface ConFactory extends ConFactoryOperations, org.omg.CORBA.Object { }
6,523
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectorHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Connector:1.0 // final public class ConnectorHolder implements org.omg.CORBA.portable.Streamable { public Connector value; public ConnectorHolder() { } public ConnectorHolder(Connector initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ConnectorHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ConnectorHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ConnectorHelper.type(); } }
6,524
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectorHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Connector:1.0 // final public class ConnectorHelper { public static void insert(org.omg.CORBA.Any any, Connector val) { any.insert_Object(val, type()); } public static Connector extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "Connector"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/Connector:1.0"; } public static Connector read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, Connector val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static Connector narrow(org.omg.CORBA.Object val) { try { return (Connector)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,525
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConFactoryInfoOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConFactoryInfo:1.0 // /** * * Information on an OCI ConFactory object. * * @see ConFactory * **/ public interface ConFactoryInfoOperations { // // IDL:orb.yoko.apache.org/OCI/ConFactoryInfo/id:1.0 // /** The plugin id. */ String id(); // // IDL:orb.yoko.apache.org/OCI/ConFactoryInfo/tag:1.0 // /** The profile id tag. */ int tag(); // // IDL:orb.yoko.apache.org/OCI/ConFactoryInfo/describe:1.0 // /** * * Returns a human readable description of the transport. * * @return The description. * **/ String describe(); // // IDL:orb.yoko.apache.org/OCI/ConFactoryInfo/add_connect_cb:1.0 // /** * * Add a callback that is called whenever a new connection is * established. If the callback has already been registered, this * method has no effect. * * @param cb The callback to add. * **/ void add_connect_cb(ConnectCB cb); // // IDL:orb.yoko.apache.org/OCI/ConFactoryInfo/remove_connect_cb:1.0 // /** * * Remove a connect callback. If the callback was not registered, * this method has no effect. * * @param cb The callback to remove. * **/ void remove_connect_cb(ConnectCB cb); }
6,526
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AcceptCB.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AcceptCB:1.0 // /** * * An interface for an accept callback object. * * @see AcceptorInfo * **/ public interface AcceptCB extends AcceptCBOperations, org.omg.CORBA.Object { }
6,527
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/SendReceiveMode.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/SendReceiveMode:1.0 // /** Indicates the send/receive capabilities of an OCI component. */ public class SendReceiveMode implements org.omg.CORBA.portable.IDLEntity { private static SendReceiveMode [] values_ = new SendReceiveMode[3]; private int value_; public final static int _SendOnly = 0; public final static SendReceiveMode SendOnly = new SendReceiveMode(_SendOnly); public final static int _ReceiveOnly = 1; public final static SendReceiveMode ReceiveOnly = new SendReceiveMode(_ReceiveOnly); public final static int _SendReceive = 2; public final static SendReceiveMode SendReceive = new SendReceiveMode(_SendReceive); protected SendReceiveMode(int value) { values_[value] = this; value_ = value; } public int value() { return value_; } public static SendReceiveMode from_int(int value) { if(value < values_.length) return values_[value]; else throw new org.omg.CORBA.BAD_PARAM("Value (" + value + ") out of range", 25, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private java.lang.Object readResolve() throws java.io.ObjectStreamException { return from_int(value()); } }
6,528
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AccFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AccFactory:1.0 // /** * * An interface for an AccFactory object, which is used by CORBA * servers to create Acceptors. * * @see Acceptor * @see AccFactoryRegistry * **/ public interface AccFactory extends AccFactoryOperations, org.omg.CORBA.Object { }
6,529
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/Connector.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Connector:1.0 // /** * * An interface for Connector objects. A Connector is used by CORBA * clients to initiate a connection to a server. It also provides * operations for the management of IOR profiles. * * @see ConFactory * @see Transport * **/ public interface Connector extends ConnectorOperations, org.omg.CORBA.Object { }
6,530
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AcceptorInfoHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AcceptorInfo:1.0 // final public class AcceptorInfoHolder implements org.omg.CORBA.portable.Streamable { public AcceptorInfo value; public AcceptorInfoHolder() { } public AcceptorInfoHolder(AcceptorInfo initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = AcceptorInfoHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { AcceptorInfoHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return AcceptorInfoHelper.type(); } }
6,531
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ProfileIdSeqHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ProfileIdSeq:1.0 // final public class ProfileIdSeqHolder implements org.omg.CORBA.portable.Streamable { public int[] value; public ProfileIdSeqHolder() { } public ProfileIdSeqHolder(int[] initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ProfileIdSeqHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ProfileIdSeqHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ProfileIdSeqHelper.type(); } }
6,532
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/TransportInfoHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/TransportInfo:1.0 // final public class TransportInfoHelper { public static void insert(org.omg.CORBA.Any any, TransportInfo val) { any.insert_Object(val, type()); } public static TransportInfo extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "TransportInfo"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/TransportInfo:1.0"; } public static TransportInfo read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, TransportInfo val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static TransportInfo narrow(org.omg.CORBA.Object val) { try { return (TransportInfo)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,533
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/TransportInfoHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/TransportInfo:1.0 // final public class TransportInfoHolder implements org.omg.CORBA.portable.Streamable { public TransportInfo value; public TransportInfoHolder() { } public TransportInfoHolder(TransportInfo initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = TransportInfoHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { TransportInfoHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return TransportInfoHelper.type(); } }
6,534
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/PluginOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Plugin:1.0 // /** * * The interface for a Plugin object, which is used to initialize * an OCI plug-in. * **/ public interface PluginOperations { // // IDL:orb.yoko.apache.org/OCI/Plugin/id:1.0 // /** The plugin id. */ String id(); // // IDL:orb.yoko.apache.org/OCI/Plugin/tag:1.0 // /** The profile id tag. */ int tag(); // // IDL:orb.yoko.apache.org/OCI/Plugin/init_client:1.0 // /** * * Initialize the client-side of the plug-in. * * @param params Plug-in specific parameters. * **/ void init_client(String[] params); // // IDL:orb.yoko.apache.org/OCI/Plugin/init_server:1.0 // /** * * Initialize the server-side of the plug-in. * * @param params Plug-in specific parameters. * **/ void init_server(String[] params); }
6,535
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/TransportInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/TransportInfo:1.0 // /** * * Information on an OCI Transport object. Objects of this type must * be narrowed to a Transport information object for a concrete * protocol implementation, for example to * <code>OCI::IIOP::TransportInfo</code> in case the plug-in * implements IIOP. * * @see Transport * **/ public interface TransportInfo extends TransportInfoOperations, org.omg.CORBA.Object { }
6,536
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ProfileIdSeqHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ProfileIdSeq:1.0 // final public class ProfileIdSeqHelper { public static void insert(org.omg.CORBA.Any any, int[] val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static int[] extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = orb.create_alias_tc(id(), "ProfileIdSeq", orb.create_sequence_tc(0, ProfileIdHelper.type())); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/ProfileIdSeq:1.0"; } public static int[] read(org.omg.CORBA.portable.InputStream in) { int[] _ob_v; int len0 = in.read_ulong(); _ob_v = new int[len0]; in.read_ulong_array(_ob_v, 0, len0); return _ob_v; } public static void write(org.omg.CORBA.portable.OutputStream out, int[] val) { int len0 = val.length; out.write_ulong(len0); out.write_ulong_array(val, 0, len0); } }
6,537
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/PluginInit.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; public interface PluginInit { // // Compatibility check. The plug-in should verify that it is // compatible with the given OCI version, and raise an exception // if not. // void version(org.omg.CORBA.ORB orb, String ver); // // Initialize the plug-in for an ORB // org.apache.yoko.orb.OCI.Plugin init(org.omg.CORBA.ORB orb, org.omg.CORBA.StringSeqHolder args); }
6,538
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AcceptorInfoHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AcceptorInfo:1.0 // final public class AcceptorInfoHelper { public static void insert(org.omg.CORBA.Any any, AcceptorInfo val) { any.insert_Object(val, type()); } public static AcceptorInfo extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "AcceptorInfo"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/AcceptorInfo:1.0"; } public static AcceptorInfo read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, AcceptorInfo val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static AcceptorInfo narrow(org.omg.CORBA.Object val) { try { return (AcceptorInfo)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,539
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/CLIENT_SIDE.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/CLIENT_SIDE:1.0 // /** * * This transport was created as a client side connection. * * @see Originator * @see TransportInfo * **/ public interface CLIENT_SIDE { short value = (short)(0L); }
6,540
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectorOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Connector:1.0 // /** * * An interface for Connector objects. A Connector is used by CORBA * clients to initiate a connection to a server. It also provides * operations for the management of IOR profiles. * * @see ConFactory * @see Transport * **/ public interface ConnectorOperations { // // IDL:orb.yoko.apache.org/OCI/Connector/id:1.0 // /** The plugin id. */ String id(); // // IDL:orb.yoko.apache.org/OCI/Connector/tag:1.0 // /** The profile id tag. */ int tag(); // // IDL:orb.yoko.apache.org/OCI/Connector/connect:1.0 // /** * * Used by CORBA clients to establish a connection to a CORBA * server. It returns a Transport object, which can be used for * sending and receiving octet streams to and from the server. * * @return The new Transport object. * * @exception TRANSIENT If the server cannot be contacted. * @exception COMM_FAILURE In case of other errors. * **/ Transport connect(); // // IDL:orb.yoko.apache.org/OCI/Connector/connect_timeout:1.0 // /** * * Similar to <code>connect</code>, but it is possible to specify * a timeout. On return the caller can test whether there was a * timeout by checking whether a nil object reference was returned. * * @param timeout The timeout value in milliseconds. * * @return The new Transport object. * * @exception TRANSIENT If the server cannot be contacted. * @exception COMM_FAILURE In case of other errors. * **/ Transport connect_timeout(int timeout); // // IDL:orb.yoko.apache.org/OCI/Connector/get_usable_profiles:1.0 // /** * * From the given IOR and list of policies, get basic information * about all profiles for which this Connector can be used. * * @param ref The IOR from which the profiles are taken. * * @param policies The policies that must be satisfied. * * @return The sequence of basic information about profiles. If * this sequence is empty, there is no profile in the IOR that * matches this Connector and the list of policies. * **/ ProfileInfo[] get_usable_profiles(org.omg.IOP.IOR ref, org.omg.CORBA.Policy[] policies); // // IDL:orb.yoko.apache.org/OCI/Connector/equal:1.0 // /** * * Find out whether this Connector is equal to another * Connector. Two Connectors are considered equal if they are * interchangeable. * * @param con The connector to compare with. * * @return <code>TRUE</code> if the Connectors are equal, * <code>FALSE</code> otherwise. * **/ boolean equal(Connector con); // // IDL:orb.yoko.apache.org/OCI/Connector/get_info:1.0 // /** * * Returns the information object associated with * the Connector. * * @return The Connector information object. * **/ ConnectorInfo get_info(); }
6,541
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AcceptCBSeqHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AcceptCBSeq:1.0 // final public class AcceptCBSeqHolder implements org.omg.CORBA.portable.Streamable { public AcceptCB[] value; public AcceptCBSeqHolder() { } public AcceptCBSeqHolder(AcceptCB[] initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = AcceptCBSeqHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { AcceptCBSeqHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return AcceptCBSeqHelper.type(); } }
6,542
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/FactoryAlreadyExistsHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/FactoryAlreadyExists:1.0 // final public class FactoryAlreadyExistsHolder implements org.omg.CORBA.portable.Streamable { public FactoryAlreadyExists value; public FactoryAlreadyExistsHolder() { } public FactoryAlreadyExistsHolder(FactoryAlreadyExists initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = FactoryAlreadyExistsHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { FactoryAlreadyExistsHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return FactoryAlreadyExistsHelper.type(); } }
6,543
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/Acceptor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Acceptor:1.0 // /** * * An interface for an Acceptor object, which is used by CORBA * servers to accept client connection requests. It also provides * operations for the management of IOR profiles. * * @see AccRegistry * @see AccFactory * @see Transport * **/ public interface Acceptor extends AcceptorOperations, org.omg.CORBA.Object { }
6,544
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ParamSeqHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ParamSeq:1.0 // final public class ParamSeqHelper { public static void insert(org.omg.CORBA.Any any, String[] val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static String[] extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = orb.create_alias_tc(id(), "ParamSeq", orb.create_sequence_tc(0, orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string))); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/ParamSeq:1.0"; } public static String[] read(org.omg.CORBA.portable.InputStream in) { String[] _ob_v; int len0 = in.read_ulong(); _ob_v = new String[len0]; for(int i0 = 0; i0 < len0; i0++) _ob_v[i0] = in.read_string(); return _ob_v; } public static void write(org.omg.CORBA.portable.OutputStream out, String[] val) { int len0 = val.length; out.write_ulong(len0); for(int i0 = 0; i0 < len0; i0++) out.write_string(val[i0]); } }
6,545
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConFactoryRegistry.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConFactoryRegistry:1.0 // /** * * A registry for Connector factories. * * @see Connector * @see ConFactory * **/ public interface ConFactoryRegistry extends ConFactoryRegistryOperations, org.omg.CORBA.Object { }
6,546
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/Buffer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; import org.apache.yoko.orb.OB.IORUtil; public final class Buffer { private int max_; // The maximum size of the buffer public byte[] data_; // The octet buffer public int len_; // The requested size of the buffer public int pos_; // The position counter // ------------------------------------------------------------------ // Standard IDL to Java Mapping // ------------------------------------------------------------------ public byte[] data() { return data_; } public int length() { return len_; } public int rest_length() { return len_ - pos_; } public int pos() { return pos_; } public void pos(int pos) { pos_ = pos; } public void advance(int delta) { pos_ += delta; } public boolean is_full() { return pos_ >= len_; } /** * Return the data in the buffer as a formatted string suitable for * logging. * * @return The string value of the data. */ public String dumpData() { StringBuilder dump = new StringBuilder(); dump.append(String.format("Buffer pos=0x%x Buffer len=0x%x Remaining buffer data=%n%n", pos_, len_)); org.apache.yoko.orb.OB.IORUtil.dump_octets(data_, pos_, rest_length(), dump); return dump.toString(); } // ------------------------------------------------------------------ // Additional Yoko specific functions // ------------------------------------------------------------------ public void alloc(int len) { max_ = len; len_ = len; try { data_ = new byte[max_]; } catch (OutOfMemoryError ex) { throw new org.omg.CORBA.NO_MEMORY( org.apache.yoko.orb.OB.MinorCodes .describeNoMemory(org.apache.yoko.orb.OB.MinorCodes.MinorAllocationFailure), org.apache.yoko.orb.OB.MinorCodes.MinorAllocationFailure, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } pos_ = 0; } public void realloc(int len) { if (data_ == null) alloc(len); else { org.apache.yoko.orb.OB.Assert._OB_assert(len >= len_); if (len <= max_) len_ = len; else { int newMax = len > 2 * max_ ? len : 2 * max_; byte[] newData = null; try { newData = new byte[newMax]; } catch (OutOfMemoryError ex) { throw new org.omg.CORBA.NO_MEMORY( org.apache.yoko.orb.OB.MinorCodes .describeNoMemory(org.apache.yoko.orb.OB.MinorCodes.MinorAllocationFailure), org.apache.yoko.orb.OB.MinorCodes.MinorAllocationFailure, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } System.arraycopy(data_, 0, newData, 0, len_); data_ = newData; len_ = len; max_ = newMax; } } } public void data(byte[] data, int len) { data_ = data; len_ = len; max_ = len; pos_ = 0; } public void consume(Buffer buf) { data_ = buf.data_; len_ = buf.len_; max_ = buf.max_; pos_ = buf.pos_; buf.data_ = null; buf.len_ = 0; buf.max_ = 0; buf.pos_ = 0; } // ------------------------------------------------------------------ // Yoko internal functions // Application programs must not use these functions directly // ------------------------------------------------------------------ public Buffer() { } public Buffer(byte[] data, int len) { data_ = data; len_ = len; max_ = len; pos_ = 0; } public Buffer(int len) { alloc(len); } @Override public String toString() { StringBuilder sb = new StringBuilder(); int pos = pos_, len = len_; IORUtil.dump_octets(data_, 0, pos, sb); sb.append(String.format("------------------ pos = 0x%08X -------------------%n", pos)); IORUtil.dump_octets(data_, pos, len_ - pos, sb); return sb.toString(); } }
6,547
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/CurrentHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Current:1.0 // final public class CurrentHelper { public static void insert(org.omg.CORBA.Any any, Current val) { any.insert_Object(val, type()); } public static Current extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "Current"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/Current:1.0"; } public static Current read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, Current val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static Current narrow(org.omg.CORBA.Object val) { try { return (Current)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,548
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectCB.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConnectCB:1.0 // /** * * An interface for a connect callback object. * * @see ConnectorInfo * **/ public interface ConnectCB extends ConnectCBOperations, org.omg.CORBA.Object { }
6,549
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ParamSeqHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ParamSeq:1.0 // final public class ParamSeqHolder implements org.omg.CORBA.portable.Streamable { public String[] value; public ParamSeqHolder() { } public ParamSeqHolder(String[] initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ParamSeqHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ParamSeqHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ParamSeqHelper.type(); } }
6,550
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AccFactoryRegistryOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AccFactoryRegistry:1.0 // /** * * A registry for Acceptor factories. * * @see Acceptor * @see AccFactory * **/ public interface AccFactoryRegistryOperations { // // IDL:orb.yoko.apache.org/OCI/AccFactoryRegistry/add_factory:1.0 // /** * * Adds an Acceptor factory to the registry. * * @param factory The Acceptor factory to add. * * @exception org.apache.yoko.orb.OCI.FactoryAlreadyExists If a factory already exists with the * same plugin id as the given factory. * **/ void add_factory(AccFactory factory) throws FactoryAlreadyExists; // // IDL:orb.yoko.apache.org/OCI/AccFactoryRegistry/get_factory:1.0 // /** * * Returns the factory with the given plugin id. * * @param id The plugin id. * * @return The Acceptor factory. * * @exception org.apache.yoko.orb.OCI.NoSuchFactory If no factory was found with a matching * plugin id. * **/ AccFactory get_factory(String id) throws NoSuchFactory; // // IDL:orb.yoko.apache.org/OCI/AccFactoryRegistry/get_factories:1.0 // /** * * Returns all registered factories. * * @return The Acceptor factories. * **/ AccFactory[] get_factories(); }
6,551
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/HandleHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Handle:1.0 // final public class HandleHelper { public static void insert(org.omg.CORBA.Any any, int val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static int extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = orb.create_alias_tc(id(), "Handle", orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long)); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/Handle:1.0"; } public static int read(org.omg.CORBA.portable.InputStream in) { int _ob_v; _ob_v = in.read_long(); return _ob_v; } public static void write(org.omg.CORBA.portable.OutputStream out, int val) { out.write_long(val); } }
6,552
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/CurrentHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Current:1.0 // final public class CurrentHolder implements org.omg.CORBA.portable.Streamable { public Current value; public CurrentHolder() { } public CurrentHolder(Current initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = CurrentHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { CurrentHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return CurrentHelper.type(); } }
6,553
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/FactoryAlreadyExistsHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/FactoryAlreadyExists:1.0 // final public class FactoryAlreadyExistsHelper { public static void insert(org.omg.CORBA.Any any, FactoryAlreadyExists val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static FactoryAlreadyExists extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); org.omg.CORBA.StructMember[] members = new org.omg.CORBA.StructMember[1]; members[0] = new org.omg.CORBA.StructMember(); members[0].name = "id"; members[0].type = PluginIdHelper.type(); typeCode_ = orb.create_exception_tc(id(), "FactoryAlreadyExists", members); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/FactoryAlreadyExists:1.0"; } public static FactoryAlreadyExists read(org.omg.CORBA.portable.InputStream in) { if(!id().equals(in.read_string())) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadIDMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorReadIDMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } FactoryAlreadyExists _ob_v = new FactoryAlreadyExists(); _ob_v.id = PluginIdHelper.read(in); return _ob_v; } public static void write(org.omg.CORBA.portable.OutputStream out, FactoryAlreadyExists val) { out.write_string(id()); PluginIdHelper.write(out, val.id); } }
6,554
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConFactoryRegistryOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConFactoryRegistry:1.0 // /** * * A registry for Connector factories. * * @see Connector * @see ConFactory * **/ public interface ConFactoryRegistryOperations { // // IDL:orb.yoko.apache.org/OCI/ConFactoryRegistry/add_factory:1.0 // /** * * Adds a Connector factory to the registry. * * @param factory The Connector factory to add. * * @exception org.apache.yoko.orb.OCI.FactoryAlreadyExists If a factory already exists with the * same plugin id as the given factory. * **/ void add_factory(ConFactory factory) throws FactoryAlreadyExists; // // IDL:orb.yoko.apache.org/OCI/ConFactoryRegistry/get_factory:1.0 // /** * * Returns the factory with the given plugin id. * * @param id The plugin id. * * @return The Connector factory. * * @exception org.apache.yoko.orb.OCI.NoSuchFactory If no factory was found with a matching * plugin id. * **/ ConFactory get_factory(String id) throws NoSuchFactory; // // IDL:orb.yoko.apache.org/OCI/ConFactoryRegistry/get_factories:1.0 // /** * * Returns all registered factories. * * @return The Connector factories. * **/ ConFactory[] get_factories(); }
6,555
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AcceptCBSeqHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AcceptCBSeq:1.0 // final public class AcceptCBSeqHelper { public static void insert(org.omg.CORBA.Any any, AcceptCB[] val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static AcceptCB[] extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = orb.create_alias_tc(id(), "AcceptCBSeq", orb.create_sequence_tc(0, AcceptCBHelper.type())); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/AcceptCBSeq:1.0"; } public static AcceptCB[] read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, AcceptCB[] val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,556
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectCBOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConnectCB:1.0 // /** * * An interface for a connect callback object. * * @see ConnectorInfo * **/ public interface ConnectCBOperations { // // IDL:orb.yoko.apache.org/OCI/ConnectCB/connect_cb:1.0 // /** * * Called after a new connection has been established. If the * application wishes to reject the connection * <code>CORBA::NO_PERMISSION</code> may be raised. * * @param transport_info The TransportInfo for the new connection. * **/ void connect_cb(TransportInfo transport_info); }
6,557
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/CloseCBSeqHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/CloseCBSeq:1.0 // final public class CloseCBSeqHelper { public static void insert(org.omg.CORBA.Any any, CloseCB[] val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static CloseCB[] extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = orb.create_alias_tc(id(), "CloseCBSeq", orb.create_sequence_tc(0, CloseCBHelper.type())); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/CloseCBSeq:1.0"; } public static CloseCB[] read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, CloseCB[] val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,558
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConFactorySeqHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConFactorySeq:1.0 // final public class ConFactorySeqHolder implements org.omg.CORBA.portable.Streamable { public ConFactory[] value; public ConFactorySeqHolder() { } public ConFactorySeqHolder(ConFactory[] initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ConFactorySeqHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ConFactorySeqHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ConFactorySeqHelper.type(); } }
6,559
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectCBSeqHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConnectCBSeq:1.0 // final public class ConnectCBSeqHelper { public static void insert(org.omg.CORBA.Any any, ConnectCB[] val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static ConnectCB[] extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = orb.create_alias_tc(id(), "ConnectCBSeq", orb.create_sequence_tc(0, ConnectCBHelper.type())); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/ConnectCBSeq:1.0"; } public static ConnectCB[] read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, ConnectCB[] val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,560
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AcceptCBHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AcceptCB:1.0 // final public class AcceptCBHolder implements org.omg.CORBA.portable.Streamable { public AcceptCB value; public AcceptCBHolder() { } public AcceptCBHolder(AcceptCB initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = AcceptCBHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { AcceptCBHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return AcceptCBHelper.type(); } }
6,561
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ProfileInfoSeqHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ProfileInfoSeq:1.0 // final public class ProfileInfoSeqHolder implements org.omg.CORBA.portable.Streamable { public ProfileInfo[] value; public ProfileInfoSeqHolder() { } public ProfileInfoSeqHolder(ProfileInfo[] initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ProfileInfoSeqHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ProfileInfoSeqHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ProfileInfoSeqHelper.type(); } }
6,562
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AccFactoryInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AccFactoryInfo:1.0 // /** * * Information on an OCI AccFactory object. * * @see AccFactory * **/ public interface AccFactoryInfo extends AccFactoryInfoOperations, org.omg.CORBA.Object { }
6,563
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConFactoryRegistryHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConFactoryRegistry:1.0 // final public class ConFactoryRegistryHelper { public static void insert(org.omg.CORBA.Any any, ConFactoryRegistry val) { any.insert_Object(val, type()); } public static ConFactoryRegistry extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "ConFactoryRegistry"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/ConFactoryRegistry:1.0"; } public static ConFactoryRegistry read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, ConFactoryRegistry val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static ConFactoryRegistry narrow(org.omg.CORBA.Object val) { try { return (ConFactoryRegistry)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,564
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/Version.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/Version:1.0 // /** * * The OCI version. If an interface or implementation changes in * an incompatible way, this version will be changed. * **/ public interface Version { String value = "1.0"; }
6,565
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/CloseCBHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/CloseCB:1.0 // final public class CloseCBHelper { public static void insert(org.omg.CORBA.Any any, CloseCB val) { any.insert_Object(val, type()); } public static CloseCB extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "CloseCB"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/CloseCB:1.0"; } public static CloseCB read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, CloseCB val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static CloseCB narrow(org.omg.CORBA.Object val) { try { return (CloseCB)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,566
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/NoSuchFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/NoSuchFactory:1.0 // /** * * No factory with the given plugin id could be found. * * @member id The plugin id. * **/ final public class NoSuchFactory extends org.omg.CORBA.UserException { private static final String _ob_id = "IDL:orb.yoko.apache.org/OCI/NoSuchFactory:1.0"; public NoSuchFactory() { super(_ob_id); } public NoSuchFactory(String id) { super(_ob_id); this.id = id; } public NoSuchFactory(String _reason, String id) { super(_ob_id + " " + _reason); this.id = id; } public String id; }
6,567
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/CloseCBHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/CloseCB:1.0 // final public class CloseCBHolder implements org.omg.CORBA.portable.Streamable { public CloseCB value; public CloseCBHolder() { } public CloseCBHolder(CloseCB initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = CloseCBHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { CloseCBHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return CloseCBHelper.type(); } }
6,568
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AcceptCBHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AcceptCB:1.0 // final public class AcceptCBHelper { public static void insert(org.omg.CORBA.Any any, AcceptCB val) { any.insert_Object(val, type()); } public static AcceptCB extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "AcceptCB"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/AcceptCB:1.0"; } public static AcceptCB read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, AcceptCB val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static AcceptCB narrow(org.omg.CORBA.Object val) { try { return (AcceptCB)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,569
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ProfileInfoSeqHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ProfileInfoSeq:1.0 // final public class ProfileInfoSeqHelper { public static void insert(org.omg.CORBA.Any any, ProfileInfo[] val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static ProfileInfo[] extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = orb.create_alias_tc(id(), "ProfileInfoSeq", orb.create_sequence_tc(0, ProfileInfoHelper.type())); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/ProfileInfoSeq:1.0"; } public static ProfileInfo[] read(org.omg.CORBA.portable.InputStream in) { ProfileInfo[] _ob_v; int len0 = in.read_ulong(); _ob_v = new ProfileInfo[len0]; for(int i0 = 0; i0 < len0; i0++) _ob_v[i0] = ProfileInfoHelper.read(in); return _ob_v; } public static void write(org.omg.CORBA.portable.OutputStream out, ProfileInfo[] val) { int len0 = val.length; out.write_ulong(len0); for(int i0 = 0; i0 < len0; i0++) ProfileInfoHelper.write(out, val[i0]); } }
6,570
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/AccFactoryOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/AccFactory:1.0 // /** * * An interface for an AccFactory object, which is used by CORBA * servers to create Acceptors. * * @see Acceptor * @see AccFactoryRegistry * **/ public interface AccFactoryOperations { // // IDL:orb.yoko.apache.org/OCI/AccFactory/id:1.0 // /** The plugin id. */ String id(); // // IDL:orb.yoko.apache.org/OCI/AccFactory/tag:1.0 // /** The profile id tag. */ int tag(); // // IDL:orb.yoko.apache.org/OCI/AccFactory/create_acceptor:1.0 // /** * * Create an Acceptor using the given configuration parameters. * Refer to the plug-in documentation for a description of the * configuration parameters supported for a particular protocol. * * @param params The configuration parameters. * * @return The new Acceptor. * * @exception org.apache.yoko.orb.OCI.InvalidParam If any of the parameters are invalid. * **/ Acceptor create_acceptor(String[] params) throws InvalidParam; // // IDL:orb.yoko.apache.org/OCI/AccFactory/change_key:1.0 // /** * * Change the object-key in the IOR profile for this given * protocol. * * @param ior The IOR * * @param key The new object key * **/ void change_key(org.omg.IOP.IORHolder ior, byte[] key); // // IDL:orb.yoko.apache.org/OCI/AccFactory/get_info:1.0 // /** * * Returns the information object associated with the Acceptor * factory. * * @return The Acceptor * **/ AccFactoryInfo get_info(); }
6,571
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConFactoryRegistryHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConFactoryRegistry:1.0 // final public class ConFactoryRegistryHolder implements org.omg.CORBA.portable.Streamable { public ConFactoryRegistry value; public ConFactoryRegistryHolder() { } public ConFactoryRegistryHolder(ConFactoryRegistry initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ConFactoryRegistryHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ConFactoryRegistryHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ConFactoryRegistryHelper.type(); } }
6,572
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/CloseCBSeqHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/CloseCBSeq:1.0 // final public class CloseCBSeqHolder implements org.omg.CORBA.portable.Streamable { public CloseCB[] value; public CloseCBSeqHolder() { } public CloseCBSeqHolder(CloseCB[] initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = CloseCBSeqHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { CloseCBSeqHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return CloseCBSeqHelper.type(); } }
6,573
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConFactorySeqHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConFactorySeq:1.0 // final public class ConFactorySeqHelper { public static void insert(org.omg.CORBA.Any any, ConFactory[] val) { org.omg.CORBA.portable.OutputStream out = any.create_output_stream(); write(out, val); any.read_value(out.create_input_stream(), type()); } public static ConFactory[] extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return read(any.create_input_stream()); else throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = orb.create_alias_tc(id(), "ConFactorySeq", orb.create_sequence_tc(0, ConFactoryHelper.type())); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/ConFactorySeq:1.0"; } public static ConFactory[] read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, ConFactory[] val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,574
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/ConnectCBSeqHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/ConnectCBSeq:1.0 // final public class ConnectCBSeqHolder implements org.omg.CORBA.portable.Streamable { public ConnectCB[] value; public ConnectCBSeqHolder() { } public ConnectCBSeqHolder(ConnectCB[] initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ConnectCBSeqHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ConnectCBSeqHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ConnectCBSeqHelper.type(); } }
6,575
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/CloseCB.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI; // // IDL:orb.yoko.apache.org/OCI/CloseCB:1.0 // /** * * An interface for a close callback object. * * @see TransportInfo * **/ public interface CloseCB extends CloseCBOperations, org.omg.CORBA.Object { }
6,576
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Plugin_impl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; import org.apache.yoko.orb.OCI.IIOP.PLUGIN_ID; import org.omg.CORBA.ORB; public final class Plugin_impl extends org.omg.CORBA.LocalObject implements org.apache.yoko.orb.OCI.Plugin { private org.omg.CORBA.ORB orb_; // The ORB private ListenerMap listenMap_; // list of listenPoints private final ConnectionHelper connectionHelper_; // SSL connection helper private final ExtendedConnectionHelper extendedConnectionHelper_; // ------------------------------------------------------------------ // Standard IDL to Java Mapping // ------------------------------------------------------------------ public String id() { return PLUGIN_ID.value; } public int tag() { return org.omg.IOP.TAG_INTERNET_IOP.value; } public void init_client(String[] params) { boolean keepAlive = true; int i = 0; while (i < params.length) { if (params[i].equals("--no-keepalive")) { keepAlive = false; i++; } else { throw new org.omg.CORBA.INITIALIZE("iiop: unknown client " + "parameter `" + params[i] + "'"); } } // // Install the ConFactory // try { org.omg.CORBA.Object obj = orb_ .resolve_initial_references("OCIConFactoryRegistry"); org.apache.yoko.orb.OCI.ConFactoryRegistry registry = org.apache.yoko.orb.OCI.ConFactoryRegistryHelper .narrow(obj); if (connectionHelper_ != null) { registry.add_factory(new ConFactory_impl(orb_, keepAlive, listenMap_, connectionHelper_)); } else { registry.add_factory(new ConFactory_impl(orb_, keepAlive, listenMap_, extendedConnectionHelper_)); } } catch (org.omg.CORBA.ORBPackage.InvalidName ex) { org.apache.yoko.orb.OB.Assert._OB_assert(ex); } catch (org.apache.yoko.orb.OCI.FactoryAlreadyExists ex) { throw new org.omg.CORBA.INITIALIZE("OCI IIOP plug-in already " + "installed"); } // // Install the "iiop" corbaloc URL protocol // try { org.omg.CORBA.Object obj = orb_ .resolve_initial_references("URLRegistry"); org.apache.yoko.orb.OB.URLRegistry registry = org.apache.yoko.orb.OB.URLRegistryHelper .narrow(obj); org.apache.yoko.orb.OB.URLScheme scheme = registry .find_scheme("corbaloc"); org.apache.yoko.orb.OB.Assert._OB_assert(scheme != null); org.apache.yoko.orb.OB.CorbalocURLScheme corbaloc = org.apache.yoko.orb.OB.CorbalocURLSchemeHelper .narrow(scheme); corbaloc.add_protocol(new CorbalocProtocol_impl()); } catch (org.omg.CORBA.ORBPackage.InvalidName ex) { org.apache.yoko.orb.OB.Assert._OB_assert(ex); } catch (org.apache.yoko.orb.OB.CorbalocURLSchemePackage.ProtocolAlreadyExists ex) { org.apache.yoko.orb.OB.Assert._OB_assert(ex); } } public void init_server(String[] params) { try { org.omg.CORBA.Object obj = orb_ .resolve_initial_references("OCIAccFactoryRegistry"); org.apache.yoko.orb.OCI.AccFactoryRegistry registry = org.apache.yoko.orb.OCI.AccFactoryRegistryHelper .narrow(obj); registry.add_factory(new AccFactory_impl(orb_, listenMap_, connectionHelper_, extendedConnectionHelper_)); } catch (org.omg.CORBA.ORBPackage.InvalidName ex) { org.apache.yoko.orb.OB.Assert._OB_assert(ex); } catch (org.apache.yoko.orb.OCI.FactoryAlreadyExists ex) { throw new org.omg.CORBA.INITIALIZE("OCI IIOP plug-in already " + "installed"); } } // ------------------------------------------------------------------ // Yoko internal functions // Application programs must not use these functions directly // ------------------------------------------------------------------ public Plugin_impl(org.omg.CORBA.ORB orb, ConnectionHelper helper) { orb_ = orb; connectionHelper_ = helper; extendedConnectionHelper_ = null; listenMap_ = new ListenerMap(); } public Plugin_impl(ORB orb, ExtendedConnectionHelper helper) { orb_ = orb; connectionHelper_ = null; extendedConnectionHelper_ = helper; listenMap_ = new ListenerMap(); } }
6,577
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/ConnectorInfoOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/ConnectorInfo:1.0 // import org.apache.yoko.orb.OCI.Connector; /** * * Information on an IIOP OCI Connector object. * * @see Connector * @see ConnectorInfo * **/ public interface ConnectorInfoOperations extends org.apache.yoko.orb.OCI.ConnectorInfoOperations { // // IDL:orb.yoko.apache.org/OCI/IIOP/ConnectorInfo/remote_addr:1.0 // /** The remote IP address to which this connector connects. */ String remote_addr(); // // IDL:orb.yoko.apache.org/OCI/IIOP/ConnectorInfo/remote_port:1.0 // /** The remote port to which this connector connects. */ short remote_port(); }
6,578
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/ConFactoryInfo_impl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.yoko.orb.OCI.IIOP.ConFactoryInfo; import org.apache.yoko.orb.OCI.IIOP.PLUGIN_ID; final class ConFactoryInfo_impl extends org.omg.CORBA.LocalObject implements ConFactoryInfo { // // All connect callback objects // private java.util.Vector connectCBVec_ = new java.util.Vector(); private ConnectionHelper connectionHelper_; // the helper for managing socket connections. // ------------------------------------------------------------------ // Standard IDL to Java Mapping // ------------------------------------------------------------------ public String id() { return PLUGIN_ID.value; } public int tag() { return org.omg.IOP.TAG_INTERNET_IOP.value; } public synchronized String describe() { String desc = "id: " + PLUGIN_ID.value; return desc; } public synchronized void add_connect_cb(org.apache.yoko.orb.OCI.ConnectCB cb) { int length = connectCBVec_.size(); for (int i = 0; i < length; i++) if (connectCBVec_.elementAt(i) == cb) return; // Already registered connectCBVec_.addElement(cb); } public synchronized void remove_connect_cb( org.apache.yoko.orb.OCI.ConnectCB cb) { int length = connectCBVec_.size(); for (int i = 0; i < length; i++) if (connectCBVec_.elementAt(i) == cb) { connectCBVec_.removeElementAt(i); return; } } // ------------------------------------------------------------------ // Yoko internal functions // Application programs must not use these functions directly // ------------------------------------------------------------------ synchronized org.apache.yoko.orb.OCI.ConnectCB[] _OB_getConnectCBSeq() { int length = connectCBVec_.size(); org.apache.yoko.orb.OCI.ConnectCB[] cbs = new org.apache.yoko.orb.OCI.ConnectCB[length]; for (int i = 0; i < length; i++) { org.apache.yoko.orb.OCI.ConnectCB cb = (org.apache.yoko.orb.OCI.ConnectCB) connectCBVec_ .elementAt(i); cbs[i] = cb; } return cbs; } }
6,579
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/AcceptorInfoOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/AcceptorInfo:1.0 // /** * * Information on an IIOP OCI Acceptor object. * * @see Acceptor * @see AcceptorInfo * **/ public interface AcceptorInfoOperations extends org.apache.yoko.orb.OCI.AcceptorInfoOperations { // // IDL:orb.yoko.apache.org/OCI/IIOP/AcceptorInfo/hosts:1.0 // /** Hostnames used for creation of IIOP object references. */ String[] hosts(); // // IDL:orb.yoko.apache.org/OCI/IIOP/AcceptorInfo/addr:1.0 // /** The local IP address on which this acceptor accepts. */ String addr(); // // IDL:orb.yoko.apache.org/OCI/IIOP/AcceptorInfo/port:1.0 // /** The local port on which this acceptor accepts. */ short port(); }
6,580
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Transport_impl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; import static org.apache.yoko.orb.OCI.IIOP.Exceptions.*; import static org.apache.yoko.orb.OB.MinorCodes.*; import org.apache.yoko.orb.OB.MinorCodes; import org.apache.yoko.orb.OCI.Acceptor; import org.apache.yoko.orb.OCI.SendReceiveMode; import org.omg.CORBA.COMM_FAILURE; import org.omg.CORBA.CompletionStatus; import org.omg.CORBA.NO_IMPLEMENT; import java.io.IOException; import java.io.InterruptedIOException; import java.net.Socket; import java.util.logging.Level; import java.util.logging.Logger; import static org.apache.yoko.orb.OCI.SendReceiveMode.*; final public class Transport_impl extends org.omg.CORBA.LocalObject implements org.apache.yoko.orb.OCI.Transport { // This data member must not be private because the info object // must be able to access it public final java.net.Socket socket_; // The socket private java.io.InputStream in_; // The socket's input stream private java.io.OutputStream out_; // The socket's output stream private volatile boolean shutdown_; // True if shutdown() was called private int soTimeout_ = 0; // The value for setSoTimeout() private TransportInfo_impl info_; // Transport information // the real logger backing instance. We use the interface class as the locator static final Logger logger = Logger.getLogger(org.apache.yoko.orb.OCI.Transport.class.getName()); // ------------------------------------------------------------------ // Private and protected member implementations // ------------------------------------------------------------------ private void setSoTimeout(int t) { if (soTimeout_ != t) { soTimeout_ = t; try { socket_.setSoTimeout(soTimeout_); } catch (java.net.SocketException ex) { logger.log(Level.FINE, "Socket setup error", ex); throw (COMM_FAILURE)new COMM_FAILURE( org.apache.yoko.orb.OB.MinorCodes .describeCommFailure(org.apache.yoko.orb.OB.MinorCodes.MinorSetSoTimeout) + ": socket error during setSoTimeout: " + ex.getMessage(), org.apache.yoko.orb.OB.MinorCodes.MinorSetSoTimeout, org.omg.CORBA.CompletionStatus.COMPLETED_NO).initCause(ex); } catch (java.lang.NullPointerException ex) { logger.log(Level.FINE, "Socket setup error", ex); throw (COMM_FAILURE)new COMM_FAILURE( org.apache.yoko.orb.OB.MinorCodes .describeCommFailure(org.apache.yoko.orb.OB.MinorCodes.MinorSetSoTimeout) + ": NullPointerException error during setSoTimeout: " + ex.getMessage(), org.apache.yoko.orb.OB.MinorCodes.MinorSetSoTimeout, org.omg.CORBA.CompletionStatus.COMPLETED_NO).initCause(ex); } } } private void setBlock(boolean block) { if (block) setSoTimeout(0); else setSoTimeout(1); } // // Shutdown the sending or receiving side of a socket. If how == 0, // shutdown the receiving side. If how == 1, shutdown the sending // side. If how == 2, shutdown both. // private void shutdownSocket() { try { try { socket_.shutdownInput(); } catch (UnsupportedOperationException e) { // if we're using an SSL connection, this is an unsupported operation. // just ignore the error and proceed to the close. } try { socket_.shutdownOutput(); } catch (UnsupportedOperationException e) { // if we're using an SSL connection, this is an unsupported operation. // just ignore the error and proceed to the close. } } catch (java.net.SocketException ex) { // // Some VMs (namely JRockit) raise a SocketException if // the socket has already been closed. // This exception can be ignored. // } catch (IOException ex) { logger.log(Level.FINE, "Socket shutdown error", ex); throw (InternalError)new InternalError().initCause(ex); } } // ------------------------------------------------------------------ // Standard IDL to Java Mapping // ------------------------------------------------------------------ public String id() { return PLUGIN_ID.value; } public int tag() { return org.omg.IOP.TAG_INTERNET_IOP.value; } public SendReceiveMode mode() { return SendReceive; } public int handle() { throw new NO_IMPLEMENT(); } public void close() { // // I must set socket_ to null *before* the close or the code // below, to avoid a race condition with send/receive // // // Close the socket // shutdownSocket(); // This helps to unblock threads // blocking in recv() try { socket_.close(); } catch (IOException ex) { } } public void shutdown() { logger.info("shutdown: " + this); shutdown_ = true; shutdownSocket(); // Shutdown send side only // blocking in recv() try { socket_.close(); } catch (IOException ex) { } } public void receive(org.apache.yoko.orb.OCI.Buffer buf, boolean block) { setBlock(block); logger.fine("receiving a buffer of " + buf.rest_length() + " from " + socket_ + " using transport " + this); while (!buf.is_full()) { try { int result = in_.read(buf.data(), buf.pos(), buf.rest_length()); if (result <= 0) { throw new COMM_FAILURE(describeCommFailure(MinorRecvZero), MinorRecvZero, CompletionStatus.COMPLETED_NO); } buf.advance(result); } catch (InterruptedIOException ex) { logger.log(Level.FINE, "Received interrupted exception", ex); buf.advance(ex.bytesTransferred); if (!block) return; if (shutdown_) throw asCommFailure(ex, MinorCodes.MinorRecv, "Interrupted I/O exception during shutdown"); } catch (java.io.IOException ex) { logger.log(Level.FINE, "Socket read error", ex); throw asCommFailure(ex, MinorCodes.MinorRecv, "I/O error during read"); } catch (java.lang.NullPointerException ex) { logger.log(Level.FINE, "Socket read error", ex); throw asCommFailure(ex, MinorCodes.MinorRecv, "NullPointerException during read"); } } } public boolean receive_detect(org.apache.yoko.orb.OCI.Buffer buf, boolean block) { setBlock(block); while (!buf.is_full()) { try { int result = in_.read(buf.data(), buf.pos(), buf.rest_length()); if (result <= 0) return false; buf.advance(result); } catch (java.io.InterruptedIOException ex) { buf.advance(ex.bytesTransferred); if (!block) return true; } catch (java.io.IOException ex) { return false; } catch (java.lang.NullPointerException ex) { return false; } } return true; } public void receive_timeout(org.apache.yoko.orb.OCI.Buffer buf, int t) { if (t < 0) throw new InternalError(); if (t == 0) { receive(buf, false); return; } setSoTimeout(t); while (!buf.is_full()) { try { int result = in_.read(buf.data(), buf.pos(), buf.rest_length()); if (result <= 0) { throw new COMM_FAILURE(describeCommFailure(MinorRecvZero), MinorRecvZero, CompletionStatus.COMPLETED_NO); } buf.advance(result); } catch (java.io.InterruptedIOException ex) { buf.advance(ex.bytesTransferred); return; } catch (java.io.IOException ex) { logger.log(Level.FINE, "Socket read error", ex); throw asCommFailure(ex, MinorRecv, "I/O error during read"); } catch (java.lang.NullPointerException ex) { logger.log(Level.FINE, "Socket read error", ex); throw asCommFailure(ex, MinorRecv, "NullPointerException during read"); } } } public boolean receive_timeout_detect(org.apache.yoko.orb.OCI.Buffer buf, int t) { if (t < 0) throw new InternalError(); if (t == 0) return receive_detect(buf, false); setSoTimeout(t); while (!buf.is_full()) { try { int result = in_.read(buf.data(), buf.pos(), buf.rest_length()); if (result <= 0) return false; buf.advance(result); } catch (java.io.InterruptedIOException ex) { buf.advance(ex.bytesTransferred); return true; } catch (java.io.IOException ex) { return false; } catch (java.lang.NullPointerException ex) { return false; } } return true; } public void send(org.apache.yoko.orb.OCI.Buffer buf, boolean block) { setBlock(block); logger.fine("Sending buffer of size " + buf.rest_length() + " to " + socket_); while (!buf.is_full()) { try { out_.write(buf.data(), buf.pos(), buf.rest_length()); out_.flush(); buf.pos(buf.length()); } catch (java.io.InterruptedIOException ex) { buf.advance(ex.bytesTransferred); if (!block) return; } catch (java.io.IOException ex) { logger.log(Level.FINE, "Socket write error", ex); throw asCommFailure(ex, MinorSend, "I/O error during write"); } catch (java.lang.NullPointerException ex) { logger.log(Level.FINE, "Socket write error", ex); throw asCommFailure(ex, MinorSend, "NullPointerException during write"); } } } public boolean send_detect(org.apache.yoko.orb.OCI.Buffer buf, boolean block) { setBlock(block); while (!buf.is_full()) { try { out_.write(buf.data(), buf.pos(), buf.rest_length()); out_.flush(); buf.pos(buf.length()); } catch (java.io.InterruptedIOException ex) { buf.advance(ex.bytesTransferred); if (!block) return true; } catch (java.io.IOException ex) { return false; } catch (java.lang.NullPointerException ex) { return false; } } return true; } public void send_timeout(org.apache.yoko.orb.OCI.Buffer buf, int t) { if (t < 0) throw new InternalError(); if (t == 0) { send(buf, false); return; } setSoTimeout(t); while (!buf.is_full()) { try { out_.write(buf.data(), buf.pos(), buf.rest_length()); out_.flush(); buf.pos(buf.length()); } catch (java.io.InterruptedIOException ex) { buf.advance(ex.bytesTransferred); return; } catch (java.io.IOException ex) { logger.log(Level.FINE, "Socket write error", ex); throw asCommFailure(ex, MinorSend, "I/O error during write"); } catch (java.lang.NullPointerException ex) { logger.log(Level.FINE, "Socket write error", ex); throw asCommFailure(ex, MinorSend, "NullPointerException during write"); } } } public boolean send_timeout_detect(org.apache.yoko.orb.OCI.Buffer buf, int t) { if (t < 0) throw new InternalError(); if (t == 0) return send_detect(buf, false); setSoTimeout(t); while (!buf.is_full()) { try { out_.write(buf.data(), buf.pos(), buf.rest_length()); out_.flush(); buf.pos(buf.length()); } catch (java.io.InterruptedIOException ex) { buf.advance(ex.bytesTransferred); return true; } catch (java.io.IOException ex) { return false; } catch (java.lang.NullPointerException ex) { return false; } } return true; } public org.apache.yoko.orb.OCI.TransportInfo get_info() { return info_; } // ------------------------------------------------------------------ // Yoko internal functions // Application programs must not use these functions directly // ------------------------------------------------------------------ public Transport_impl(java.net.Socket socket, ListenerMap lm) { socket_ = socket; shutdown_ = false; // // Cache the streams associated with the socket, for // performance reasons // try { in_ = socket_.getInputStream(); out_ = socket_.getOutputStream(); } catch (java.io.IOException ex) { logger.log(Level.FINE, "Socket setup error", ex); throw asCommFailure(ex, MinorSocket, "unable to obtain socket InputStream"); } // // Since the Constructor of TransportInfo uses this object create // it after all members are initialized // info_ = new TransportInfo_impl(this, lm); } public Transport_impl(Acceptor acceptor, Socket socket, ListenerMap lm) { socket_ = socket; shutdown_ = false; logger.fine("Creating new transport for socket " + socket); // // Cache the streams associated with the socket, for // performance reasons // try { in_ = socket_.getInputStream(); out_ = socket_.getOutputStream(); } catch (java.io.IOException ex) { logger.log(Level.FINE, "Socket setup error", ex); throw asCommFailure(ex, MinorSocket, "unable to obtain socket InputStream"); } // // Since the Constructor of TransportInfo uses this object create // it after all members are initialized // info_ = new TransportInfo_impl(this, acceptor, lm); } public void finalize() throws Throwable { if (socket_ != null) close(); super.finalize(); } public String toString() { return "iiop transport using socket " + socket_; } }
6,581
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/ConFactoryInfoHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/ConFactoryInfo:1.0 // final public class ConFactoryInfoHolder implements org.omg.CORBA.portable.Streamable { public ConFactoryInfo value; public ConFactoryInfoHolder() { } public ConFactoryInfoHolder(ConFactoryInfo initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ConFactoryInfoHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ConFactoryInfoHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ConFactoryInfoHelper.type(); } }
6,582
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Util.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; import org.apache.yoko.orb.CORBA.InputStream; import org.apache.yoko.orb.CORBA.OutputStream; import org.apache.yoko.orb.OCI.Buffer; import org.apache.yoko.orb.OCI.ProfileInfo; import org.apache.yoko.orb.OCI.ProfileInfoHolder; import org.apache.yoko.orb.OCI.ProfileInfoSeqHolder; import org.omg.CORBA.Any; import org.omg.CSIIOP.CompoundSecMech; import org.omg.CSIIOP.CompoundSecMechList; import org.omg.CSIIOP.CompoundSecMechListHelper; import org.omg.CSIIOP.TAG_CSI_SEC_MECH_LIST; import org.omg.CSIIOP.TAG_TLS_SEC_TRANS; import org.omg.CSIIOP.TLS_SEC_TRANS; import org.omg.CSIIOP.TLS_SEC_TRANSHelper; import org.omg.CSIIOP.TransportAddress; import org.omg.IIOP.ProfileBody_1_0; import org.omg.IIOP.ProfileBody_1_0Helper; import org.omg.IOP.*; import org.omg.IOP.CodecPackage.FormatMismatch; import org.omg.IOP.CodecPackage.TypeMismatch; import java.net.InetAddress; import java.util.ArrayList; import java.util.Arrays; import java.util.List; final public class Util { static public IOR createIOR(String host, int port, String id, ProfileInfo profileInfo) { IOR ior = new IOR(); ior.type_id = id; ior.profiles = new org.omg.IOP.TaggedProfile[1]; ior.profiles[0] = new org.omg.IOP.TaggedProfile(); ior.profiles[0].tag = TAG_INTERNET_IOP.value; if (profileInfo.major == 1 && profileInfo.minor == 0) { ProfileBody_1_0 body = new ProfileBody_1_0(); body.iiop_version = new org.omg.IIOP.Version((byte) 1, (byte) 0); body.host = host; if (port >= 0x8000) body.port = (short) (port - 0xffff - 1); else body.port = (short) port; body.object_key = profileInfo.key; Buffer buf = new Buffer(); OutputStream out = new OutputStream(buf); out._OB_writeEndian(); ProfileBody_1_0Helper.write(out, body); ior.profiles[0].profile_data = new byte[buf.length()]; System.arraycopy(buf.data(), 0, ior.profiles[0].profile_data, 0, buf.length()); } else { org.omg.IIOP.ProfileBody_1_1 body = new org.omg.IIOP.ProfileBody_1_1(); body.iiop_version = new org.omg.IIOP.Version(profileInfo.major, profileInfo.minor); body.host = host; if (port >= 0x8000) body.port = (short) (port - 0xffff - 1); else body.port = (short) port; body.object_key = profileInfo.key; body.components = profileInfo.components; Buffer buf = new Buffer(); OutputStream out = new OutputStream(buf); out._OB_writeEndian(); org.omg.IIOP.ProfileBody_1_1Helper.write(out, body); ior.profiles[0].profile_data = new byte[buf.length()]; System.arraycopy(buf.data(), 0, ior.profiles[0].profile_data, 0, buf.length()); } return ior; } static public IOR createIOR(IOR ior, String id, byte[] key) { // // Extract the IIOP profile information from the provided IOR // int profile; for (profile = 0; profile < ior.profiles.length; profile++) if (ior.profiles[profile].tag == TAG_INTERNET_IOP.value) break; // TODO: Internal error? org.apache.yoko.orb.OB.Assert._OB_assert(profile < ior.profiles.length); Buffer buf = new Buffer( ior.profiles[profile].profile_data, ior.profiles[profile].profile_data.length); InputStream in = new InputStream(buf, 0, false, null, null); in._OB_readEndian(); ProfileBody_1_0 body = ProfileBody_1_0Helper .read(in); ProfileInfo profileInfo = new ProfileInfo(); profileInfo.key = key; profileInfo.major = body.iiop_version.major; profileInfo.minor = body.iiop_version.minor; profileInfo.components = new TaggedComponent[0]; return createIOR(body.host, body.port, id, profileInfo); } static public boolean extractProfileInfo(IOR ior, ProfileInfoHolder profileInfo) { ProfileInfoSeqHolder profileInfoSeq = new ProfileInfoSeqHolder(); profileInfoSeq.value = new ProfileInfo[0]; extractAllProfileInfos(ior, profileInfoSeq, false, null, 0, false, null); if (profileInfoSeq.value.length > 0) { profileInfo.value = profileInfoSeq.value[0]; return true; } return false; } static public boolean hostMatch(String host1, String host2, boolean matchLoopback) { // // Direct host name comparison // if (!host1.equals(host2)) { // // // Direct host name comparision failed - must look up // addresses to be really sure if the hosts differ // try { InetAddress addr1 = InetAddress.getByName(host1); InetAddress addr2 = InetAddress.getByName(host2); if (!addr1.equals(addr2)) { // // Address comparison failed - shall I extract // the key if the profile body contains the // loopback address? // if (matchLoopback) { InetAddress loopback = InetAddress.getByName("127.0.0.1"); if (!addr2.equals(loopback)) return false; } else return false; } } catch (java.net.UnknownHostException ex) { // // Continue on hostname lookup failure // return false; } } return true; } static public void extractAllProfileInfos(IOR ior, ProfileInfoSeqHolder profileInfoSeq, boolean performMatch, String host, int port, boolean matchLoopback, Codec codec) { short portNo = (short) port; List<ProfileInfo> list = new ArrayList<>(); for (int i = 0; i < ior.profiles.length; i++) { if (ior.profiles[i].tag != TAG_INTERNET_IOP.value) continue; // // Get the IIOP profile body // byte[] data = ior.profiles[i].profile_data; Buffer buf = new Buffer(data, data.length); InputStream in = new InputStream(buf, 0, false, null, null); in._OB_readEndian(); ProfileBody_1_0 body = ProfileBody_1_0Helper.read(in); // // Read components if the IIOP version is > 1.0 // TaggedComponent[] components; if (body.iiop_version.major > 1 || body.iiop_version.minor > 0) { int len = in.read_ulong(); components = new TaggedComponent[len]; for (int j = 0; j < len; j++) { components[j] = TaggedComponentHelper.read(in); } } else { components = new TaggedComponent[0]; } // add this profile to the list unless // A) the caller requested matching // B) the profile doesn't match the supplied host and port if (!!!performMatch || hostAndPortMatch(host, portNo, body.host, body.port, matchLoopback) || taggedComponentsMatch(components, host, portNo, codec, matchLoopback)) { ProfileInfo profileInfo = new ProfileInfo(); profileInfo.key = body.object_key; profileInfo.minor = body.iiop_version.minor; profileInfo.major = body.iiop_version.major; profileInfo.id = ior.profiles[i].tag; profileInfo.index = i; profileInfo.components = components; list.add(profileInfo); } } if (!!!list.isEmpty()) { List<ProfileInfo> bigList = new ArrayList<>(Arrays.asList(profileInfoSeq.value)); bigList.addAll(list); profileInfoSeq.value = bigList.toArray(profileInfoSeq.value); } } private static boolean hostAndPortMatch(String host, short portNo, String bodyHost, short bodyPort, boolean matchLoopback) { return portNo == bodyPort && hostMatch(host, bodyHost, matchLoopback); } private static boolean taggedComponentsMatch(TaggedComponent[] components, String host, short port, Codec codec, boolean matchLoopback) { for (final TaggedComponent component : components) { if (component.tag == TAG_ALTERNATE_IIOP_ADDRESS.value) { byte[] d = component.component_data; Buffer b = new Buffer(d, d.length); InputStream s = new InputStream(b, 0, false, null, null); s._OB_readEndian(); String altHost = s.read_string(); short altPort = s.read_ushort(); if (hostAndPortMatch(host, port, altHost, altPort, matchLoopback)) { return true; } } else if (component.tag == TAG_CSI_SEC_MECH_LIST.value) { Any any; try { any = codec.decode_value(component.component_data, CompoundSecMechListHelper.type()); CompoundSecMechList csml = CompoundSecMechListHelper.extract(any); for (CompoundSecMech csm : csml.mechanism_list) { TaggedComponent tc = csm.transport_mech; if (tc.tag == TAG_TLS_SEC_TRANS.value) { Any tstAny = codec.decode_value(tc.component_data, TLS_SEC_TRANSHelper.type()); TLS_SEC_TRANS tst = TLS_SEC_TRANSHelper.extract(tstAny); TransportAddress[] transportAddresses = tst.addresses; if (transportAddressesMatch(transportAddresses, host, port, matchLoopback)) return true; } } } catch (FormatMismatch | TypeMismatch ignored) { } } } return false; } private static boolean transportAddressesMatch(TransportAddress[] addrs, String host, short port, boolean loopbackMatches) { for (TransportAddress addr: addrs) { final short addrPort = addr.port; if (hostAndPortMatch(host, port, addr.host_name, addrPort, loopbackMatches)) { return true; } } return false; } static public boolean equivalent(IOR ior1, IOR ior2) { int p1, p2, b1, b2; int cnt1 = 0, cnt2 = 0; ProfileBody_1_0[] bodies1; ProfileBody_1_0[] bodies2; // // Calculate number of IIOP profiles in ior1 // for (p1 = 0; p1 < ior1.profiles.length; p1++) if (ior1.profiles[p1].tag == TAG_INTERNET_IOP.value) cnt1++; // // Calculate number of IIOP profiles in ior2 // for (p2 = 0; p2 < ior2.profiles.length; p2++) if (ior2.profiles[p2].tag == TAG_INTERNET_IOP.value) cnt2++; // // Return false now if the number of IIOP profile bodies do not // match // if (cnt1 != cnt2) return false; // // Create an array with all IIOP profile bodies of ior1 // bodies1 = new ProfileBody_1_0[cnt1]; for (p1 = 0, b1 = 0; p1 < ior1.profiles.length; p1++) if (ior1.profiles[p1].tag == TAG_INTERNET_IOP.value) { byte[] data = ior1.profiles[p1].profile_data; Buffer buf = new Buffer( data, data.length); InputStream in = new InputStream(buf, 0, false, null, null); in._OB_readEndian(); bodies1[b1++] = ProfileBody_1_0Helper.read(in); } if (b1 != cnt1) throw new InternalError(); // // Create an array with all IIOP profile bodies of ior2 // bodies2 = new ProfileBody_1_0[cnt2]; for (p2 = 0, b2 = 0; p2 < ior2.profiles.length; p2++) if (ior2.profiles[p2].tag == TAG_INTERNET_IOP.value) { byte[] data = ior2.profiles[p2].profile_data; Buffer buf = new Buffer( data, data.length); InputStream in = new InputStream(buf, 0, false, null, null); in._OB_readEndian(); bodies2[b2++] = ProfileBody_1_0Helper.read(in); } if (b2 != cnt2) throw new InternalError(); // // Check for profile body matches // for (b1 = 0; b1 < cnt1; b1++) { for (b2 = 0; b2 < cnt2; b2++) { if (bodies2[b2] == null) continue; // // Compare profile bodies // if (compareBodies(bodies1[b1], bodies2[b2])) { // // OK, found a match // bodies1[b1] = null; bodies2[b2] = null; break; } } } // // Check whether there are any unmatched IIOP profile bodies // for (b1 = 0; b1 < cnt1; b1++) if (bodies1[b1] != null) return false; for (b2 = 0; b2 < cnt2; b2++) if (bodies2[b2] != null) return false; return true; } static boolean compareBodies(ProfileBody_1_0 body1, ProfileBody_1_0 body2) { // // Compare versions // if (body1.iiop_version.major != body2.iiop_version.major || body1.iiop_version.minor != body2.iiop_version.minor) return false; // // Compare ports // if (body1.port != body2.port) return false; // // Compare object keys // if (body1.object_key.length != body2.object_key.length) return false; int k; for (k = 0; k < body1.object_key.length; k++) if (body1.object_key[k] != body2.object_key[k]) return false; // // Direct host name comparison // if (!body1.host.equals(body2.host)) { // // Direct host name comparision failed - must look up // addresses to be really sure if the hosts differ // try { InetAddress addr1 = InetAddress .getByName(body1.host); InetAddress addr2 = InetAddress .getByName(body2.host); if (!addr1.equals(addr2)) return false; } catch (java.net.UnknownHostException ex) { // // Return false on hostname lookup failure // return false; } } // // OK, found a match // return true; } // // Calculate a hash for an IOR containing IIOP profiles // static public int hash(IOR ior, int maximum) { int hash = 0; for (TaggedProfile profile : ior.profiles) { if (profile.tag == TAG_INTERNET_IOP.value) continue; // // Get the first IIOP profile body // byte[] data = profile.profile_data; Buffer buf = new Buffer(data, data.length); InputStream in = new InputStream(buf, 0, false, null, null); in._OB_readEndian(); ProfileBody_1_0 body = ProfileBody_1_0Helper.read(in); // // Add port to hash // hash ^= body.port; // // Add object key to hash // for (int j = 0; j + 1 < body.object_key.length; j += 2) hash ^= body.object_key[j + 1] * 256 + body.object_key[j]; } return hash % (maximum + 1); } }
6,583
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/TransportInfo_impl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; import java.net.Socket; import java.util.Objects; import org.apache.yoko.orb.CORBA.InputStream; import org.apache.yoko.orb.OB.Net; import org.apache.yoko.orb.OCI.*; import org.omg.BiDirPolicy.BIDIRECTIONAL_POLICY_TYPE; import org.omg.BiDirPolicy.BOTH; import org.omg.BiDirPolicy.BidirectionalPolicy; import org.omg.BiDirPolicy.BidirectionalPolicyHelper; import org.omg.CORBA.LocalObject; import org.omg.CORBA.NO_RESOURCES; import org.omg.CORBA.Policy; import org.omg.IIOP.BiDirIIOPServiceContext; import org.omg.IIOP.BiDirIIOPServiceContextHelper; import org.omg.IIOP.ListenPoint; import org.omg.IOP.BI_DIR_IIOP; import org.omg.IOP.ServiceContext; import org.omg.IOP.TAG_INTERNET_IOP; public final class TransportInfo_impl extends LocalObject implements TransportInfo { private enum Origin{CLIENT(CLIENT_SIDE.value), SERVER(SERVER_SIDE.value); final short value; Origin(int v) {value = (short)v;}} private final Socket socket; private final Origin origin; private final ListenerMap listenMap_; private volatile ListenPoint[] listenPoints_ = null; // ------------------------------------------------------------------ // Standard IDL to Java Mapping // ------------------------------------------------------------------ public String id() { return PLUGIN_ID.value; } public int tag() { return TAG_INTERNET_IOP.value; } public short origin() { return origin.value; } public synchronized String describe() { String desc = "id: " + PLUGIN_ID.value; String localAddr = addr(); short localPort = port(); desc += "\nlocal address: "; desc += localAddr; desc += ":"; desc += (localPort < 0 ? 0xffff + (int) localPort + 1 : localPort); String remoteAddr = remote_addr(); short remotePort = remote_port(); desc += "\nremote address: "; desc += remoteAddr; desc += ":"; desc += (remotePort < 0 ? 0xffff + (int) remotePort + 1 : remotePort); return desc; } public Socket getSocket() {return socket;} public String addr() {return socket.getLocalAddress().getHostAddress();} public short port() {return (short)socket.getLocalPort();} public String remote_addr() {return socket.getInetAddress().getHostAddress();} public short remote_port() {return (short)socket.getPort();} public ServiceContext[] get_service_contexts(Policy[] policies) { ServiceContext[] scl; boolean bHaveBidir = false; for (Policy policy : policies) { if (policy.policy_type() == BIDIRECTIONAL_POLICY_TYPE.value) { BidirectionalPolicy p = BidirectionalPolicyHelper .narrow(policy); if (p.value() == BOTH.value) bHaveBidir = true; break; } } if (bHaveBidir) { BiDirIIOPServiceContext biDirCtxt = new BiDirIIOPServiceContext(); biDirCtxt.listen_points = listenMap_.getListenPoints(); org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(); org.apache.yoko.orb.CORBA.OutputStream out = new org.apache.yoko.orb.CORBA.OutputStream( buf); out._OB_writeEndian(); org.omg.IIOP.BiDirIIOPServiceContextHelper.write(out, biDirCtxt); // // Fill in the bidir service context // org.omg.IOP.ServiceContext context = new org.omg.IOP.ServiceContext(); context.context_id = org.omg.IOP.BI_DIR_IIOP.value; context.context_data = buf.data(); // // Create and fill the return context list // scl = new org.omg.IOP.ServiceContext[1]; scl[0] = context; return scl; } // // we don't have a bidir service context so return an array of // length 0 // scl = new org.omg.IOP.ServiceContext[0]; return scl; } public void handle_service_contexts(org.omg.IOP.ServiceContext[] contexts) { for (ServiceContext context : contexts) { if (context.context_id == BI_DIR_IIOP.value) { byte[] pOct = context.context_data; int len = context.context_data.length; Buffer buf = new Buffer(pOct, len); InputStream in = new InputStream(buf, 0, false); in._OB_readEndian(); // // unmarshal the octets back to the bidir format // BiDirIIOPServiceContext biDirCtxt = BiDirIIOPServiceContextHelper.read(in); // // save the listening points in the transport // _OB_setListenPoints(biDirCtxt.listen_points); break; } } } public synchronized boolean received_bidir_SCL() { return listenPoints_ != null && (listenPoints_.length > 0); } public synchronized boolean endpoint_alias_match(org.apache.yoko.orb.OCI.ConnectorInfo connInfo) { // // we only deal with Connectors that are of our specific type, // namely IIOP connectors (and ConnectorInfos) // org.apache.yoko.orb.OCI.IIOP.ConnectorInfo_impl infoImpl; try { infoImpl = (org.apache.yoko.orb.OCI.IIOP.ConnectorInfo_impl) connInfo; } catch (ClassCastException ex) { return false; } // // compare the endpoint information in this connector with the // various endpoint inforamtion in our listenMap_ // if (listenPoints_ == null) return false; short port = infoImpl.remote_port(); String host = infoImpl.remote_addr(); for (ListenPoint aListenPoints_ : listenPoints_) { if ((aListenPoints_.port == port) && Net.CompareHosts( aListenPoints_.host, host)) return true; } return false; } public synchronized org.omg.IIOP.ListenPoint[] _OB_getListenPoints() { return listenPoints_; } public synchronized void _OB_setListenPoints(org.omg.IIOP.ListenPoint[] lp) { listenPoints_ = lp; } // ------------------------------------------------------------------ // Yoko internal functions // Application programs must not use these functions directly // ------------------------------------------------------------------ private TransportInfo_impl(Socket socket, Origin origin, ListenerMap lm) { this.socket = socket; this.origin = origin; listenMap_ = lm; } // client-side constructor TransportInfo_impl(Transport_impl transport, ListenerMap lm) { this(transport.socket_, Origin.CLIENT, lm); } //server-side constructor TransportInfo_impl(Transport_impl transport, Acceptor acceptor, ListenerMap lm) { this(transport.socket_, Origin.SERVER, lm); } }
6,584
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/AcceptorInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/AcceptorInfo:1.0 // /** * * Information on an IIOP OCI Acceptor object. * * @see Acceptor * @see AcceptorInfo * **/ public interface AcceptorInfo extends AcceptorInfoOperations, org.apache.yoko.orb.OCI.AcceptorInfo { }
6,585
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/ConFactoryInfoHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/ConFactoryInfo:1.0 // final public class ConFactoryInfoHelper { public static void insert(org.omg.CORBA.Any any, ConFactoryInfo val) { any.insert_Object(val, type()); } public static ConFactoryInfo extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "ConFactoryInfo"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/IIOP/ConFactoryInfo:1.0"; } public static ConFactoryInfo read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, ConFactoryInfo val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static ConFactoryInfo narrow(org.omg.CORBA.Object val) { try { return (ConFactoryInfo)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,586
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/AccFactoryInfoOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/AccFactoryInfo:1.0 // /** * * Information on an IIOP OCI Acceptor Factory object. * * @see AccFactory * **/ public interface AccFactoryInfoOperations extends org.apache.yoko.orb.OCI.AccFactoryInfoOperations { }
6,587
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/AccFactoryInfoHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/AccFactoryInfo:1.0 // final public class AccFactoryInfoHelper { public static void insert(org.omg.CORBA.Any any, AccFactoryInfo val) { any.insert_Object(val, type()); } public static AccFactoryInfo extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "AccFactoryInfo"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/IIOP/AccFactoryInfo:1.0"; } public static AccFactoryInfo read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, AccFactoryInfo val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static AccFactoryInfo narrow(org.omg.CORBA.Object val) { try { return (AccFactoryInfo)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,588
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/AccFactoryInfoHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/AccFactoryInfo:1.0 // final public class AccFactoryInfoHolder implements org.omg.CORBA.portable.Streamable { public AccFactoryInfo value; public AccFactoryInfoHolder() { } public AccFactoryInfoHolder(AccFactoryInfo initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = AccFactoryInfoHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { AccFactoryInfoHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return AccFactoryInfoHelper.type(); } }
6,589
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Connector_impl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; import static org.apache.yoko.orb.OCI.IIOP.Exceptions.*; import java.util.Arrays; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.yoko.orb.OCI.ConnectCB; import org.apache.yoko.orb.OCI.Connector; import org.apache.yoko.orb.OCI.ProfileInfo; import org.apache.yoko.orb.OCI.ProfileInfoHolder; import org.omg.CORBA.Policy; import org.omg.CSIIOP.TAG_CSI_SEC_MECH_LIST; import org.omg.IOP.Codec; import org.omg.IOP.IOR; import org.omg.IOP.TaggedComponent; final class Connector_impl extends org.omg.CORBA.LocalObject implements Connector { // the real logger backing instance. We use the interface class as the locator static final Logger logger = Logger.getLogger(Connector.class.getName()); private final IOR ior_; // the target IOR we're connecting with private final Policy[] policies_; // the policies used for the connection. private boolean keepAlive_; // The keepalive flag private final ConnectorInfo_impl info_; // Connector information private java.net.Socket socket_; // The socket private ListenerMap listenMap_; private final ConnectionHelper connectionHelper_; private byte[] transportInfo; private final ExtendedConnectionHelper extendedConnectionHelper_; private final Codec codec_; // ------------------------------------------------------------------ // Private and protected functions // ------------------------------------------------------------------ private void close() { logger.fine("Closing connection to host=" + this.info_.getHost() + ", port=" + this.info_.getPort()); // // Close the socket // try { socket_.close(); socket_ = null; } catch (java.io.IOException ex) { //ignore } } // ------------------------------------------------------------------ // Standard IDL to Java Mapping // ------------------------------------------------------------------ public String id() { return PLUGIN_ID.value; } public int tag() { return org.omg.IOP.TAG_INTERNET_IOP.value; } public org.apache.yoko.orb.OCI.Transport connect() { if (socket_ != null) close(); // // Get the address // java.net.InetAddress address; try { address = java.net.InetAddress.getByName(this.info_.getHost()); } catch (java.net.UnknownHostException ex) { logger.log(Level.FINE, "Host resolution error", ex); throw asCommFailure(ex); } // // Create socket and connect // try { logger.fine("Connecting to host=" + address + ", port=" + this.info_.getPort()); if (connectionHelper_ != null) { socket_ = connectionHelper_.createSocket(ior_, policies_, address, this.info_.getPort()); } else { socket_ = extendedConnectionHelper_.createSocket(ior_, policies_, address, this.info_.getPort()); } logger.fine("Connection created with socket " + socket_); } catch (java.net.ConnectException ex) { logger.log(Level.FINE, "Error connecting to host=" + address + ", port=" + this.info_.getPort(), ex); throw new org.omg.CORBA.TRANSIENT( org.apache.yoko.orb.OB.MinorCodes .describeTransient(org.apache.yoko.orb.OB.MinorCodes.MinorConnectFailed) + "Error connecting to host=" + address + ", port=" + this.info_.getPort() + ": " + ex.getMessage(), org.apache.yoko.orb.OB.MinorCodes.MinorConnectFailed, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } catch (java.io.IOException ex) { logger.log(Level.FINE, "Error connecting to host=" + address + ", port=" + this.info_.getPort(), ex); throw (org.omg.CORBA.COMM_FAILURE)new org.omg.CORBA.COMM_FAILURE( org.apache.yoko.orb.OB.MinorCodes .describeCommFailure(org.apache.yoko.orb.OB.MinorCodes.MinorSocket) + "Error connecting to host=" + address + ", port=" + this.info_.getPort() + ": " + ex.getMessage(), org.apache.yoko.orb.OB.MinorCodes.MinorSocket, org.omg.CORBA.CompletionStatus.COMPLETED_NO).initCause(ex); } // // Set TCP_NODELAY and SO_KEEPALIVE options // try { socket_.setTcpNoDelay(true); if (keepAlive_) socket_.setKeepAlive(true); } catch (java.net.SocketException ex) { logger.log(Level.FINE, "Socket setup error", ex); try { socket_.close(); } catch (java.io.IOException e) { } throw Exceptions.asCommFailure(ex); } // // Create new transport // org.apache.yoko.orb.OCI.Transport tr = null; try { tr = new Transport_impl(socket_, listenMap_); socket_ = null; } catch (org.omg.CORBA.SystemException ex) { logger.log(Level.FINE, "Transport creation error", ex); try { socket_.close(); } catch (java.io.IOException e) { } throw ex; } // // Call callbacks // org.apache.yoko.orb.OCI.TransportInfo trInfo = tr.get_info(); try { info_._OB_callConnectCB(trInfo); } catch (org.omg.CORBA.SystemException ex) { logger.log(Level.FINE, "Connection callback error", ex); tr.close(); throw ex; } // // Return new transport // return tr; } // // Helper class for connect_timeout() // private class ConnectTimeout extends Thread { private java.net.InetAddress address_ = null; private java.net.Socket so_ = null; private java.io.IOException ex_ = null; private boolean finished_ = false; private boolean timeout_ = false; ConnectTimeout(java.net.InetAddress address) { address_ = address; } public void run() { try { if (connectionHelper_ != null) { so_ = connectionHelper_.createSocket(ior_, policies_, address_, Connector_impl.this.info_.getPort()); } else { so_ = extendedConnectionHelper_.createSocket(ior_, policies_, address_, Connector_impl.this.info_.getPort()); } } catch (java.io.IOException ex) { logger.log(Level.FINE, "Socket creation error", ex); ex_ = ex; } synchronized (this) { if (timeout_) { if (so_ != null) { try { so_.close(); } catch (java.io.IOException ex) { } so_ = null; } } else { finished_ = true; ConnectTimeout.this.notify(); } } } synchronized java.net.Socket waitForConnect(int t) throws java.io.IOException { while (!finished_) { try { ConnectTimeout.this.wait(t); } catch (InterruptedException ex) { continue; } if (!finished_) // Timeout { timeout_ = true; return null; } } if (so_ != null) // Connect succeeded return so_; if (ex_ != null) // Connect failed throw ex_; throw new InternalError(); } } public org.apache.yoko.orb.OCI.Transport connect_timeout(int t) { if (socket_ != null) close(); // // Get the address // java.net.InetAddress address = null; try { address = java.net.InetAddress.getByName(this.info_.getHost()); } catch (java.net.UnknownHostException ex) { logger.log(Level.FINE, "Host resolution error", ex); throw asCommFailure(ex); } // // Create socket and connect // try { ConnectTimeout connectTimeout = new ConnectTimeout(address); connectTimeout.start(); socket_ = connectTimeout.waitForConnect(t); if (socket_ == null) return null; } catch (java.net.ConnectException ex) { logger.log(Level.FINE, "Socket connection error", ex); throw new org.omg.CORBA.TRANSIENT( org.apache.yoko.orb.OB.MinorCodes .describeTransient(org.apache.yoko.orb.OB.MinorCodes.MinorConnectFailed) + ": " + ex.getMessage(), org.apache.yoko.orb.OB.MinorCodes.MinorConnectFailed, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } catch (java.io.IOException ex) { logger.log(Level.FINE, "Socket I/O error", ex); throw (org.omg.CORBA.COMM_FAILURE)new org.omg.CORBA.COMM_FAILURE( org.apache.yoko.orb.OB.MinorCodes .describeCommFailure(org.apache.yoko.orb.OB.MinorCodes.MinorSocket) + ": " + ex.getMessage(), org.apache.yoko.orb.OB.MinorCodes.MinorSocket, org.omg.CORBA.CompletionStatus.COMPLETED_NO).initCause(ex); } // // Set TCP_NODELAY and SO_KEEPALIVE options // try { socket_.setTcpNoDelay(true); if (keepAlive_) socket_.setKeepAlive(true); } catch (java.net.SocketException ex) { logger.log(Level.FINE, "Socket setup error", ex); try { socket_.close(); } catch (java.io.IOException e) { } throw Exceptions.asCommFailure(ex); } // // Create new transport // org.apache.yoko.orb.OCI.Transport tr = null; try { tr = new Transport_impl(socket_, listenMap_); socket_ = null; } catch (org.omg.CORBA.SystemException ex) { logger.log(Level.FINE, "Transport setup error", ex); try { socket_.close(); } catch (java.io.IOException e) { } throw ex; } // // Call callbacks // org.apache.yoko.orb.OCI.TransportInfo trInfo = tr.get_info(); try { info_._OB_callConnectCB(trInfo); } catch (org.omg.CORBA.SystemException ex) { logger.log(Level.FINE, "Callback setup error", ex); tr.close(); throw ex; } // // Return new transport // return tr; } public org.apache.yoko.orb.OCI.ProfileInfo[] get_usable_profiles( org.omg.IOP.IOR ior, org.omg.CORBA.Policy[] policies) { // // Make sure that the set of policies is met // for (int i = 0; i < policies.length; i++) { if (policies[i].policy_type() == org.apache.yoko.orb.OB.PROTOCOL_POLICY_ID.value) { org.apache.yoko.orb.OB.ProtocolPolicy protocolPolicy = org.apache.yoko.orb.OB.ProtocolPolicyHelper .narrow(policies[i]); if (!protocolPolicy.contains(PLUGIN_ID.value)) return new org.apache.yoko.orb.OCI.ProfileInfo[0]; } } org.apache.yoko.orb.OCI.ProfileInfoSeqHolder profileInfoSeq = new org.apache.yoko.orb.OCI.ProfileInfoSeqHolder(); profileInfoSeq.value = new org.apache.yoko.orb.OCI.ProfileInfo[0]; Util.extractAllProfileInfos(ior, profileInfoSeq, true, this.info_.getHost(), this.info_.getPort(), false, codec_); //check that the transport info matches ours. //we could return just the profiles that match rather than bailing if one doesn't match. for (int i = 0; i< profileInfoSeq.value.length; i++ ) { TaggedComponent[] components = profileInfoSeq.value[i].components; byte[] otherTransportInfo = new byte[0]; for (int j = 0; j < components.length; j++ ) { TaggedComponent component = components[j]; if (component.tag == TAG_CSI_SEC_MECH_LIST.value) { otherTransportInfo = component.component_data; break; } } if (!Arrays.equals(transportInfo, otherTransportInfo)) { return new org.apache.yoko.orb.OCI.ProfileInfo[0]; } } return profileInfoSeq.value; } public boolean equal(org.apache.yoko.orb.OCI.Connector con) { Connector_impl impl = null; try { impl = (Connector_impl) con; } catch (ClassCastException ex) { return false; } // // Compare ports // if (this.info_.getPort() != impl.info_.getPort()) return false; // // Direct host name comparison // if (!this.info_.getHost().equals(impl.info_.getHost())) { // // Direct host name comparision failed - must look up // addresses to be really sure if the hosts differ // try { java.net.InetAddress addr1 = java.net.InetAddress .getByName(this.info_.getHost()); java.net.InetAddress addr2 = java.net.InetAddress .getByName(impl.info_.getHost()); if (!addr1.equals(addr2)) return false; } catch (java.net.UnknownHostException ex) { // // Return false on hostname lookup failure // return false; } } return Arrays.equals(transportInfo, impl.transportInfo); } byte[] extractTransportInfo(IOR ior) { ProfileInfoHolder holder = new ProfileInfoHolder(); // we need to extract the profile information from the IOR to see if this connection has // any transport-level security defined. if (org.apache.yoko.orb.OCI.IIOP.Util.extractProfileInfo(ior, holder)) { ProfileInfo profileInfo = holder.value; for (int i = 0; i < profileInfo.components.length; i++) { // we're lookoing for the security mechanism items. if (profileInfo.components[i].tag == TAG_CSI_SEC_MECH_LIST.value) { return profileInfo.components[i].component_data; } } } return new byte[0]; } public org.apache.yoko.orb.OCI.ConnectorInfo get_info() { return info_; } // ------------------------------------------------------------------ // Yoko internal functions // Application programs must not use these functions directly // ------------------------------------------------------------------ private Connector_impl(IOR ior, Policy[] policies, String host, int port, boolean keepAlive, ConnectCB[] cb, ListenerMap lm, ConnectionHelper helper, ExtendedConnectionHelper xhelper, Codec codec) { if ((null == helper) && (null == xhelper)) throw new IllegalArgumentException("Both connection helpers must not be null"); ior_ = ior; policies_ = policies; keepAlive_ = keepAlive; info_ = new ConnectorInfo_impl(host, port, cb); listenMap_ = lm; connectionHelper_ = helper; extendedConnectionHelper_ = xhelper; codec_ = codec; transportInfo = extractTransportInfo(ior); } public Connector_impl(IOR ior, Policy[] policies, String host, int port, boolean keepAlive, ConnectCB[] cb, ListenerMap lm, ConnectionHelper helper, Codec codec) { this(ior, policies, host, port, keepAlive, cb, lm, helper, null, codec); } public Connector_impl(IOR ior, Policy[] policies, String host, int port, boolean keepAlive, ConnectCB[] cb, ListenerMap lm, ExtendedConnectionHelper xhelper, Codec codec) { this(ior, policies, host, port, keepAlive, cb, lm, null, xhelper, codec); } public void finalize() throws Throwable { if (socket_ != null) close(); super.finalize(); } }
6,590
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/ConnectorInfoHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/ConnectorInfo:1.0 // final public class ConnectorInfoHolder implements org.omg.CORBA.portable.Streamable { public ConnectorInfo value; public ConnectorInfoHolder() { } public ConnectorInfoHolder(ConnectorInfo initial) { value = initial; } public void _read(org.omg.CORBA.portable.InputStream in) { value = ConnectorInfoHelper.read(in); } public void _write(org.omg.CORBA.portable.OutputStream out) { ConnectorInfoHelper.write(out, value); } public org.omg.CORBA.TypeCode _type() { return ConnectorInfoHelper.type(); } }
6,591
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/Acceptor_impl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; import static org.apache.yoko.orb.OCI.IIOP.Exceptions.*; import static org.apache.yoko.orb.OB.MinorCodes.*; import java.io.InterruptedIOException; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.yoko.orb.CORBA.OutputStream; import org.apache.yoko.orb.OB.Assert; import org.apache.yoko.orb.OB.MinorCodes; import org.apache.yoko.orb.OCI.Transport; import org.omg.CORBA.COMM_FAILURE; import org.omg.IOP.Codec; import org.omg.IOP.TAG_INTERNET_IOP; final class Acceptor_impl extends org.omg.CORBA.LocalObject implements org.apache.yoko.orb.OCI.Acceptor { // the real logger backing instance. We use the interface class as the locator static final Logger logger = Logger.getLogger(org.apache.yoko.orb.OCI.Acceptor.class.getName()); // Some data members must not be private because the info object // must be able to access them public String[] hosts_; // The hosts public java.net.ServerSocket socket_; // The socket private boolean multiProfile_; // Use multiple profiles? private int port_; // The port private boolean keepAlive_; // The keepalive flag private java.net.InetAddress localAddress_; // The local address private final AcceptorInfo_impl info_; // Acceptor information private ListenerMap listenMap_; private final ConnectionHelper connectionHelper_; // plugin for managing connection config/creation private final ExtendedConnectionHelper extendedConnectionHelper_; private final Codec codec_; // ------------------------------------------------------------------ // Standard IDL to Java Mapping // ------------------------------------------------------------------ public String id() { return PLUGIN_ID.value; } public int tag() { return TAG_INTERNET_IOP.value; } public int handle() { throw new org.omg.CORBA.NO_IMPLEMENT(); } public void close() { logger.log(Level.FINE, "Closing server socket with host=" + localAddress_ + ", port=" + port_, new Exception("Stack trace")); // // Destroy the info object // info_._OB_destroy(); // // Close the socket // try { socket_.close(); socket_ = null; logger.log(Level.FINE, "Closed server socket with host=" + localAddress_ + ", port=" + port_); } catch (java.io.IOException ex) { logger.log(Level.FINE, "Exception closing server socket with host=" + localAddress_ + ", port=" + port_, ex); } } public void shutdown() { // // This operation does nothing in the java implementation // } public void listen() { // // This operation does nothing in the java implementation // } public org.apache.yoko.orb.OCI.Transport accept(boolean block) { // // Accept // java.net.Socket socket; try { // // If non-blocking, use a timeout of 1ms // if (!block) socket_.setSoTimeout(1); else socket_.setSoTimeout(0); logger.fine("Accepting connection for host=" + localAddress_ + ", port=" + port_); socket = socket_.accept(); logger.fine("Received inbound connection on socket " + socket); } catch (java.io.InterruptedIOException ex) { if (!block) return null; // Timeout else { logger.log(Level.FINE, "Failure accepting connection for host=" + localAddress_ + ", port=" + port_, ex); throw asCommFailure(ex, MinorAccept); } } catch (java.io.IOException ex) { logger.log(Level.FINE, "Failure accepting connection for host=" + localAddress_ + ", port=" + port_, ex); throw asCommFailure(ex, MinorAccept); } // // Set TCP_NODELAY and SO_KEEPALIVE options // try { socket.setTcpNoDelay(true); if (keepAlive_) socket.setKeepAlive(true); } catch (java.net.SocketException ex) { logger.log(Level.FINE, "Failure configuring server connection for host=" + localAddress_ + ", port=" + port_, ex); throw asCommFailure(ex, MinorSetsockopt); } // // Create new transport // Transport tr = null; try { tr = new Transport_impl(this, socket, listenMap_); logger.fine("Inbound connection received from " + socket.getInetAddress()); } catch (org.omg.CORBA.SystemException ex) { try { socket.close(); } catch (java.io.IOException e) { } logger.log(Level.FINE, "error creating inbound connection", ex); throw ex; } // // Return new transport // return tr; } public Transport connect_self() { // // Create socket and connect to local address // java.net.Socket socket = null; try { if (connectionHelper_ != null) { socket = connectionHelper_.createSelfConnection(localAddress_, port_); } else { socket = extendedConnectionHelper_.createSelfConnection(localAddress_, port_); } } catch (java.net.ConnectException ex) { logger.log(Level.FINE, "Failure making self connection for host=" + localAddress_ + ", port=" + port_, ex); throw asTransient(ex, MinorConnectFailed); } catch (java.io.IOException ex) { logger.log(Level.FINE, "Failure making self connection for host=" + localAddress_ + ", port=" + port_, ex); throw asCommFailure(ex, MinorSocket); } // // Set TCP_NODELAY option // try { socket.setTcpNoDelay(true); } catch (java.net.SocketException ex) { logger.log(Level.FINE, "Failure configuring self connection for host=" + localAddress_ + ", port=" + port_, ex); try { socket.close(); } catch (java.io.IOException e) { } throw asCommFailure(ex); } // // Create and return new transport // try { return new Transport_impl(this, socket, listenMap_); } catch (org.omg.CORBA.SystemException ex) { try { socket.close(); } catch (java.io.IOException e) { } throw ex; } } public void add_profiles(org.apache.yoko.orb.OCI.ProfileInfo profileInfo, org.apache.yoko.orb.OBPortableServer.POAPolicies policies, org.omg.IOP.IORHolder ior) { if (port_ == 0) throw new RuntimeException(); // // Filter components according to IIOP version // java.util.Vector components = new java.util.Vector(); if (profileInfo.major == 1 && profileInfo.minor == 0) { // // No components for IIOP 1.0 // } else { for (int i = 0; i < profileInfo.components.length; i++) components.addElement(profileInfo.components[i]); } if (profileInfo.major == 1 && profileInfo.minor == 0) { // // For IIOP 1.0, we always add one profile for each host, // since IIOP 1.0 doesn't support tagged components in a // profile // for (int i = 0; i < hosts_.length; i++) { org.omg.IIOP.ProfileBody_1_0 body = new org.omg.IIOP.ProfileBody_1_0(); body.iiop_version = new org.omg.IIOP.Version(profileInfo.major, profileInfo.minor); body.host = hosts_[i]; // the CSIv2 policy may require zeroing the port in the IOR. if (policies.zeroPortPolicy()) { body.port = 0; } else { if (port_ >= 0x8000) body.port = (short) (port_ - 0xffff - 1); else body.port = (short) port_; } body.object_key = profileInfo.key; int len = ior.value.profiles.length + 1; org.omg.IOP.TaggedProfile[] profiles = new org.omg.IOP.TaggedProfile[len]; System.arraycopy(ior.value.profiles, 0, profiles, 0, ior.value.profiles.length); ior.value.profiles = profiles; ior.value.profiles[len - 1] = new org.omg.IOP.TaggedProfile(); ior.value.profiles[len - 1].tag = org.omg.IOP.TAG_INTERNET_IOP.value; org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(); OutputStream out = new OutputStream(buf); out._OB_writeEndian(); org.omg.IIOP.ProfileBody_1_0Helper.write(out, body); ior.value.profiles[len - 1].profile_data = new byte[buf .length()]; System.arraycopy(buf.data(), 0, ior.value.profiles[len - 1].profile_data, 0, buf .length()); } } else { if (multiProfile_) { // // Add one profile for each host // for (int i = 0; i < hosts_.length; i++) { org.omg.IIOP.ProfileBody_1_1 body = new org.omg.IIOP.ProfileBody_1_1(); body.iiop_version = new org.omg.IIOP.Version( profileInfo.major, profileInfo.minor); body.host = hosts_[i]; // the CSIv2 policy may require zeroing the port in the IOR. if (policies.zeroPortPolicy()) { body.port = 0; } else { if (port_ >= 0x8000) body.port = (short) (port_ - 0xffff - 1); else body.port = (short) port_; } body.object_key = profileInfo.key; body.components = new org.omg.IOP.TaggedComponent[components .size()]; components.copyInto(body.components); int len = ior.value.profiles.length + 1; org.omg.IOP.TaggedProfile[] profiles = new org.omg.IOP.TaggedProfile[len]; System.arraycopy(ior.value.profiles, 0, profiles, 0, ior.value.profiles.length); ior.value.profiles = profiles; ior.value.profiles[len - 1] = new org.omg.IOP.TaggedProfile(); ior.value.profiles[len - 1].tag = org.omg.IOP.TAG_INTERNET_IOP.value; org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(); OutputStream out = new OutputStream(buf); out._OB_writeEndian(); org.omg.IIOP.ProfileBody_1_1Helper.write(out, body); ior.value.profiles[len - 1].profile_data = new byte[buf .length()]; System.arraycopy(buf.data(), 0, ior.value.profiles[len - 1].profile_data, 0, buf .length()); } } else { // // Add a single tagged profile. If there are additional // hosts, add a tagged component for each host. // org.omg.IIOP.ProfileBody_1_1 body = new org.omg.IIOP.ProfileBody_1_1(); body.iiop_version = new org.omg.IIOP.Version(profileInfo.major, profileInfo.minor); body.host = hosts_[0]; if (policies.zeroPortPolicy()) { body.port = 0; } else { if (port_ >= 0x8000) body.port = (short) (port_ - 0xffff - 1); else body.port = (short) port_; } body.object_key = profileInfo.key; for (int i = 1; i < hosts_.length; i++) { org.omg.IOP.TaggedComponent c = new org.omg.IOP.TaggedComponent(); c.tag = org.omg.IOP.TAG_ALTERNATE_IIOP_ADDRESS.value; org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(); OutputStream out = new OutputStream(buf); out._OB_writeEndian(); out.write_string(hosts_[i]); out.write_ushort(body.port); c.component_data = new byte[buf.length()]; System.arraycopy(buf.data(), 0, c.component_data, 0, buf .length()); components.addElement(c); } body.components = new org.omg.IOP.TaggedComponent[components .size()]; components.copyInto(body.components); int len = ior.value.profiles.length + 1; org.omg.IOP.TaggedProfile[] profiles = new org.omg.IOP.TaggedProfile[len]; System.arraycopy(ior.value.profiles, 0, profiles, 0, ior.value.profiles.length); ior.value.profiles = profiles; ior.value.profiles[len - 1] = new org.omg.IOP.TaggedProfile(); ior.value.profiles[len - 1].tag = org.omg.IOP.TAG_INTERNET_IOP.value; org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(); OutputStream out = new OutputStream(buf); out._OB_writeEndian(); org.omg.IIOP.ProfileBody_1_1Helper.write(out, body); ior.value.profiles[len - 1].profile_data = new byte[buf .length()]; System.arraycopy(buf.data(), 0, ior.value.profiles[len - 1].profile_data, 0, buf .length()); } } } public org.apache.yoko.orb.OCI.ProfileInfo[] get_local_profiles( org.omg.IOP.IOR ior) { // // Get local profiles for all hosts // org.apache.yoko.orb.OCI.ProfileInfoSeqHolder profileInfoSeq = new org.apache.yoko.orb.OCI.ProfileInfoSeqHolder(); profileInfoSeq.value = new org.apache.yoko.orb.OCI.ProfileInfo[0]; for (int i = 0; i < hosts_.length; i++) { Util.extractAllProfileInfos(ior, profileInfoSeq, true, hosts_[i], port_, true, codec_); } return profileInfoSeq.value; } public org.apache.yoko.orb.OCI.AcceptorInfo get_info() { return info_; } // ------------------------------------------------------------------ // Yoko internal functions // Application programs must not use these functions directly // ------------------------------------------------------------------ public Acceptor_impl(String address, String[] hosts, boolean multiProfile, int port, int backlog, boolean keepAlive, ConnectionHelper helper, ExtendedConnectionHelper extendedConnectionHelper, ListenerMap lm, String[] params, Codec codec) { // System.out.println("Acceptor_impl"); Assert._OB_assert((helper == null) ^ (extendedConnectionHelper == null)); hosts_ = hosts; multiProfile_ = multiProfile; keepAlive_ = keepAlive; connectionHelper_ = helper; extendedConnectionHelper_ = extendedConnectionHelper; codec_ = codec; info_ = new AcceptorInfo_impl(this); listenMap_ = lm; if (backlog == 0) backlog = 50; // 50 is the JDK's default value // // Get the local address for use by connect_self // try { if (address == null) { //Since we are // binding to all network interfaces, we'll use the loopback // address. localAddress_ = java.net.InetAddress.getLocalHost(); } else { localAddress_ = java.net.InetAddress.getByName(address); } } catch (java.net.UnknownHostException ex) { logger.log(Level.FINE, "Host resolution failure", ex); throw asCommFailure(ex); } // // Create socket and bind to requested network interface // try { if (address == null) { if (connectionHelper_ != null) { socket_ = connectionHelper_.createServerSocket(port, backlog); } else { socket_ = extendedConnectionHelper_.createServerSocket(port, backlog, params); } } else { if (connectionHelper_ != null) { socket_ = connectionHelper_.createServerSocket(port, backlog, localAddress_); } else { socket_ = extendedConnectionHelper_.createServerSocket(port, backlog, localAddress_, params); } } // // Read back the port. This is needed if the port was selected by // the operating system. // port_ = socket_.getLocalPort(); logger.fine("Acceptor created using socket " + socket_); } catch (java.net.BindException ex) { logger.log(Level.FINE, "Failure creating server socket for host=" + localAddress_ + ", port=" + port, ex); throw (org.omg.CORBA.COMM_FAILURE)new org.omg.CORBA.COMM_FAILURE( org.apache.yoko.orb.OB.MinorCodes .describeCommFailure(org.apache.yoko.orb.OB.MinorCodes.MinorBind) + ": " + ex.getMessage(), org.apache.yoko.orb.OB.MinorCodes.MinorBind, org.omg.CORBA.CompletionStatus.COMPLETED_NO).initCause(ex); } catch (java.io.IOException ex) { logger.log(Level.FINE, "Failure creating server socket for host=" + localAddress_ + ", port=" + port, ex); throw asCommFailure(ex, MinorSocket); } // // Add this entry to the listenMap_ as an endpoint to remap // synchronized (listenMap_) { for (int i = 0; i < hosts_.length; i++) listenMap_.add(hosts_[i], (short) port_); } } public void finalize() throws Throwable { // System.out.println("~Acceptor_impl"); if (socket_ != null) { close(); } // // remove this acceptor from the listenMap_ // synchronized (listenMap_) { for (int i = 0; i < hosts_.length; i++) listenMap_.remove(hosts_[i], (short) port_); } super.finalize(); } public String toString() { return "Acceptor listening on " + socket_; } }
6,592
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/ConnectionHelper.java
/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @version $Rev: 491396 $ $Date: 2006-12-30 22:06:13 -0800 (Sat, 30 Dec 2006) $ */ package org.apache.yoko.orb.OCI.IIOP; import java.io.IOException; import java.net.ConnectException; import java.net.InetAddress; import java.net.Socket; import java.net.ServerSocket; import org.omg.CORBA.ORB; import org.omg.CORBA.Policy; import org.omg.IOP.IOR; // // IDL:orb.yoko.apache.org/OCI/IIOP/AcceptorInfo:1.0 // /** * * Information on an IIOP OCI Acceptor object. * * @see Acceptor * @see AcceptorInfo * **/ public interface ConnectionHelper { public void init(ORB orb, String parms); public Socket createSocket(IOR ior, Policy[] policies, InetAddress address, int port) throws IOException, ConnectException; public Socket createSelfConnection(InetAddress address, int port) throws IOException, ConnectException; public ServerSocket createServerSocket(int port, int backlog) throws IOException, ConnectException; public ServerSocket createServerSocket(int port, int backlog, InetAddress address) throws IOException, ConnectException; }
6,593
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/ConFactory_impl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; import java.util.ArrayList; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.yoko.orb.CORBA.InputStream; import org.apache.yoko.orb.OB.Assert; import org.apache.yoko.orb.OB.IORDump; import org.apache.yoko.orb.OB.IORUtil; import org.apache.yoko.orb.OB.PROTOCOL_POLICY_ID; import org.apache.yoko.orb.OB.ProtocolPolicy; import org.apache.yoko.orb.OB.ProtocolPolicyHelper; import org.apache.yoko.orb.OCI.Buffer; import org.apache.yoko.orb.OCI.ConnectCB; import org.apache.yoko.orb.OCI.Connector; import org.omg.CORBA.ORBPackage.InvalidName; import org.omg.CORBA.Policy; import org.omg.IIOP.ProfileBody_1_0; import org.omg.IIOP.ProfileBody_1_0Helper; import org.omg.IOP.Codec; import org.omg.IOP.CodecFactory; import org.omg.IOP.CodecFactoryPackage.UnknownEncoding; import org.omg.IOP.ENCODING_CDR_ENCAPS; import org.omg.IOP.Encoding; import org.omg.IOP.IOR; import org.omg.IOP.TAG_ALTERNATE_IIOP_ADDRESS; import org.omg.IOP.TAG_INTERNET_IOP; import org.omg.IOP.TaggedComponent; import org.omg.IOP.TaggedComponentHelper; import org.omg.IOP.TaggedProfile; final class ConFactory_impl extends org.omg.CORBA.LocalObject implements org.apache.yoko.orb.OCI.ConFactory { // the real logger backing instance. We use the interface class as the locator static final Logger logger = Logger.getLogger(org.apache.yoko.orb.OCI.ConFactory.class.getName()); private static final Encoding CDR_1_2_ENCODING = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, (byte) 2); private boolean keepAlive_; // The keepalive flag private org.omg.CORBA.ORB orb_; // The ORB private ConFactoryInfo_impl info_; // ConFactory info private ListenerMap listenMap_; private ConnectionHelper connectionHelper_; // plugin for making ssl transport decisions. private ExtendedConnectionHelper extendedConnectionHelper_; // ------------------------------------------------------------------ // Standard IDL to Java Mapping // ------------------------------------------------------------------ public String id() { return PLUGIN_ID.value; } public int tag() { return TAG_INTERNET_IOP.value; } public String describe_profile(TaggedProfile profile) { Assert._OB_assert(profile.tag == TAG_INTERNET_IOP.value); // // Get the IIOP profile body // byte[] data = profile.profile_data; Buffer buf = new Buffer(data, data.length); InputStream in = new InputStream(buf); in._OB_readEndian(); ProfileBody_1_0 body = ProfileBody_1_0Helper.read(in); StringBuilder result = new StringBuilder(); // // Show general info // result.append("iiop_version: " + (int) body.iiop_version.major + '.' + (int) body.iiop_version.minor + '\n'); result.append("host: " + body.host + '\n'); final int port = ((char)body.port); result.append("port: " + port + '\n'); result.append("object_key: (" + body.object_key.length + ")\n"); IORUtil.dump_octets(body.object_key, 0, body.object_key.length, result); // // Print IIOP 1.1 information (components) // if (body.iiop_version.major > 1 || body.iiop_version.minor >= 1) { final int tcCount = in.read_ulong(); for (int i = 0; i < tcCount; i++) { TaggedComponent component = TaggedComponentHelper.read(in); IORUtil.describe_component(component, result); } } return result.toString(); } private static final Connector[] EMPTY_CONNECTORS = new Connector[0]; public Connector[] create_connectors(IOR ior, Policy[] policies) { if (logger.isLoggable(Level.FINEST)) { logger.finest("Creating connection for ior: " + IORDump.PrintObjref(orb_, ior)); } // // Check whether policies are satisfied // for (Policy policy: policies) { if (policy.policy_type() == PROTOCOL_POLICY_ID.value) { ProtocolPolicy protocolPolicy = ProtocolPolicyHelper.narrow(policy); if (!protocolPolicy.contains(PLUGIN_ID.value)) return EMPTY_CONNECTORS; } } // // Create Connectors from profiles // final List<Connector> connectors = new ArrayList<>(); for (TaggedProfile profile: ior.profiles) { if (profile.tag != tag()) continue; // // Get the IIOP profile body // final byte[] data = profile.profile_data; final Buffer buf = new Buffer(data, data.length); final InputStream in = new InputStream(buf, 0, false); in._OB_readEndian(); final ProfileBody_1_0 body = ProfileBody_1_0Helper.read(in); // // Create new connector for this profile // final int port = ((char)body.port); ConnectCB[] cbs = info_._OB_getConnectCBSeq(); logger.fine("Creating connector to host=" + body.host +", port=" + port); Codec codec = null; try { codec = ((CodecFactory) orb_.resolve_initial_references("CodecFactory")).create_codec(CDR_1_2_ENCODING); } catch (InvalidName e) { logger.fine("Could not obtain codec factory using name 'CodecFactory'"); } catch (UnknownEncoding e) { logger.fine("Could not obtain codec using encoding " + CDR_1_2_ENCODING); } connectors.add(createConnector(ior, policies, body.host, port, cbs, codec)); // // If this is a 1.1 profile, check for // TAG_ALTERNATE_IIOP_ADDRESS in the components // if (body.iiop_version.major > 1 || body.iiop_version.minor > 0) { // // Unmarshal the tagged components // final int tcCount = in.read_ulong(); List<TaggedComponent> components = new ArrayList<>(tcCount); for (int c = 0; c < tcCount; c++) components.add(TaggedComponentHelper.read(in)); // // Check for TAG_ALTERNATE_IIOP_ADDRESS // for (TaggedComponent tc: components) { if (tc.tag == TAG_ALTERNATE_IIOP_ADDRESS.value) { final Buffer cbuf = new Buffer(tc.component_data, tc.component_data.length); final InputStream cin = new InputStream(cbuf, 0, false); cin._OB_readEndian(); final String host = cin.read_string(); final short s = cin.read_ushort(); final int cport = ((char)s); // // Create new connector for this component // ConnectCB[] ccbs = info_._OB_getConnectCBSeq(); logger.fine("Creating alternate connector to host=" + host + ", port=" + cport); connectors.add(createConnector(ior, policies, host, cport, ccbs, codec)); } } } } return connectors.toArray(EMPTY_CONNECTORS); } private Connector createConnector(IOR ior, Policy[] policies, String host, int port, ConnectCB[] cbs, Codec codec) { return ((connectionHelper_ != null) ? new Connector_impl(ior, policies, host, port, keepAlive_, cbs, listenMap_, connectionHelper_, codec) : new Connector_impl(ior, policies, host, port, keepAlive_, cbs, listenMap_, extendedConnectionHelper_, codec)); } public boolean equivalent(IOR ior1, IOR ior2) { return Util.equivalent(ior1, ior2); } public int hash(IOR ior, int max) { return Util.hash(ior, max); } public org.apache.yoko.orb.OCI.ConFactoryInfo get_info() { return info_; } // ------------------------------------------------------------------ // Yoko internal functions // Application programs must not use these functions directly // ------------------------------------------------------------------ public ConFactory_impl(org.omg.CORBA.ORB orb, boolean keepAlive, ListenerMap lm, ConnectionHelper helper) { // System.out.println("ConFactory"); orb_ = orb; keepAlive_ = keepAlive; info_ = new ConFactoryInfo_impl(); listenMap_ = lm; connectionHelper_ = helper; } public ConFactory_impl(org.omg.CORBA.ORB orb, boolean keepAlive, ListenerMap lm, ExtendedConnectionHelper helper) { // System.out.println("ConFactory"); orb_ = orb; keepAlive_ = keepAlive; info_ = new ConFactoryInfo_impl(); listenMap_ = lm; extendedConnectionHelper_ = helper; } public void finalize() throws Throwable { // System.out.println("~ConFactory"); super.finalize(); } }
6,594
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/InternalError.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; final class InternalError extends Error { public InternalError() { super("OCI IIOP plug-in internal error " + "(send bug report to support@orb.yoko.apache.org)"); } public InternalError(String message) { super("OCI IIOP plug-in internal error " + "(send bug report to support@orb.yoko.apache.org)\n" + message); } }
6,595
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/ConnectorInfoHelper.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/ConnectorInfo:1.0 // final public class ConnectorInfoHelper { public static void insert(org.omg.CORBA.Any any, ConnectorInfo val) { any.insert_Object(val, type()); } public static ConnectorInfo extract(org.omg.CORBA.Any any) { if(any.type().equivalent(type())) return narrow(any.extract_Object()); throw new org.omg.CORBA.BAD_OPERATION( org.apache.yoko.orb.OB.MinorCodes .describeBadOperation(org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch), org.apache.yoko.orb.OB.MinorCodes.MinorTypeMismatch, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } private static org.omg.CORBA.TypeCode typeCode_; public static org.omg.CORBA.TypeCode type() { if(typeCode_ == null) { org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); typeCode_ = ((org.omg.CORBA_2_4.ORB)orb).create_local_interface_tc(id(), "ConnectorInfo"); } return typeCode_; } public static String id() { return "IDL:orb.yoko.apache.org/OCI/IIOP/ConnectorInfo:1.0"; } public static ConnectorInfo read(org.omg.CORBA.portable.InputStream in) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorReadUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static void write(org.omg.CORBA.portable.OutputStream out, ConnectorInfo val) { throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported), org.apache.yoko.orb.OB.MinorCodes.MinorWriteUnsupported, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } public static ConnectorInfo narrow(org.omg.CORBA.Object val) { try { return (ConnectorInfo)val; } catch(ClassCastException ex) { } throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType), org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType, org.omg.CORBA.CompletionStatus.COMPLETED_NO); } }
6,596
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/ConnectorInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/ConnectorInfo:1.0 // /** * * Information on an IIOP OCI Connector object. * * @see Connector * @see ConnectorInfo * **/ public interface ConnectorInfo extends ConnectorInfoOperations, org.apache.yoko.orb.OCI.ConnectorInfo { }
6,597
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/TransportInfoOperations.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/TransportInfo:1.0 // /** * * Information on an IIOP OCI Transport object. * * @see Transport * @see TransportInfo * **/ public interface TransportInfoOperations extends org.apache.yoko.orb.OCI.TransportInfoOperations { // // IDL:orb.yoko.apache.org/OCI/IIOP/TransportInfo/addr:1.0 // /** The local IP address. */ String addr(); // // IDL:orb.yoko.apache.org/OCI/IIOP/TransportInfo/port:1.0 // /** The local port. */ short port(); // // IDL:orb.yoko.apache.org/OCI/IIOP/TransportInfo/remote_addr:1.0 // /** The remote IP address. */ String remote_addr(); // // IDL:orb.yoko.apache.org/OCI/IIOP/TransportInfo/remote_port:1.0 // /** The remote port. */ short remote_port(); }
6,598
0
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI
Create_ds/geronimo-yoko/yoko-core/src/main/java/org/apache/yoko/orb/OCI/IIOP/ConFactoryInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.yoko.orb.OCI.IIOP; // // IDL:orb.yoko.apache.org/OCI/IIOP/ConFactoryInfo:1.0 // /** * * Information on an IIOP OCI Connector Factory object. * * @see ConFactory * @see ConFactoryInfo * **/ public interface ConFactoryInfo extends ConFactoryInfoOperations, org.apache.yoko.orb.OCI.ConFactoryInfo { }
6,599