corba/src/share/classes/org/omg/PortableInterceptor/IOP.idl
author ohair
Tue, 25 May 2010 15:52:11 -0700
changeset 5555 b2b5ed3f0d0d
parent 4 02bb8761fcce
permissions -rw-r--r--
6943119: Rebrand source copyright notices Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
/*
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     2
 * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
02bb8761fcce Initial load
duke
parents:
diff changeset
     4
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
02bb8761fcce Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    10
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
02bb8761fcce Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
02bb8761fcce Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
02bb8761fcce Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
02bb8761fcce Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
02bb8761fcce Initial load
duke
parents:
diff changeset
    16
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
02bb8761fcce Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
02bb8761fcce Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
02bb8761fcce Initial load
duke
parents:
diff changeset
    20
 *
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    23
 * questions.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    24
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    25
02bb8761fcce Initial load
duke
parents:
diff changeset
    26
#ifndef _IOP_IDL_
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
#define _IOP_IDL_
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
#include "CORBAX.idl"
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
#pragma prefix "omg.org"
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
#ifndef CORBA3
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
#define local
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
#endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
module IOP {
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
    // Standard Protocol Profile tag values
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
    /** Profile ID */
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
    typedef unsigned long ProfileId;
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
     * Identifies profiles that 
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
     * support the Internet Inter-ORB Protocol. The <code>ProfileBody</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
     * of this profile contains a CDR encapsulation of a structure 
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
     * containing addressing and object identification information used by 
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
     * IIOP. Version 1.1 of the <code>TAG_INTERNET_IOP</code> profile 
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
     * also includes an array of TaggedComponent objects that can 
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
     * contain additional information supporting optional IIOP features, 
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
     * ORB services such as security, and future protocol extensions. 
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
     * Protocols other than IIOP (such as ESIOPs and other GIOPs) can share 
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
     * profile information (such as object identity or security 
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
     * information) with IIOP by encoding their additional profile information 
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
     * as components in the <code>TAG_INTERNET_IOP</code> profile. All 
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
     * <code>TAG_INTERNET_IOP</code> profiles support IIOP, regardless of 
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
     * whether they also support additional protocols. Interoperable 
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
     * ORBs are not required to create or understand any other profile, 
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
     * nor are they required to create or understand any of the components 
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
     * defined for other protocols that might share the 
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
     * <code>TAG_INTERNET_IOP</code> profile with IIOP. 
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
     * The <code>profile_data</code> for the <code>TAG_INTERNET_IOP</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
     * profile is a CDR encapsulation of the <code>IIOP.ProfileBody_1_1</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
     * type.
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
    const ProfileId TAG_INTERNET_IOP = 0;
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
     * Indicates that the value encapsulated is of type 
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
     * <code>MultipleComponentProfile</code>. In this case, the profile 
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
     * consists of a list of protocol components, the use of which must 
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
     * be specified by the protocol using this profile. This profile may 
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
     * be used to carry IOR components.  
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
     * The <code>profile_data</code> for the 
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
     * <code>TAG_MULTIPLE_COMPONENTS</code> profile is a CDR encapsulation 
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
     * of the <code>MultipleComponentProfile</code> type shown above.
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
    const ProfileId TAG_MULTIPLE_COMPONENTS = 1;
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
     * Object references have at least one tagged profile. Each profile 
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
     * supports one or more protocols and encapsulates all the basic 
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
     * information the protocols it supports need to identify an object. 
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
     * Any single profile holds enough information to drive a complete 
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
     * invocation using any of the protocols it supports; the content 
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
     * and structure of those profile entries are wholly specified by 
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
     * these protocols.
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
    struct TaggedProfile {
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
	/** The tag, represented as a profile id. */
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
        ProfileId tag;
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
	/** The associated profile data. */
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
        sequence <octet> profile_data;
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
    };
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
     * Captures information about a object references, such as whether the
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
     * object is null, what type it is, what protocols are supported, and what
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
     * ORB services are available.
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
     * This data structure need not be used internally to any given ORB, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
     * and is not intended to be visible to application-level ORB programmers.
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
     * It should be used only when crossing object reference domain 
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
     * boundaries, within bridges.
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
     * This data structure is designed to be efficient in typical 
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
     * single-protocol configurations, while not penalizing multiprotocol ones.
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
     * Object references have at least one tagged profile. Each profile 
02bb8761fcce Initial load
duke
parents:
diff changeset
   115
     * supports one or more protocols and encapsulates all the basic 
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
     * information the protocols it supports need to identify an object. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
     * Any single profile holds enough information to drive a complete
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
     * invocation using any of the protocols it supports; the content 
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
     * and structure of those profile entries are wholly specified by 
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
     * these protocols. A bridge between two domains may need to know the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
     * detailed content of the profile for those domains' profiles,
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
     * depending on the technique it uses to bridge the domains.
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
     * Each profile has a unique numeric tag, assigned by the OMG. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
     * Profile tags in the range 0x80000000 through 0xffffffff are reserved 
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
     * for future use, and are not currently available for assignment.
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
     * Null object references are indicated by an empty set of profiles, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
     * and by a "Null" type ID (a string which contains only a single 
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
     * terminating character). A Null <code>TypeID</code> is the only 
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
     * mechanism that can be used to represent the type 
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
     * <code>CORBA.Object</code>. Type IDs may only be "Null" in any message, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
     * requiring the client to use existing knowledge or to consult the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
     * object, to determine interface types supported. The type ID 
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
     * is a Repository ID identifying the interface type, and is provided 
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
     * to allow ORBs to preserve strong typing. This identifier is agreed 
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
     * on within the bridge and, for reasons outside the scope of the
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
     * interoperability specification, needs to have a much broader scope to
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
     * address various problems in system evolution and maintenance. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
     * Type IDs support detection of type equivalence, and in conjunction 
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
     * with an Interface Repository, allow processes to reason about the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
     * relationship of the type of the object referred to and any other type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
     * The type ID, if provided by the server, indicates the most derived 
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
     * type that the server wishes to publish, at the time the reference 
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
     * is generated. The object's actual most derived type may later change 
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
     * to a more derived type. Therefore, the type ID in the IOR can only 
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
     * be interpreted by the client as a hint that the object supports at 
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
     * least the indicated interface. The client can succeed in narrowing 
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
     * the reference to the indicated interface, or to one of its base 
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
     * interfaces, based solely on the type ID in the IOR, but must not fail 
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
     * to narrow the reference without consulting the object via the
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
     * "_is_a" or "_get_interface" pseudo-operations.
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
    struct IOR {
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
	/** The type id, represented as a String. */
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
        string type_id;
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
	/** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
	 * An array of tagged profiles associated with this 
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
	 * object reference. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
	 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
        sequence <TaggedProfile> profiles;
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
    };
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
     * Standard way of representing multicomponent profiles.
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
     * This would be encapsulated in a TaggedProfile.
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
    typedef unsigned long ComponentId;
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
     * <code>TaggedComponents</code> contained in 
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
     * <code>TAG_INTERNET_IOP</code> and 
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
     * <code>TAG_MULTIPLE_COMPONENTS</code> profiles are identified by 
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
     * unique numeric tags using a namespace distinct form that is used for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
     * profile tags. Component tags are assigned by the OMG.
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
     * Specifications of components must include the following information:
02bb8761fcce Initial load
duke
parents:
diff changeset
   180
     * <ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
     *   <li><i>Component ID</i>: The compound tag that is obtained 
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
     *       from OMG.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
     *   <li><i>Structure and encoding</i>: The syntax of the component 
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
     *       data and the encoding rules.  If the component value is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
     *       encoded as a CDR encapsulation, the IDL type that is
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
     *       encapsulated and the GIOP version which is used for encoding 
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
     *       the value, if different than GIOP 1.0, must be specified as 
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
     *       part of the component definition.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
     *   <li><i>Semantics</i>: How the component data is intended to be 
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
     *       used.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   191
     *   <li><i>Protocols</i>: The protocol for which the component is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   192
     *       defined, and whether it is intended that the component be 
02bb8761fcce Initial load
duke
parents:
diff changeset
   193
     *       usable by other protocols.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
     *   <li><i>At most once</i>: whether more than one instance of this 
02bb8761fcce Initial load
duke
parents:
diff changeset
   195
     *       component can be included in a profile.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   196
     * </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
     * Specification of protocols must describe how the components affect 
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
     * the protocol. The following should be specified in any protocol 
02bb8761fcce Initial load
duke
parents:
diff changeset
   199
     * definition for each <code>TaggedComponent</code> that the protocol uses:
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
     * <ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   201
     *   <li><i>Mandatory presence</i>: Whether inclusion of the component 
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
     *       in profiles supporting the protocol is required (MANDATORY 
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
     *       PRESENCE) or not required (OPTIONAL PRESENCE).</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   204
     *   <li><i>Droppable</i>: For optional presence component, whether 
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
     *       component, if present, must be retained or may be dropped.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
     * </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
    struct TaggedComponent {
02bb8761fcce Initial load
duke
parents:
diff changeset
   209
	/** The tag, represented as a component id. */
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
        ComponentId tag;
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
02bb8761fcce Initial load
duke
parents:
diff changeset
   212
	/** The component data associated with the component id. */
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
        sequence <octet> component_data;
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
    };
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
     * It is often useful in the real world to be able to identify the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   218
     * particular kind of ORB an object reference is coming from, to work 
02bb8761fcce Initial load
duke
parents:
diff changeset
   219
     * around problems with that particular ORB, or exploit shared 
02bb8761fcce Initial load
duke
parents:
diff changeset
   220
     * efficiencies. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   221
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   222
     * The <code>TAG_ORB_TYPE</code> component has an associated value of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   223
     * type unsigned long (Java long), encoded as a CDR encapsulation, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   224
     * designating an ORB type ID allocated by the OMG for the ORB type of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   225
     * originating ORB. Anyone may register any ORB types by submitting 
02bb8761fcce Initial load
duke
parents:
diff changeset
   226
     * a short (one-paragraph) description of the ORB type to the OMG, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   227
     * and will receive a new ORB type ID in return. A list of ORB type 
02bb8761fcce Initial load
duke
parents:
diff changeset
   228
     * descriptions and values will be made available on the OMG web server. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   229
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   230
     * The <code>TAG_ORB_TYPE</code> component can appear at most once in 
02bb8761fcce Initial load
duke
parents:
diff changeset
   231
     * any IOR profile. For profiles supporting IIOP 1.1 or greater, it 
02bb8761fcce Initial load
duke
parents:
diff changeset
   232
     * is optionally present.
02bb8761fcce Initial load
duke
parents:
diff changeset
   233
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   234
    const ComponentId TAG_ORB_TYPE = 0 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   235
02bb8761fcce Initial load
duke
parents:
diff changeset
   236
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   237
     * The code set component of the IOR multi-component profile structure
02bb8761fcce Initial load
duke
parents:
diff changeset
   238
     * contains:
02bb8761fcce Initial load
duke
parents:
diff changeset
   239
     * <ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   240
     *   <li>server's native char code set and conversion code sets, and</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   241
     *   <li>server's native wchar code set and conversion code sets.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   242
     * </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   243
     * Both char and wchar conversion code sets are listed in order of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   244
     * preference.
02bb8761fcce Initial load
duke
parents:
diff changeset
   245
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   246
    const ComponentId TAG_CODE_SETS = 1 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   247
02bb8761fcce Initial load
duke
parents:
diff changeset
   248
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   249
     * A profile component containing the sequence of QoS policies exported
02bb8761fcce Initial load
duke
parents:
diff changeset
   250
     * with the object reference by an object adapter.
02bb8761fcce Initial load
duke
parents:
diff changeset
   251
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   252
    const ComponentId TAG_POLICIES = 2 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   253
02bb8761fcce Initial load
duke
parents:
diff changeset
   254
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   255
     * In cases where the same object key is used for more than one 
02bb8761fcce Initial load
duke
parents:
diff changeset
   256
     * internet location, the following standard IOR Component is defined 
02bb8761fcce Initial load
duke
parents:
diff changeset
   257
     * for support in IIOP version 1.2. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   258
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   259
     * The <code>TAG_ALTERNATE_IIOP_ADDRESS</code> component has an 
02bb8761fcce Initial load
duke
parents:
diff changeset
   260
     * associated value of type:
02bb8761fcce Initial load
duke
parents:
diff changeset
   261
     * <code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   262
     *   <pre>
02bb8761fcce Initial load
duke
parents:
diff changeset
   263
     *     struct { 
02bb8761fcce Initial load
duke
parents:
diff changeset
   264
     *         string HostID, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   265
     *         short Port 
02bb8761fcce Initial load
duke
parents:
diff changeset
   266
     *     }; 
02bb8761fcce Initial load
duke
parents:
diff changeset
   267
     *   </pre>
02bb8761fcce Initial load
duke
parents:
diff changeset
   268
     * </code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   269
     * encoded as a CDR encapsulation. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   270
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   271
     * Zero or more instances of the <code>TAG_ALTERNATE_IIOP_ADDRESS</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   272
     * component type may be included in a version 1.2 
02bb8761fcce Initial load
duke
parents:
diff changeset
   273
     * <code>TAG_INTERNET_IOP</code> Profile. Each of these alternative 
02bb8761fcce Initial load
duke
parents:
diff changeset
   274
     * addresses may be used by the client orb, in addition to the host 
02bb8761fcce Initial load
duke
parents:
diff changeset
   275
     * and port address expressed in the body of the Profile. In cases 
02bb8761fcce Initial load
duke
parents:
diff changeset
   276
     * where one or more <code>TAG_ALTERNATE_IIOP_ADDRESS</code> components 
02bb8761fcce Initial load
duke
parents:
diff changeset
   277
     * are present in a <code>TAG_INTERNET_IOP</code> Profile, no order of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   278
     * use is prescribed by Version 1.2 of IIOP.
02bb8761fcce Initial load
duke
parents:
diff changeset
   279
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   280
    const ComponentId TAG_ALTERNATE_IIOP_ADDRESS = 3 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   281
02bb8761fcce Initial load
duke
parents:
diff changeset
   282
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   283
     * Class downloading is supported for stubs, ties, values, and 
02bb8761fcce Initial load
duke
parents:
diff changeset
   284
     * value helpers. The specification allows transmission of codebase 
02bb8761fcce Initial load
duke
parents:
diff changeset
   285
     * information on the wire for stubs and ties, and enables usage of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   286
     * pre-existing ClassLoaders when relevant.  
02bb8761fcce Initial load
duke
parents:
diff changeset
   287
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   288
     * For values and value helpers, the codebase is transmitted after the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   289
     * value tag.  For stubs and ties, the codebase is transmitted as 
02bb8761fcce Initial load
duke
parents:
diff changeset
   290
     * the TaggedComponent <code>TAG_JAVA_CODEBASE</code> in the IOR 
02bb8761fcce Initial load
duke
parents:
diff changeset
   291
     * profile, where the <code>component_data</code> is a CDR encapsulation 
02bb8761fcce Initial load
duke
parents:
diff changeset
   292
     * of the codebase written as an IDL string. The codebase is a 
02bb8761fcce Initial load
duke
parents:
diff changeset
   293
     * space-separated list of one or more URLs.
02bb8761fcce Initial load
duke
parents:
diff changeset
   294
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   295
    const ComponentId TAG_JAVA_CODEBASE = 25 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   296
02bb8761fcce Initial load
duke
parents:
diff changeset
   297
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   298
     * RMI-IIOP has multiple stream format versions.  A server
02bb8761fcce Initial load
duke
parents:
diff changeset
   299
     * can specify its maximum version by including the
02bb8761fcce Initial load
duke
parents:
diff changeset
   300
     * TAG_RMI_CUSTOM_MAX_STREAM_FORMAT tagged component or
02bb8761fcce Initial load
duke
parents:
diff changeset
   301
     * rely on the default of version 1 for GIOP 1.2 and less
02bb8761fcce Initial load
duke
parents:
diff changeset
   302
     * and version 2 for GIOP 1.3 and higher.
02bb8761fcce Initial load
duke
parents:
diff changeset
   303
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   304
     * See Java to IDL ptc/02-01-12 1.4.11.
02bb8761fcce Initial load
duke
parents:
diff changeset
   305
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   306
    const ComponentId TAG_RMI_CUSTOM_MAX_STREAM_FORMAT = 38 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   307
02bb8761fcce Initial load
duke
parents:
diff changeset
   308
    /** An array of tagged components, forming a multiple component profile. */
02bb8761fcce Initial load
duke
parents:
diff changeset
   309
    typedef sequence <TaggedComponent> MultipleComponentProfile;
02bb8761fcce Initial load
duke
parents:
diff changeset
   310
02bb8761fcce Initial load
duke
parents:
diff changeset
   311
    /** A service id, represented as an int */
02bb8761fcce Initial load
duke
parents:
diff changeset
   312
    typedef unsigned long ServiceId;
02bb8761fcce Initial load
duke
parents:
diff changeset
   313
02bb8761fcce Initial load
duke
parents:
diff changeset
   314
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   315
     * Service-specific information to be passed implicitly with requests
02bb8761fcce Initial load
duke
parents:
diff changeset
   316
     * and replies.  Service contexts are composed of service ids and
02bb8761fcce Initial load
duke
parents:
diff changeset
   317
     * associated data.
02bb8761fcce Initial load
duke
parents:
diff changeset
   318
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   319
    struct ServiceContext {
02bb8761fcce Initial load
duke
parents:
diff changeset
   320
	/** The service context id */
02bb8761fcce Initial load
duke
parents:
diff changeset
   321
        ServiceId context_id;
02bb8761fcce Initial load
duke
parents:
diff changeset
   322
02bb8761fcce Initial load
duke
parents:
diff changeset
   323
	/** The data associated with this service context */
02bb8761fcce Initial load
duke
parents:
diff changeset
   324
        sequence <octet> context_data;
02bb8761fcce Initial load
duke
parents:
diff changeset
   325
    };
02bb8761fcce Initial load
duke
parents:
diff changeset
   326
02bb8761fcce Initial load
duke
parents:
diff changeset
   327
    /** An array of service contexts, forming a service context list. */
02bb8761fcce Initial load
duke
parents:
diff changeset
   328
    typedef sequence <ServiceContext>ServiceContextList;
02bb8761fcce Initial load
duke
parents:
diff changeset
   329
02bb8761fcce Initial load
duke
parents:
diff changeset
   330
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   331
     * Identifies a CDR encapsulation of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   332
     * <code>CosTSInteroperation.PropogationContext</code> defined in 
02bb8761fcce Initial load
duke
parents:
diff changeset
   333
     * <i>CORBAservices: Common Object Services Specifications.</i>
02bb8761fcce Initial load
duke
parents:
diff changeset
   334
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   335
    const ServiceId TransactionService = 0;
02bb8761fcce Initial load
duke
parents:
diff changeset
   336
02bb8761fcce Initial load
duke
parents:
diff changeset
   337
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   338
     * Identifies a CDR encapsulation of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   339
     * <code>CONV_FRAME.CodeSetContext</code> defined in 
02bb8761fcce Initial load
duke
parents:
diff changeset
   340
     * Section 13.10.2.5, "GIOP Code Set Service Context," on page 13-43.
02bb8761fcce Initial load
duke
parents:
diff changeset
   341
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   342
    const ServiceId CodeSets = 1;
02bb8761fcce Initial load
duke
parents:
diff changeset
   343
02bb8761fcce Initial load
duke
parents:
diff changeset
   344
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   345
     * Identifies a CDR encapsulation of the RMICustomMaxStreamFormat
02bb8761fcce Initial load
duke
parents:
diff changeset
   346
     * service context which contains a single byte specifying
02bb8761fcce Initial load
duke
parents:
diff changeset
   347
     * the client's maximum RMI-IIOP stream format version.
02bb8761fcce Initial load
duke
parents:
diff changeset
   348
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   349
     * See Java to IDL ptc/02-01-12 1.4.12.
02bb8761fcce Initial load
duke
parents:
diff changeset
   350
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   351
    const ServiceId RMICustomMaxStreamFormat = 17 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   352
02bb8761fcce Initial load
duke
parents:
diff changeset
   353
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   354
     * DCOM-CORBA Interworking uses three service contexts as defined in 
02bb8761fcce Initial load
duke
parents:
diff changeset
   355
     * "DCOM-CORBA Interworking" in the "Interoperability with non-CORBA 
02bb8761fcce Initial load
duke
parents:
diff changeset
   356
     * Systems" chapter.
02bb8761fcce Initial load
duke
parents:
diff changeset
   357
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   358
     * <code>ChainBypassCheck</code> carries a CDR encapsulation of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   359
     * <code>struct CosBridging.ChainBypassCheck</code>. This is carried 
02bb8761fcce Initial load
duke
parents:
diff changeset
   360
     * only in a Request message as described in Section 20.9.1, "CORBA 
02bb8761fcce Initial load
duke
parents:
diff changeset
   361
     * Chain Bypass," on page 20-19. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   362
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   363
    const ServiceId ChainBypassCheck = 2;
02bb8761fcce Initial load
duke
parents:
diff changeset
   364
02bb8761fcce Initial load
duke
parents:
diff changeset
   365
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   366
     * DCOM-CORBA Interworking uses three service contexts as defined in 
02bb8761fcce Initial load
duke
parents:
diff changeset
   367
     * "DCOM-CORBA Interworking" in the "Interoperability with non-CORBA 
02bb8761fcce Initial load
duke
parents:
diff changeset
   368
     * Systems" chapter.
02bb8761fcce Initial load
duke
parents:
diff changeset
   369
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   370
     * <code>ChainBypassInfo</code> carries a CDR encapsulation of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   371
     * <code>struct CosBridging.ChainBypassInfo</code>. This is carried 
02bb8761fcce Initial load
duke
parents:
diff changeset
   372
     * only in a Reply message as described in Section 20.9.1, "CORBA Chain 
02bb8761fcce Initial load
duke
parents:
diff changeset
   373
     * Bypass," on page 20-19.
02bb8761fcce Initial load
duke
parents:
diff changeset
   374
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   375
    const ServiceId ChainBypassInfo = 3;
02bb8761fcce Initial load
duke
parents:
diff changeset
   376
02bb8761fcce Initial load
duke
parents:
diff changeset
   377
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   378
     * DCOM-CORBA Interworking uses three service contexts as defined in 
02bb8761fcce Initial load
duke
parents:
diff changeset
   379
     * "DCOM-CORBA Interworking" in the "Interoperability with non-CORBA 
02bb8761fcce Initial load
duke
parents:
diff changeset
   380
     * Systems" chapter.
02bb8761fcce Initial load
duke
parents:
diff changeset
   381
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   382
     * <code>LogicalThreadId</code>, carries a CDR encapsulation of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   383
     * the <code>struct CosBridging.LogicalThreadId</code> as described 
02bb8761fcce Initial load
duke
parents:
diff changeset
   384
     * in Section 20.10, "Thread Identification," on page 20-21.
02bb8761fcce Initial load
duke
parents:
diff changeset
   385
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   386
    const ServiceId LogicalThreadId = 4;
02bb8761fcce Initial load
duke
parents:
diff changeset
   387
02bb8761fcce Initial load
duke
parents:
diff changeset
   388
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   389
     * Identifies a CDR encapsulation of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   390
     * <code>IIOP.BiDirIIOPServiceContext</code> defined in Section 15.8, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   391
     * "Bi-Directional GIOP," on page 15-55.
02bb8761fcce Initial load
duke
parents:
diff changeset
   392
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   393
    const ServiceId BI_DIR_IIOP = 5;
02bb8761fcce Initial load
duke
parents:
diff changeset
   394
02bb8761fcce Initial load
duke
parents:
diff changeset
   395
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   396
     * Identifies a CDR encapsulation of the IOR of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   397
     * <code>SendingContext.RunTime</code> object (see Section 5.6, "Access 
02bb8761fcce Initial load
duke
parents:
diff changeset
   398
     * to the Sending Context Run Time," on page 5-15). 
02bb8761fcce Initial load
duke
parents:
diff changeset
   399
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   400
    const ServiceId SendingContextRunTime = 6;
02bb8761fcce Initial load
duke
parents:
diff changeset
   401
02bb8761fcce Initial load
duke
parents:
diff changeset
   402
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   403
     * For information on <code>INVOCATION_POLICIES</code> refer to the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   404
     * Asynchronous Messaging specification - orbos/98-05-05.
02bb8761fcce Initial load
duke
parents:
diff changeset
   405
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   406
    const ServiceId INVOCATION_POLICIES = 7;
02bb8761fcce Initial load
duke
parents:
diff changeset
   407
02bb8761fcce Initial load
duke
parents:
diff changeset
   408
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   409
     * For information on <code>FORWARDED_IDENTITY</code> refer to the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   410
     * Firewall specification - orbos/98-05-04.
02bb8761fcce Initial load
duke
parents:
diff changeset
   411
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   412
    const ServiceId FORWARDED_IDENTITY = 8;
02bb8761fcce Initial load
duke
parents:
diff changeset
   413
02bb8761fcce Initial load
duke
parents:
diff changeset
   414
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   415
     * Identifies a CDR encapsulation of a marshaled instance of a 
02bb8761fcce Initial load
duke
parents:
diff changeset
   416
     * java.lang.Throwable or one of its subclasses as described in Java 
02bb8761fcce Initial load
duke
parents:
diff changeset
   417
     * to IDL Language Mapping, Section 1.4.8.1, "Mapping of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   418
     * UnknownExceptionInfo Service Context," on page 1-32.
02bb8761fcce Initial load
duke
parents:
diff changeset
   419
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   420
    const ServiceId UnknownExceptionInfo = 9;
02bb8761fcce Initial load
duke
parents:
diff changeset
   421
02bb8761fcce Initial load
duke
parents:
diff changeset
   422
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   423
     * CORBA formal/02-06-01: 13.7.1:
02bb8761fcce Initial load
duke
parents:
diff changeset
   424
     * ExceptionDetailMessage identifies a CDR encapsulation of a wstring,
02bb8761fcce Initial load
duke
parents:
diff changeset
   425
     * encoded using GIOP 1.2 with a TCS-W of UTF-16.  This service context
02bb8761fcce Initial load
duke
parents:
diff changeset
   426
     * may be sent on Reply messages with a reply_status of SYSTEM_EXCEPTION
02bb8761fcce Initial load
duke
parents:
diff changeset
   427
     * or USER_EXCEPTION. The usage of this service context is defined
02bb8761fcce Initial load
duke
parents:
diff changeset
   428
     * by language mappings. <br/> <br/>
02bb8761fcce Initial load
duke
parents:
diff changeset
   429
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   430
     * IDL/Java: ptc/02-01-22: 1.15.2: 
02bb8761fcce Initial load
duke
parents:
diff changeset
   431
     * When a System Exception is marshaled, its GIOP Reply message shall
02bb8761fcce Initial load
duke
parents:
diff changeset
   432
     * include an associated ExceptionDetailMessage service context. The
02bb8761fcce Initial load
duke
parents:
diff changeset
   433
     * callee's stack trace is often very valuable debugging information but
02bb8761fcce Initial load
duke
parents:
diff changeset
   434
     * may contain sensitive or unwanted information. The wstring within the
02bb8761fcce Initial load
duke
parents:
diff changeset
   435
     * service context will therefore contain additional information relating
02bb8761fcce Initial load
duke
parents:
diff changeset
   436
     * to the exception, for example the result of calling either
02bb8761fcce Initial load
duke
parents:
diff changeset
   437
     * printStackTrace(PrintWriter) or getMessage() on the exception. When
02bb8761fcce Initial load
duke
parents:
diff changeset
   438
     * unmarshaling a System Exception on the client side, the wstring from
02bb8761fcce Initial load
duke
parents:
diff changeset
   439
     * any ExceptionDetailMessage service context shall become the Java error
02bb8761fcce Initial load
duke
parents:
diff changeset
   440
     * message in the unmarshaled exception object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   441
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   442
    const ServiceId ExceptionDetailMessage = 14;
02bb8761fcce Initial load
duke
parents:
diff changeset
   443
02bb8761fcce Initial load
duke
parents:
diff changeset
   444
02bb8761fcce Initial load
duke
parents:
diff changeset
   445
    // BEGIN part which lived in Interceptors.idl.
02bb8761fcce Initial load
duke
parents:
diff changeset
   446
02bb8761fcce Initial load
duke
parents:
diff changeset
   447
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   448
   * An array of <code>TaggedComponent</code> objects.
02bb8761fcce Initial load
duke
parents:
diff changeset
   449
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   450
  typedef sequence<IOP::TaggedComponent> TaggedComponentSeq;
02bb8761fcce Initial load
duke
parents:
diff changeset
   451
02bb8761fcce Initial load
duke
parents:
diff changeset
   452
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   453
   * The formats of IOR components and service context data used by ORB 
02bb8761fcce Initial load
duke
parents:
diff changeset
   454
   * services are often defined as CDR encapsulations encoding instances 
02bb8761fcce Initial load
duke
parents:
diff changeset
   455
   * of IDL defined data types. The <code>Codec</code> provides a mechanism 
02bb8761fcce Initial load
duke
parents:
diff changeset
   456
   * to transfer these components between their IDL data types and their CDR 
02bb8761fcce Initial load
duke
parents:
diff changeset
   457
   * encapsulation representations. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   458
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   459
   * A <code>Codec</code> is obtained from the <code>CodecFactory</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   460
   * The <code>CodecFactory</code> is obtained through a call to 
02bb8761fcce Initial load
duke
parents:
diff changeset
   461
   * <code>ORB.resolve_initial_references( "CodecFactory" )</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   462
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   463
  local interface Codec {
02bb8761fcce Initial load
duke
parents:
diff changeset
   464
02bb8761fcce Initial load
duke
parents:
diff changeset
   465
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   466
     * This exception is thrown by <code>Codec.encode</code> or 
02bb8761fcce Initial load
duke
parents:
diff changeset
   467
     * <code>Codec.encode_value</code> when the type is invalid for the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   468
     * encoding. For example, this exception is thrown if the encoding is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   469
     * <code>ENCODING_CDR_ENCAPS</code> version 1.0 and a type 
02bb8761fcce Initial load
duke
parents:
diff changeset
   470
     * that does not exist in that version, such as <code>wstring</code>, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   471
     * is passed to the operation.
02bb8761fcce Initial load
duke
parents:
diff changeset
   472
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   473
    exception InvalidTypeForEncoding {};
02bb8761fcce Initial load
duke
parents:
diff changeset
   474
02bb8761fcce Initial load
duke
parents:
diff changeset
   475
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   476
     * This exception is thrown by <code>Codec.decode</code> or 
02bb8761fcce Initial load
duke
parents:
diff changeset
   477
     * <code>Codec.decode_value</code> when the data in the byte array 
02bb8761fcce Initial load
duke
parents:
diff changeset
   478
     * cannot be decoded into an Any.
02bb8761fcce Initial load
duke
parents:
diff changeset
   479
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   480
    exception FormatMismatch {};
02bb8761fcce Initial load
duke
parents:
diff changeset
   481
02bb8761fcce Initial load
duke
parents:
diff changeset
   482
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   483
     * This exception is thrown by <code>decode_value</code> when the given 
02bb8761fcce Initial load
duke
parents:
diff changeset
   484
     * <code>TypeCode</code> does not match the given byte array.
02bb8761fcce Initial load
duke
parents:
diff changeset
   485
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   486
    exception TypeMismatch {};
02bb8761fcce Initial load
duke
parents:
diff changeset
   487
02bb8761fcce Initial load
duke
parents:
diff changeset
   488
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   489
     * Converts the given any into a byte array based on the encoding 
02bb8761fcce Initial load
duke
parents:
diff changeset
   490
     * format effective for this <code>Codec</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   491
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   492
     * @param data The data, in the form of an any, to be encoded into 
02bb8761fcce Initial load
duke
parents:
diff changeset
   493
     *     a byte array.
02bb8761fcce Initial load
duke
parents:
diff changeset
   494
     * @return A byte array containing the encoded Any. This byte array 
02bb8761fcce Initial load
duke
parents:
diff changeset
   495
     *     contains both the <code>TypeCode</code> and the data of the type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   496
     * @exception InvalidTypeForEncoding thrown if the type is not valid for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   497
     *     the encoding format effective for this <code>Codec</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   498
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   499
    CORBA::OctetSeq encode (in any data) 
02bb8761fcce Initial load
duke
parents:
diff changeset
   500
      raises (InvalidTypeForEncoding);
02bb8761fcce Initial load
duke
parents:
diff changeset
   501
02bb8761fcce Initial load
duke
parents:
diff changeset
   502
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   503
     * Decodes the given byte array into an Any based on the encoding 
02bb8761fcce Initial load
duke
parents:
diff changeset
   504
     * format effective for this <code>Codec</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   505
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   506
     * @param data The data, in the form of a byte array, to be decoded into 
02bb8761fcce Initial load
duke
parents:
diff changeset
   507
     *     an Any. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   508
     * @return An Any containing the data from the decoded byte array.
02bb8761fcce Initial load
duke
parents:
diff changeset
   509
     * @exception FormatMismatch is thrown if the byte array cannot be 
02bb8761fcce Initial load
duke
parents:
diff changeset
   510
     *     decoded into an Any. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   511
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   512
    any decode (in CORBA::OctetSeq data) raises (FormatMismatch);
02bb8761fcce Initial load
duke
parents:
diff changeset
   513
02bb8761fcce Initial load
duke
parents:
diff changeset
   514
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   515
     * Converts the given any into a byte array based on the encoding 
02bb8761fcce Initial load
duke
parents:
diff changeset
   516
     * format effective for this Codec. Only the data from the Any is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   517
     * encoded, not the <code>TypeCode</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   518
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   519
     * @param data The data, in the form of an Any, to be encoded into 
02bb8761fcce Initial load
duke
parents:
diff changeset
   520
     *     a byte array. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   521
     * @return A byte array containing the data from the encoded any.
02bb8761fcce Initial load
duke
parents:
diff changeset
   522
     * @exception InvalidTypeForEncoding thrown if the type is not valid for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   523
     *     the encoding format effective for this <code>Codec</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   524
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   525
    CORBA::OctetSeq encode_value (in any data) 
02bb8761fcce Initial load
duke
parents:
diff changeset
   526
      raises (InvalidTypeForEncoding);
02bb8761fcce Initial load
duke
parents:
diff changeset
   527
02bb8761fcce Initial load
duke
parents:
diff changeset
   528
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   529
     * Decodes the given byte array into an Any based on the given 
02bb8761fcce Initial load
duke
parents:
diff changeset
   530
     * <code>TypeCode</code> and the encoding format effective for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   531
     * this <code>Codec</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   532
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   533
     * @param data The data, in the form of a byte array, to be decoded 
02bb8761fcce Initial load
duke
parents:
diff changeset
   534
     *     into an Any. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   535
     * @param tc The TypeCode to be used to decode the data. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   536
     * @return An Any containing the data from the decoded byte array.
02bb8761fcce Initial load
duke
parents:
diff changeset
   537
     * @exception FormatMismatch thrown if the byte array cannot be 
02bb8761fcce Initial load
duke
parents:
diff changeset
   538
     *     decoded into an Any. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   539
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   540
    any decode_value (in CORBA::OctetSeq data, in CORBA::TypeCode tc)
02bb8761fcce Initial load
duke
parents:
diff changeset
   541
      raises (FormatMismatch, TypeMismatch);
02bb8761fcce Initial load
duke
parents:
diff changeset
   542
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
   543
02bb8761fcce Initial load
duke
parents:
diff changeset
   544
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   545
   * Defines an encoding format of a <code>Codec</code>, such as 
02bb8761fcce Initial load
duke
parents:
diff changeset
   546
   * CDR Encapsulation (<code>ENCODING_CDR_ENCAPS</code>).
02bb8761fcce Initial load
duke
parents:
diff changeset
   547
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   548
  typedef short EncodingFormat;
02bb8761fcce Initial load
duke
parents:
diff changeset
   549
02bb8761fcce Initial load
duke
parents:
diff changeset
   550
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   551
   * The CDR Encapsulation encoding.
02bb8761fcce Initial load
duke
parents:
diff changeset
   552
   * @see CodecFactory
02bb8761fcce Initial load
duke
parents:
diff changeset
   553
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   554
  const EncodingFormat ENCODING_CDR_ENCAPS = 0;
02bb8761fcce Initial load
duke
parents:
diff changeset
   555
02bb8761fcce Initial load
duke
parents:
diff changeset
   556
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   557
   * Defines the encoding format of a <code>Codec</code>. This class 
02bb8761fcce Initial load
duke
parents:
diff changeset
   558
   * details the encoding format, such as CDR Encapsulation encoding, and 
02bb8761fcce Initial load
duke
parents:
diff changeset
   559
   * the major and minor versions of that format. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   560
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   561
   * The encodings currently supported are: 
02bb8761fcce Initial load
duke
parents:
diff changeset
   562
   * <ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   563
   *   <li><code>ENCODING_CDR_ENCAPS</code>, version 1.0;</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   564
   *   <li><code>ENCODING_CDR_ENCAPS</code>, version 1.1;</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   565
   *   <li><code>ENCODING_CDR_ENCAPS</code>, version 1.2;</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   566
   *   <li><code>ENCODING_CDR_ENCAPS</code> for all future versions of GIOP as 
02bb8761fcce Initial load
duke
parents:
diff changeset
   567
   *       they arise.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   568
   * </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   569
   * Vendors are free to support additional encodings.
02bb8761fcce Initial load
duke
parents:
diff changeset
   570
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   571
   * @see ENCODING_CDR_ENCAPS
02bb8761fcce Initial load
duke
parents:
diff changeset
   572
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   573
  struct Encoding {
02bb8761fcce Initial load
duke
parents:
diff changeset
   574
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   575
     * The encoding format.
02bb8761fcce Initial load
duke
parents:
diff changeset
   576
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   577
    EncodingFormat format;
02bb8761fcce Initial load
duke
parents:
diff changeset
   578
02bb8761fcce Initial load
duke
parents:
diff changeset
   579
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   580
     * The major version of this Encoding format.
02bb8761fcce Initial load
duke
parents:
diff changeset
   581
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   582
    octet major_version;
02bb8761fcce Initial load
duke
parents:
diff changeset
   583
02bb8761fcce Initial load
duke
parents:
diff changeset
   584
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   585
     * The minor version of this Encoding format.
02bb8761fcce Initial load
duke
parents:
diff changeset
   586
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   587
    octet minor_version;
02bb8761fcce Initial load
duke
parents:
diff changeset
   588
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
   589
  
02bb8761fcce Initial load
duke
parents:
diff changeset
   590
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   591
   * <code>Codecs</code> are obtained from the <code>CodecFactory</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   592
   * The <code>CodecFactory</code> is obtained through a call to 
02bb8761fcce Initial load
duke
parents:
diff changeset
   593
   * <code>ORB.resolve_initial_references( "CodecFactory" )</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   594
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   595
  local interface CodecFactory {
02bb8761fcce Initial load
duke
parents:
diff changeset
   596
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   597
     * This exception is thrown by <code>CodecFactory.create_codec</code> when
02bb8761fcce Initial load
duke
parents:
diff changeset
   598
     * the factory cannot create a <code>Codec</code> for a given encoding.
02bb8761fcce Initial load
duke
parents:
diff changeset
   599
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   600
    exception UnknownEncoding {};
02bb8761fcce Initial load
duke
parents:
diff changeset
   601
02bb8761fcce Initial load
duke
parents:
diff changeset
   602
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   603
     * Create a <code>Codec</code> of the given encoding.
02bb8761fcce Initial load
duke
parents:
diff changeset
   604
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   605
     * @param enc The encoding for which to create a <code>Codec</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   606
     * @return A <code>Codec</code> obtained with the given encoding.
02bb8761fcce Initial load
duke
parents:
diff changeset
   607
     * @exception UnknownEncoding thrown if this factory cannot create a 
02bb8761fcce Initial load
duke
parents:
diff changeset
   608
     *     <code>Codec</code> of the given encoding.
02bb8761fcce Initial load
duke
parents:
diff changeset
   609
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   610
    Codec create_codec (in Encoding enc) raises (UnknownEncoding);
02bb8761fcce Initial load
duke
parents:
diff changeset
   611
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
   612
02bb8761fcce Initial load
duke
parents:
diff changeset
   613
    // END part which lived in Interceptors.idl.
02bb8761fcce Initial load
duke
parents:
diff changeset
   614
02bb8761fcce Initial load
duke
parents:
diff changeset
   615
};
02bb8761fcce Initial load
duke
parents:
diff changeset
   616
02bb8761fcce Initial load
duke
parents:
diff changeset
   617
#endif // _IOP_IDL_