1 /*
2 * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
241 * <li>server's native wchar code set and conversion code sets.</li>
242 * </ul>
243 * Both char and wchar conversion code sets are listed in order of
244 * preference.
245 */
246 const ComponentId TAG_CODE_SETS = 1 ;
247
248 /**
249 * A profile component containing the sequence of QoS policies exported
250 * with the object reference by an object adapter.
251 */
252 const ComponentId TAG_POLICIES = 2 ;
253
254 /**
255 * In cases where the same object key is used for more than one
256 * internet location, the following standard IOR Component is defined
257 * for support in IIOP version 1.2.
258 * <p>
259 * The <code>TAG_ALTERNATE_IIOP_ADDRESS</code> component has an
260 * associated value of type:
261 * <code>
262 * <pre>
263 * struct {
264 * string HostID,
265 * short Port
266 * };
267 * </pre>
268 * </code>
269 * encoded as a CDR encapsulation.
270 * <p>
271 * Zero or more instances of the <code>TAG_ALTERNATE_IIOP_ADDRESS</code>
272 * component type may be included in a version 1.2
273 * <code>TAG_INTERNET_IOP</code> Profile. Each of these alternative
274 * addresses may be used by the client orb, in addition to the host
275 * and port address expressed in the body of the Profile. In cases
276 * where one or more <code>TAG_ALTERNATE_IIOP_ADDRESS</code> components
277 * are present in a <code>TAG_INTERNET_IOP</code> Profile, no order of
278 * use is prescribed by Version 1.2 of IIOP.
279 */
280 const ComponentId TAG_ALTERNATE_IIOP_ADDRESS = 3 ;
281
282 /**
283 * Class downloading is supported for stubs, ties, values, and
284 * value helpers. The specification allows transmission of codebase
285 * information on the wire for stubs and ties, and enables usage of
286 * pre-existing ClassLoaders when relevant.
287 * <p>
288 * For values and value helpers, the codebase is transmitted after the
584 /**
585 * The minor version of this Encoding format.
586 */
587 octet minor_version;
588 };
589
590 /**
591 * <code>Codecs</code> are obtained from the <code>CodecFactory</code>.
592 * The <code>CodecFactory</code> is obtained through a call to
593 * <code>ORB.resolve_initial_references( "CodecFactory" )</code>.
594 */
595 local interface CodecFactory {
596 /**
597 * This exception is thrown by <code>CodecFactory.create_codec</code> when
598 * the factory cannot create a <code>Codec</code> for a given encoding.
599 */
600 exception UnknownEncoding {};
601
602 /**
603 * Create a <code>Codec</code> of the given encoding.
604 * <p>
605 * @param enc The encoding for which to create a <code>Codec</code>.
606 * @return A <code>Codec</code> obtained with the given encoding.
607 * @exception UnknownEncoding thrown if this factory cannot create a
608 * <code>Codec</code> of the given encoding.
609 */
610 Codec create_codec (in Encoding enc) raises (UnknownEncoding);
611 };
612
613 // END part which lived in Interceptors.idl.
614
615 };
616
617 #endif // _IOP_IDL_
|
1 /*
2 * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
241 * <li>server's native wchar code set and conversion code sets.</li>
242 * </ul>
243 * Both char and wchar conversion code sets are listed in order of
244 * preference.
245 */
246 const ComponentId TAG_CODE_SETS = 1 ;
247
248 /**
249 * A profile component containing the sequence of QoS policies exported
250 * with the object reference by an object adapter.
251 */
252 const ComponentId TAG_POLICIES = 2 ;
253
254 /**
255 * In cases where the same object key is used for more than one
256 * internet location, the following standard IOR Component is defined
257 * for support in IIOP version 1.2.
258 * <p>
259 * The <code>TAG_ALTERNATE_IIOP_ADDRESS</code> component has an
260 * associated value of type:
261 * <pre>
262 * <code>
263 * struct {
264 * string HostID,
265 * short Port
266 * };
267 * </code>
268 * </pre>
269 * encoded as a CDR encapsulation.
270 * <p>
271 * Zero or more instances of the <code>TAG_ALTERNATE_IIOP_ADDRESS</code>
272 * component type may be included in a version 1.2
273 * <code>TAG_INTERNET_IOP</code> Profile. Each of these alternative
274 * addresses may be used by the client orb, in addition to the host
275 * and port address expressed in the body of the Profile. In cases
276 * where one or more <code>TAG_ALTERNATE_IIOP_ADDRESS</code> components
277 * are present in a <code>TAG_INTERNET_IOP</code> Profile, no order of
278 * use is prescribed by Version 1.2 of IIOP.
279 */
280 const ComponentId TAG_ALTERNATE_IIOP_ADDRESS = 3 ;
281
282 /**
283 * Class downloading is supported for stubs, ties, values, and
284 * value helpers. The specification allows transmission of codebase
285 * information on the wire for stubs and ties, and enables usage of
286 * pre-existing ClassLoaders when relevant.
287 * <p>
288 * For values and value helpers, the codebase is transmitted after the
584 /**
585 * The minor version of this Encoding format.
586 */
587 octet minor_version;
588 };
589
590 /**
591 * <code>Codecs</code> are obtained from the <code>CodecFactory</code>.
592 * The <code>CodecFactory</code> is obtained through a call to
593 * <code>ORB.resolve_initial_references( "CodecFactory" )</code>.
594 */
595 local interface CodecFactory {
596 /**
597 * This exception is thrown by <code>CodecFactory.create_codec</code> when
598 * the factory cannot create a <code>Codec</code> for a given encoding.
599 */
600 exception UnknownEncoding {};
601
602 /**
603 * Create a <code>Codec</code> of the given encoding.
604 *
605 * @param enc The encoding for which to create a <code>Codec</code>.
606 * @return A <code>Codec</code> obtained with the given encoding.
607 * @exception UnknownEncoding thrown if this factory cannot create a
608 * <code>Codec</code> of the given encoding.
609 */
610 Codec create_codec (in Encoding enc) raises (UnknownEncoding);
611 };
612
613 // END part which lived in Interceptors.idl.
614
615 };
616
617 #endif // _IOP_IDL_
|