corba/src/share/classes/org/omg/PortableInterceptor/Interceptors.idl
author andrew
Sat, 16 Jan 2010 01:04:04 +0000
changeset 4623 e3aaa29eff65
parent 4 02bb8761fcce
child 5555 b2b5ed3f0d0d
permissions -rw-r--r--
6917485: Corba doc warnings Summary: Fix warnings generated by javadoc Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
/*
02bb8761fcce Initial load
duke
parents:
diff changeset
     2
 * Copyright 2000-2003 Sun Microsystems, Inc.  All Rights Reserved.
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
02bb8761fcce Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
02bb8761fcce Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
02bb8761fcce Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
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
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
02bb8761fcce Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
02bb8761fcce Initial load
duke
parents:
diff changeset
    23
 * have any questions.
02bb8761fcce Initial load
duke
parents:
diff changeset
    24
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    25
02bb8761fcce Initial load
duke
parents:
diff changeset
    26
/*
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
 * Differences from original:
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
 * - do not include orb.idl
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
 * - include IOP.idl, Messaging.idl and CORBAX.idl
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
 * - renamed component parameter names to tagged_component (so that they 
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
 *   do not conflict with the CORBA 3.0 "component" keyword).
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
 * - javadocs added (synchronized with orbos/00-08-06)
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
 * 
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
 * NOTE: After compilation of this IDL file, all Helper and Holder classes
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
 * that are not needed are removed.
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
#include "IOP.idl"
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
#include "Messaging.idl"
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
#include "CORBAX.idl"
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
#include "corba.idl"
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
#pragma prefix "omg.org"
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
#ifndef CORBA3
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
#define local
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
#endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
module Dynamic {
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
   * <code>NVList</code> PIDL represented by <code>ParameterList</code> IDL.  
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
   * This exists in order to keep the Portable Interceptor IDL from becoming 
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
   * PIDL.
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
  struct Parameter {
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
    any argument;
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
    CORBA::ParameterMode mode;
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
   * <code>NVList</code> PIDL represented by <code>ParameterList</code> IDL.  
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
   * This exists in order to keep the Portable Interceptor IDL from becoming 
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
   * PIDL.
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
  typedef sequence<Parameter> ParameterList;
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
   * <code>ContextList</code> PIDL represented by <code>ContextList</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
   * IDL.  This exists in order to keep the Portable Interceptor IDL from 
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
   * becoming PIDL.
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
  typedef CORBA::StringSeq ContextList;
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
   * <code>ExceptionList</code> PIDL represented by <code>ExceptionList</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
   * IDL.  This exists in order to keep the Portable Interceptor IDL from 
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
   * becoming PIDL.
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
  typedef sequence<CORBA::TypeCode> ExceptionList;
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
   * <code>Context</code> PIDL represented by <code>RequestContext</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
   * IDL.  This exists in order to keep the Portable Interceptor IDL from o
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
   * becoming PIDL.
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
   * <code>Context</code> objects are encoded as <code>String[]</code>.  The 
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
   * <code>Strings</code> occur in pairs.  The first <code>String</code> in 
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
   * each pair is the context property name and the second <code>String</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
   * in each pair is the associated value.
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
  typedef CORBA::StringSeq RequestContext;
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
};
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
module PortableInterceptor {
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
   * All Portable Interceptors implement Interceptor.
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
  local interface Interceptor {
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
     * Returns the name of the interceptor.
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
     * Each Interceptor may have a name that may be used administratively 
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
     * to order the lists of Interceptors. Only one Interceptor of a given 
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
     * name can be registered with the ORB for each Interceptor type. An 
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
     * Interceptor may be anonymous, i.e., have an empty string as the name 
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
     * attribute. Any number of anonymous Interceptors may be registered with 
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
     * the ORB.
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
     * @return the name of the interceptor.
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
    readonly attribute string name;
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
    // Added in ptc/00-08-06
02bb8761fcce Initial load
duke
parents:
diff changeset
   115
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
     * Provides an opportunity to destroy this interceptor.
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
     * The destroy method is called during <code>ORB.destroy</code>. When an 
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
     * application calls <code>ORB.destroy</code>, the ORB:
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
     * <ol>
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
     *   <li>waits for all requests in progress to complete</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
     *   <li>calls the <code>Interceptor.destroy</code> operation for each 
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
     *       interceptor</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
     *   <li>completes destruction of the ORB</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
     * </ol>
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
     * Method invocations from within <code>Interceptor.destroy</code> on 
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
     * object references for objects implemented on the ORB being destroyed 
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
     * result in undefined behavior. However, method invocations on objects 
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
     * implemented on an ORB other than the one being destroyed are 
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
     * permitted. (This means that the ORB being destroyed is still capable 
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
     * of acting as a client, but not as a server.) 
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
    void destroy();
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
   * The <code>ForwardRequest</code> exception is the means by which an 
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
   * Interceptor can indicate to the ORB that a retry of the request should 
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
   * occur with the new object given in the exception. This behavior of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
   * causing a retry only occurs if the ORB receives a ForwardRequest from 
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
   * an interceptor. If <code>ForwardRequest</code> is thrown anywhere else 
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
   * it is passed through the ORB as is normal for a user exception. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
   * If an Interceptor throws a <code>ForwardRequest</code> exception in 
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
   * response to a call of an interceptor, no other Interceptors are called 
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
   * for that interception point. The remaining Interceptors in the Flow Stack 
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
   * shall have their appropriate ending interception point called: 
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
   * <code>receive_other</code> on the client, or <code>send_other</code> on 
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
   * the server. The <code>reply_status</code> in the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
   * <code>receive_other</code> or <code>send_other</code> would be 
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
   * <code>LOCATION_FORWARD</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
  exception ForwardRequest {
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
     * The new object to forward the request to.
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
    Object forward;
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
//   Change in ptc/00-08-06
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
//    boolean permanent;
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
  /** Reply status, represented as an int */
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
  typedef short ReplyStatus;
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
  // Valid reply_status values:
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
   * Indicates a successful Reply Status. One possible value for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
   * <code>RequestInfo.reply_status</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
   * @see RequestInfo#reply_status
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
   * @see SYSTEM_EXCEPTION
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
   * @see USER_EXCEPTION
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
   * @see LOCATION_FORWARD
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
   * @see TRANSPORT_RETRY
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
  const ReplyStatus SUCCESSFUL = 0;
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
   * Indicates a SystemException reply status. One possible value for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   180
   * <code>RequestInfo.reply_status</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
   * @see RequestInfo#reply_status
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
   * @see SUCCESSFUL
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
   * @see USER_EXCEPTION
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
   * @see LOCATION_FORWARD
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
   * @see TRANSPORT_RETRY
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
  const ReplyStatus SYSTEM_EXCEPTION = 1;
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
   * Indicates a UserException reply status. One possible value for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   191
   * <code>RequestInfo.reply_status</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   192
   * @see RequestInfo#reply_status
02bb8761fcce Initial load
duke
parents:
diff changeset
   193
   * @see SUCCESSFUL
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
   * @see SYSTEM_EXCEPTION
02bb8761fcce Initial load
duke
parents:
diff changeset
   195
   * @see LOCATION_FORWARD
02bb8761fcce Initial load
duke
parents:
diff changeset
   196
   * @see TRANSPORT_RETRY
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
  const ReplyStatus USER_EXCEPTION = 2;
02bb8761fcce Initial load
duke
parents:
diff changeset
   199
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   201
   * Indicates a LocationForward reply status. One possible value for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
   * <code>RequestInfo.reply_status</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
   * @see RequestInfo#reply_status
02bb8761fcce Initial load
duke
parents:
diff changeset
   204
   * @see SUCCESSFUL
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
   * @see SYSTEM_EXCEPTION
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
   * @see USER_EXCEPTION
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
   * @see TRANSPORT_RETRY
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   209
  const ReplyStatus LOCATION_FORWARD = 3;
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
// Changes in ptc/00-08-06
02bb8761fcce Initial load
duke
parents:
diff changeset
   212
//  const ReplyStatus LOCATION_FORWARD_PERMANENT = 4;
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
   * Indicates a Transport Retry reply status. One possible value for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
   * <code>RequestInfo.reply_status</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
   * @see RequestInfo#reply_status
02bb8761fcce Initial load
duke
parents:
diff changeset
   218
   * @see SUCCESSFUL
02bb8761fcce Initial load
duke
parents:
diff changeset
   219
   * @see SYSTEM_EXCEPTION
02bb8761fcce Initial load
duke
parents:
diff changeset
   220
   * @see USER_EXCEPTION
02bb8761fcce Initial load
duke
parents:
diff changeset
   221
   * @see LOCATION_FORWARD
02bb8761fcce Initial load
duke
parents:
diff changeset
   222
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   223
  const ReplyStatus TRANSPORT_RETRY = 4;
02bb8761fcce Initial load
duke
parents:
diff changeset
   224
02bb8761fcce Initial load
duke
parents:
diff changeset
   225
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   226
   * XXX
02bb8761fcce Initial load
duke
parents:
diff changeset
   227
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   228
  const ReplyStatus UNKNOWN = 5;
02bb8761fcce Initial load
duke
parents:
diff changeset
   229
02bb8761fcce Initial load
duke
parents:
diff changeset
   230
  /** Slot id, represented as an int */
02bb8761fcce Initial load
duke
parents:
diff changeset
   231
  typedef unsigned long SlotId;
02bb8761fcce Initial load
duke
parents:
diff changeset
   232
02bb8761fcce Initial load
duke
parents:
diff changeset
   233
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   234
   * This exception is thrown when <code>get_slot</code> or 
02bb8761fcce Initial load
duke
parents:
diff changeset
   235
   * <code>set_slot</code> is called on a slot that has not been allocated.
02bb8761fcce Initial load
duke
parents:
diff changeset
   236
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   237
  exception InvalidSlot {};
02bb8761fcce Initial load
duke
parents:
diff changeset
   238
02bb8761fcce Initial load
duke
parents:
diff changeset
   239
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   240
   * Portable Interceptors Current (also known as <code>PICurrent</code>) 
02bb8761fcce Initial load
duke
parents:
diff changeset
   241
   * is merely a slot table, the slots of which are used by each service to 
02bb8761fcce Initial load
duke
parents:
diff changeset
   242
   * transfer their context data between their context and the request's or 
02bb8761fcce Initial load
duke
parents:
diff changeset
   243
   * reply's service context. Each service which wishes to use PICurrent 
02bb8761fcce Initial load
duke
parents:
diff changeset
   244
   * reserves a slot or slots at initialization time and uses those slots 
02bb8761fcce Initial load
duke
parents:
diff changeset
   245
   * during the processing of requests and replies.
02bb8761fcce Initial load
duke
parents:
diff changeset
   246
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   247
   * Before an invocation is made, PICurrent is obtained via a call to 
02bb8761fcce Initial load
duke
parents:
diff changeset
   248
   * <code>ORB.resolve_initial_references( "PICurrent" )</code>. From within 
02bb8761fcce Initial load
duke
parents:
diff changeset
   249
   * the interception points, the data on PICurrent that has moved from the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   250
   * thread scope to the request scope is available via the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   251
   * <code>get_slot</code> operation on the <code>RequestInfo</code> object. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   252
   * A PICurrent can still be obtained via 
02bb8761fcce Initial load
duke
parents:
diff changeset
   253
   * <code>resolve_initial_references</code>, but that is the Interceptor's 
02bb8761fcce Initial load
duke
parents:
diff changeset
   254
   * thread scope PICurrent.
02bb8761fcce Initial load
duke
parents:
diff changeset
   255
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   256
  local interface Current : CORBA::Current {
02bb8761fcce Initial load
duke
parents:
diff changeset
   257
02bb8761fcce Initial load
duke
parents:
diff changeset
   258
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   259
     * Retrieves the slot data the application set in PICurrent via 
02bb8761fcce Initial load
duke
parents:
diff changeset
   260
     * <code>get_slot</code>.  The data is in the form of an Any. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   261
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   262
     * If the given slot has not been set, an Any containing a type code 
02bb8761fcce Initial load
duke
parents:
diff changeset
   263
     * with a <code>TCKind</code> value of <code>tk_null</code> and no value 
02bb8761fcce Initial load
duke
parents:
diff changeset
   264
     * is returned. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   265
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   266
     * @param id The <code>SlotId</code> of the slot from which the data will 
02bb8761fcce Initial load
duke
parents:
diff changeset
   267
     *     be returned. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   268
     * @return The data, in the form of an Any, of the given slot identifier.
02bb8761fcce Initial load
duke
parents:
diff changeset
   269
     * @exception InvalidSlot thrown if get_slot is called on a slot that 
02bb8761fcce Initial load
duke
parents:
diff changeset
   270
     *     has not been allocated. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   271
     * @exception BAD_INV_ORDER thrown if <code>get_slot</code> is called 
02bb8761fcce Initial load
duke
parents:
diff changeset
   272
     *     from within an ORB initializer 
02bb8761fcce Initial load
duke
parents:
diff changeset
   273
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   274
    any get_slot (in SlotId id) raises (InvalidSlot);
02bb8761fcce Initial load
duke
parents:
diff changeset
   275
02bb8761fcce Initial load
duke
parents:
diff changeset
   276
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   277
     * Sets data in a slot. The data is in the form of an Any. If data 
02bb8761fcce Initial load
duke
parents:
diff changeset
   278
     * already exists in that slot, it is overridden. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   279
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   280
     * @param id The <code>SlotId</code> of the slot to which the data will 
02bb8761fcce Initial load
duke
parents:
diff changeset
   281
     *     be set. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   282
     * @param data The data, in the form of an Any, which will be set 
02bb8761fcce Initial load
duke
parents:
diff changeset
   283
     *     to the identified slot. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   284
     * @exception InvalidSlot thrown if <code>set_slot</code> is called on 
02bb8761fcce Initial load
duke
parents:
diff changeset
   285
     *     a slot that has not been allocated.
02bb8761fcce Initial load
duke
parents:
diff changeset
   286
     * @exception BAD_INV_ORDER thrown if <code>set_slot</code> is called 
02bb8761fcce Initial load
duke
parents:
diff changeset
   287
     *     from within an ORB initializer. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   288
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   289
    void set_slot (in SlotId id, in any data) raises (InvalidSlot);
02bb8761fcce Initial load
duke
parents:
diff changeset
   290
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
   291
02bb8761fcce Initial load
duke
parents:
diff changeset
   292
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   293
   * Request Information, accessible to Interceptors.
02bb8761fcce Initial load
duke
parents:
diff changeset
   294
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   295
   * Each interception point is given an object through which the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   296
   * Interceptor can access request information. Client-side and server-side 
02bb8761fcce Initial load
duke
parents:
diff changeset
   297
   * interception points are concerned with different information, so there 
02bb8761fcce Initial load
duke
parents:
diff changeset
   298
   * are two information objects: <code>ClientRequestInfo</code> is passed 
02bb8761fcce Initial load
duke
parents:
diff changeset
   299
   * to the client-side interception points and <code>ServerRequestInfo</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   300
   * is passed to the server-side interception points. But there is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   301
   * information that is common to both, so they both inherit from a common 
02bb8761fcce Initial load
duke
parents:
diff changeset
   302
   * interface: <code>RequestInfo</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   303
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   304
   * @see ClientRequestInfo
02bb8761fcce Initial load
duke
parents:
diff changeset
   305
   * @see ServerRequestInfo
02bb8761fcce Initial load
duke
parents:
diff changeset
   306
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   307
  local interface RequestInfo {
02bb8761fcce Initial load
duke
parents:
diff changeset
   308
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   309
     * Returns an id that uniquely identifies an active request/reply 
02bb8761fcce Initial load
duke
parents:
diff changeset
   310
     * sequence. Once a request/reply sequence is concluded this ID may be 
02bb8761fcce Initial load
duke
parents:
diff changeset
   311
     * reused. Note that this id is not the same as the GIOP 
02bb8761fcce Initial load
duke
parents:
diff changeset
   312
     * <code>request_id</code>. If GIOP is the transport mechanism used, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   313
     * then these IDs may very well be the same, but this is not guaranteed 
02bb8761fcce Initial load
duke
parents:
diff changeset
   314
     * nor required.
02bb8761fcce Initial load
duke
parents:
diff changeset
   315
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   316
    readonly attribute unsigned long request_id;
02bb8761fcce Initial load
duke
parents:
diff changeset
   317
02bb8761fcce Initial load
duke
parents:
diff changeset
   318
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   319
     * Returns the name of the operation being invoked.
02bb8761fcce Initial load
duke
parents:
diff changeset
   320
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   321
    readonly attribute string operation;
02bb8761fcce Initial load
duke
parents:
diff changeset
   322
02bb8761fcce Initial load
duke
parents:
diff changeset
   323
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   324
     * Returns an array of <code>Parameter</code> objects, containing the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   325
     * arguments on the operation being invoked.  If there are no arguments, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   326
     * this attribute will be a zero length array. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   327
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   328
     * Not all environments provide access to the arguments. With the Java 
02bb8761fcce Initial load
duke
parents:
diff changeset
   329
     * portable bindings, for example, the arguments are not available. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   330
     * In these environments, when this attribute is accessed, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   331
     * <code>NO_RESOURCES</code> will be thrown with a standard minor code 
02bb8761fcce Initial load
duke
parents:
diff changeset
   332
     * of 1.
02bb8761fcce Initial load
duke
parents:
diff changeset
   333
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   334
     * <i>Note: Arguments are available for DSI/DII calls.</i>
02bb8761fcce Initial load
duke
parents:
diff changeset
   335
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   336
     * @exception NO_RESOURCES thrown if arguments are not available.
02bb8761fcce Initial load
duke
parents:
diff changeset
   337
     * @see <a href="package-summary.html#unimpl">
02bb8761fcce Initial load
duke
parents:
diff changeset
   338
     *     <code>PortableInterceptor</code> package comments for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   339
     *     limitations / unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   340
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   341
    readonly attribute Dynamic::ParameterList arguments;
02bb8761fcce Initial load
duke
parents:
diff changeset
   342
02bb8761fcce Initial load
duke
parents:
diff changeset
   343
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   344
     * Returns an array of <code>TypeCode</code> objects describing the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   345
     * <code>TypeCode</code>s of the user exceptions that this operation 
02bb8761fcce Initial load
duke
parents:
diff changeset
   346
     * invocation may throw. If there are no user exceptions, this 
02bb8761fcce Initial load
duke
parents:
diff changeset
   347
     * will return a zero length array. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   348
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   349
     * Not all environments provide access to the exception list. With 
02bb8761fcce Initial load
duke
parents:
diff changeset
   350
     * the Java portable bindings, for example, the exception list is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   351
     * not available. In these environments, when this attribute is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   352
     * accessed, <code>NO_RESOURCES</code> will be thrown with a 
02bb8761fcce Initial load
duke
parents:
diff changeset
   353
     * standard minor code of 1.
02bb8761fcce Initial load
duke
parents:
diff changeset
   354
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   355
     * <i>Note: Exceptions are available for DSI/DII calls.</i>
02bb8761fcce Initial load
duke
parents:
diff changeset
   356
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   357
     * @exception NO_RESOURCES thrown if exceptions are not available.
02bb8761fcce Initial load
duke
parents:
diff changeset
   358
     * @see <a href="package-summary.html#unimpl">
02bb8761fcce Initial load
duke
parents:
diff changeset
   359
     *     <code>PortableInterceptor</code> package comments for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   360
     *     limitations / unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   361
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   362
    readonly attribute Dynamic::ExceptionList exceptions;
02bb8761fcce Initial load
duke
parents:
diff changeset
   363
02bb8761fcce Initial load
duke
parents:
diff changeset
   364
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   365
     * Returns an array of <code>String</code> objects describing the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   366
     * contexts that may be passed on this operation invocation.  If there 
02bb8761fcce Initial load
duke
parents:
diff changeset
   367
     * are no contexts, this will return a zero length array. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   368
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   369
     * Not all environments provide access to the context list. With the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   370
     * Java portable bindings, for example, the context list is not 
02bb8761fcce Initial load
duke
parents:
diff changeset
   371
     * available. In these environments, when this attribute is accessed, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   372
     * <code>NO_RESOURCES</code> will be thrown with a standard minor code 
02bb8761fcce Initial load
duke
parents:
diff changeset
   373
     * of 1.
02bb8761fcce Initial load
duke
parents:
diff changeset
   374
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   375
     * <i>Note: Contexts are available for DSI/DII calls.</i>
02bb8761fcce Initial load
duke
parents:
diff changeset
   376
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   377
     * @exception NO_RESOURCES thrown if contexts are not available.
02bb8761fcce Initial load
duke
parents:
diff changeset
   378
     * @see <a href="package-summary.html#unimpl">
02bb8761fcce Initial load
duke
parents:
diff changeset
   379
     *     <code>PortableInterceptor</code> package comments for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   380
     *     limitations / unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   381
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   382
    readonly attribute Dynamic::ContextList contexts;
02bb8761fcce Initial load
duke
parents:
diff changeset
   383
02bb8761fcce Initial load
duke
parents:
diff changeset
   384
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   385
     * Returns an array of <code>String</code> objects containing the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   386
     * contexts being sent on the request.
02bb8761fcce Initial load
duke
parents:
diff changeset
   387
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   388
     * Not all environments provide access to the context. With the Java 
02bb8761fcce Initial load
duke
parents:
diff changeset
   389
     * portable bindings, for example, the context is not available. In 
02bb8761fcce Initial load
duke
parents:
diff changeset
   390
     * these environments, when this attribute is accessed, NO_RESOURCES will 
02bb8761fcce Initial load
duke
parents:
diff changeset
   391
     * be thrown with standard minor code of 1.
02bb8761fcce Initial load
duke
parents:
diff changeset
   392
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   393
     * <i>Note: <code>operation_context</code> is available for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   394
     * DSI/DII calls.</i>
02bb8761fcce Initial load
duke
parents:
diff changeset
   395
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   396
     * @exception NO_RESOURCES thrown if operation context is not available.
02bb8761fcce Initial load
duke
parents:
diff changeset
   397
     * @see <a href="package-summary.html#unimpl">
02bb8761fcce Initial load
duke
parents:
diff changeset
   398
     *     <code>PortableInterceptor</code> package comments for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   399
     *     limitations / unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   400
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   401
    readonly attribute Dynamic::RequestContext operation_context;
02bb8761fcce Initial load
duke
parents:
diff changeset
   402
02bb8761fcce Initial load
duke
parents:
diff changeset
   403
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   404
     * Returns an any containing the result of the operation invocation. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   405
     * If the operation return type is void, this attribute will be an any 
02bb8761fcce Initial load
duke
parents:
diff changeset
   406
     * containing a type code with a <code>TCKind</code> value of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   407
     * <code>tk_void</code> and no value. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   408
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   409
     * Not all environments provide access to the result. With the Java 
02bb8761fcce Initial load
duke
parents:
diff changeset
   410
     * portable bindings, for example, the result is not available. In 
02bb8761fcce Initial load
duke
parents:
diff changeset
   411
     * these environments, when this attribute is accessed, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   412
     * <code>NO_RESOURCES</code> will be thrown with a standard minor code of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   413
     * 1.
02bb8761fcce Initial load
duke
parents:
diff changeset
   414
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   415
     * <i>Note: Result is available for DSI/DII calls.</i>
02bb8761fcce Initial load
duke
parents:
diff changeset
   416
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   417
     * @exception NO_RESOURCES thrown if result is not available.
02bb8761fcce Initial load
duke
parents:
diff changeset
   418
     * @see <a href="package-summary.html#unimpl">
02bb8761fcce Initial load
duke
parents:
diff changeset
   419
     *     <code>PortableInterceptor</code> package comments for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   420
     *     limitations / unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   421
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   422
    readonly attribute any result;
02bb8761fcce Initial load
duke
parents:
diff changeset
   423
02bb8761fcce Initial load
duke
parents:
diff changeset
   424
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   425
     * Indicates whether a response is expected. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   426
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   427
     * On the client, a reply is not returned when 
02bb8761fcce Initial load
duke
parents:
diff changeset
   428
     * <code>response_expected</code> is false, so <code>receive_reply</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   429
     * cannot be called. <code>receive_other</code> is called unless an 
02bb8761fcce Initial load
duke
parents:
diff changeset
   430
     * exception occurs, in which case <code>receive_exception</code> is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   431
     * called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   432
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   433
     * On the client, within <code>send_poll</code>, this attribute is true.
02bb8761fcce Initial load
duke
parents:
diff changeset
   434
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   435
    readonly attribute boolean response_expected;
02bb8761fcce Initial load
duke
parents:
diff changeset
   436
02bb8761fcce Initial load
duke
parents:
diff changeset
   437
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   438
     * Defines how far the request shall progress before control is returned
02bb8761fcce Initial load
duke
parents:
diff changeset
   439
     * to the client.  This is defined in the Messaging specification, and 
02bb8761fcce Initial load
duke
parents:
diff changeset
   440
     * is pertinent only when <code>response_expected</code> is false. If 
02bb8761fcce Initial load
duke
parents:
diff changeset
   441
     * <code>response_expected</code> is true, the value of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   442
     * <code>sync_scope</code> is undefined. This attribute may have one of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   443
     * the following values: 
02bb8761fcce Initial load
duke
parents:
diff changeset
   444
     * <ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   445
     *   <li><code>Messaging.SYNC_NONE</code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   446
     *   <li><code>Messaging.SYNC_WITH_TRANSPORT</code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   447
     *   <li><code>Messaging.SYNC_WITH_SERVER</code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   448
     *   <li><code>Messaging.SYNC_WITH_TARGET</code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   449
     * </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   450
     * On the server, for all scopes, a reply will be created from the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   451
     * return of the target operation call, but the reply will not return 
02bb8761fcce Initial load
duke
parents:
diff changeset
   452
     * to the client. Although it does not return to the client, it does 
02bb8761fcce Initial load
duke
parents:
diff changeset
   453
     * occur, so the normal server-side interception points are 
02bb8761fcce Initial load
duke
parents:
diff changeset
   454
     * followed (i.e., <code>receive_request_service_contexts</code>, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   455
     * <code>receive_request</code>, <code>send_reply</code> or 
02bb8761fcce Initial load
duke
parents:
diff changeset
   456
     * <code>send_exception</code>). 
02bb8761fcce Initial load
duke
parents:
diff changeset
   457
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   458
     * For <code>SYNC_WITH_SERVER</code> and <code>SYNC_WITH_TARGET</code>, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   459
     * the server does send an empty reply back to the client before the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   460
     * target is invoked. This reply is not intercepted by server-side 
02bb8761fcce Initial load
duke
parents:
diff changeset
   461
     * Interceptors.
02bb8761fcce Initial load
duke
parents:
diff changeset
   462
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   463
     * @see <a href="package-summary.html#unimpl">
02bb8761fcce Initial load
duke
parents:
diff changeset
   464
     *     <code>PortableInterceptor</code> package comments for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   465
     *     limitations / unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   466
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   467
    readonly attribute Messaging::SyncScope sync_scope;
02bb8761fcce Initial load
duke
parents:
diff changeset
   468
02bb8761fcce Initial load
duke
parents:
diff changeset
   469
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   470
     * Describes the state of the result of the operation invocation. The
02bb8761fcce Initial load
duke
parents:
diff changeset
   471
     * return value can be one of the following: 
02bb8761fcce Initial load
duke
parents:
diff changeset
   472
     * <ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   473
     *   <li><code>PortableInterceptor.SUCCESSFUL</code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   474
     *   <li><code>PortableInterceptor.SYSTEM_EXCEPTION</code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   475
     *   <li><code>PortableInterceptor.USER_EXCEPTION</code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   476
     *   <li><code>PortableInterceptor.LOCATION_FORWARD</code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   477
     *   <li><code>PortableInterceptor.TRANSPORT_RETRY</code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   478
     * </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   479
     * On the client:
02bb8761fcce Initial load
duke
parents:
diff changeset
   480
     * <ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   481
     *   <li>Within the <code>receive_reply</code> interception point, this 
02bb8761fcce Initial load
duke
parents:
diff changeset
   482
     *       will only return <code>SUCCESSFUL</code></li>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   483
     *   <li>Within the <code>receive_exception</code> interception point, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   484
     *       this will be either <code>SYSTEM_EXCEPTION</code> or 
02bb8761fcce Initial load
duke
parents:
diff changeset
   485
     *       <code>USER_EXCEPTION</code>.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   486
     *   <li>Within the <code>receive_other</code> interception point, this 
02bb8761fcce Initial load
duke
parents:
diff changeset
   487
     *       will be any of: <code>SUCCESSFUL</code>, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   488
     *       <code>LOCATION_FORWARD</code>, or <code>TRANSPORT_RETRY</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   489
     *       <code>SUCCESSFUL</code> means an asynchronous request returned 
02bb8761fcce Initial load
duke
parents:
diff changeset
   490
     *       successfully. <code>LOCATION_FORWARD</code> means that a reply 
02bb8761fcce Initial load
duke
parents:
diff changeset
   491
     *       came back with <code>LOCATION_FORWARD</code> as its status. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   492
     *       <code>TRANSPORT_RETRY</code> means that the transport 
02bb8761fcce Initial load
duke
parents:
diff changeset
   493
     *       mechanism indicated a retry - a GIOP reply with a status of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   494
     *       <code>NEEDS_ADDRESSING_MODE</code>, for instance. </li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   495
     * </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   496
     * On the server: 
02bb8761fcce Initial load
duke
parents:
diff changeset
   497
     * <ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   498
     *   <li>Within the <code>send_reply</code> interception point, this 
02bb8761fcce Initial load
duke
parents:
diff changeset
   499
     *       will only be <code>SUCCESSFUL</code>.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   500
     *   <li>Within the <code>send_exception</code> interception point, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   501
     *       this will be either <code>SYSTEM_EXCEPTION</code> or 
02bb8761fcce Initial load
duke
parents:
diff changeset
   502
     *       <code>USER_EXCEPTION</code>.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   503
     *   <li>Within the <code>send_other</code> interception point, this 
02bb8761fcce Initial load
duke
parents:
diff changeset
   504
     *       attribute will be any of: <code>SUCCESSFUL</code>, or 
02bb8761fcce Initial load
duke
parents:
diff changeset
   505
     *       <code>LOCATION_FORWARD</code>. <code>SUCCESSFUL</code> means 
02bb8761fcce Initial load
duke
parents:
diff changeset
   506
     *       an asynchronous request returned successfully. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   507
     *       <code>LOCATION_FORWARD</code> means that a reply came back 
02bb8761fcce Initial load
duke
parents:
diff changeset
   508
     *       with <code>LOCATION_FORWARD</code> as its status.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   509
     * </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
   510
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   511
     * @see SUCCESSFUL
02bb8761fcce Initial load
duke
parents:
diff changeset
   512
     * @see SYSTEM_EXCEPTION
02bb8761fcce Initial load
duke
parents:
diff changeset
   513
     * @see USER_EXCEPTION
02bb8761fcce Initial load
duke
parents:
diff changeset
   514
     * @see LOCATION_FORWARD
02bb8761fcce Initial load
duke
parents:
diff changeset
   515
     * @see TRANSPORT_RETRY
02bb8761fcce Initial load
duke
parents:
diff changeset
   516
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   517
    readonly attribute ReplyStatus reply_status;
02bb8761fcce Initial load
duke
parents:
diff changeset
   518
02bb8761fcce Initial load
duke
parents:
diff changeset
   519
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   520
     * Contains the object to which the request will be forwarded, if the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   521
     * <code>reply_status</code> attribute is <code>LOCATION_FORWARD</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
   522
     * It is indeterminate whether a forwarded request will actually occur.
02bb8761fcce Initial load
duke
parents:
diff changeset
   523
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   524
    readonly attribute Object forward_reference;
02bb8761fcce Initial load
duke
parents:
diff changeset
   525
02bb8761fcce Initial load
duke
parents:
diff changeset
   526
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   527
     * Returns the data from the given slot of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   528
     * <code>PortableInterceptor.Current</code> that is in the scope of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   529
     * the request. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   530
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   531
     * If the given slot has not been set, then an any containing a 
02bb8761fcce Initial load
duke
parents:
diff changeset
   532
     * type code with a <code>TCKind</code> value of <code>tk_null</code> is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   533
     * returned. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   534
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   535
     * @param id The <code>SlotId</code> of the slot which is to be 
02bb8761fcce Initial load
duke
parents:
diff changeset
   536
     *     returned. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   537
     * @return The slot data, in the form of an any, obtained with the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   538
     *     given identifier.
02bb8761fcce Initial load
duke
parents:
diff changeset
   539
     * @exception InvalidSlot thrown if the ID does not define an 
02bb8761fcce Initial load
duke
parents:
diff changeset
   540
     *    allocated slot.
02bb8761fcce Initial load
duke
parents:
diff changeset
   541
     * @see Current
02bb8761fcce Initial load
duke
parents:
diff changeset
   542
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   543
    any get_slot (in SlotId id) raises (InvalidSlot);
02bb8761fcce Initial load
duke
parents:
diff changeset
   544
02bb8761fcce Initial load
duke
parents:
diff changeset
   545
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   546
     * Returns a copy of the service context with the given ID that 
02bb8761fcce Initial load
duke
parents:
diff changeset
   547
     * is associated with the request. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   548
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   549
     * @param id The <code>IOP.ServiceId</code> of the service context 
02bb8761fcce Initial load
duke
parents:
diff changeset
   550
     *     which is to be returned. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   551
     * @return The <code>IOP.ServiceContext</code> obtained with the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   552
     *     given identifier.
02bb8761fcce Initial load
duke
parents:
diff changeset
   553
     * @exception BAD_PARAM thrown with a standard minor code of 26, if the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   554
     *     request's service context does not contain an entry for that ID.
02bb8761fcce Initial load
duke
parents:
diff changeset
   555
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   556
    IOP::ServiceContext get_request_service_context 
02bb8761fcce Initial load
duke
parents:
diff changeset
   557
      (in IOP::ServiceId id);
02bb8761fcce Initial load
duke
parents:
diff changeset
   558
02bb8761fcce Initial load
duke
parents:
diff changeset
   559
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   560
     * Returns a copy of the service context with the given ID that 
02bb8761fcce Initial load
duke
parents:
diff changeset
   561
     * is associated with the reply. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   562
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   563
     * @param id The <code>IOP.ServiceId</code> of the service context 
02bb8761fcce Initial load
duke
parents:
diff changeset
   564
     *     which is to be returned. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   565
     * @return The <code>IOP.ServiceContext</code> obtained with the given 
02bb8761fcce Initial load
duke
parents:
diff changeset
   566
     *     identifier. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   567
     * @exception BAD_PARAM thrown with a standard minor code of 26 if the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   568
     *     request's service context does not contain an entry for that ID.
02bb8761fcce Initial load
duke
parents:
diff changeset
   569
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   570
    IOP::ServiceContext get_reply_service_context 
02bb8761fcce Initial load
duke
parents:
diff changeset
   571
      (in IOP::ServiceId id);
02bb8761fcce Initial load
duke
parents:
diff changeset
   572
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
   573
02bb8761fcce Initial load
duke
parents:
diff changeset
   574
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   575
   * Request Information, accessible to client-side request interceptors.
02bb8761fcce Initial load
duke
parents:
diff changeset
   576
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   577
   * Some attributes and operations on <code>ClientRequestInfo</code> are 
02bb8761fcce Initial load
duke
parents:
diff changeset
   578
   * not valid at all interception points.  The following table shows the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   579
   * validity of each attribute or operation.  If it is not valid, attempting 
02bb8761fcce Initial load
duke
parents:
diff changeset
   580
   * to access it will result in a <code>BAD_INV_ORDER</code> being thrown
02bb8761fcce Initial load
duke
parents:
diff changeset
   581
   * with a standard minor code of 14.
02bb8761fcce Initial load
duke
parents:
diff changeset
   582
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   583
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   584
   * <table border=1 summary="Shows the validity of each attribute or operation">
02bb8761fcce Initial load
duke
parents:
diff changeset
   585
   *  <thead>
02bb8761fcce Initial load
duke
parents:
diff changeset
   586
   *    <tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   587
   *      <th>&nbsp;</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   588
   *      <th id="send_req">send_request</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   589
   *      <th id="send_poll">send_poll</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   590
   *      <th id="rec_reply">receive_reply</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   591
   *      <th id="rec_ex">receive_exception</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   592
   *      <th id="rec_oth">receive_other</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   593
   *    </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   594
   *  </thead>
02bb8761fcce Initial load
duke
parents:
diff changeset
   595
   *  <tbody>
02bb8761fcce Initial load
duke
parents:
diff changeset
   596
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   597
   *  <tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   598
   *     <td id="ri" colspan=6><i>Inherited from RequestInfo:</i></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   599
   *  </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   600
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   601
   *  <tr><th id="req_id"><p align="left">request_id</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   602
   *  <td headers="ri req_id send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   603
   *  <td headers="ri req_id send_poll">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   604
   *  <td headers="ri req_id rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   605
   *  <td headers="ri req_id rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   606
   *  <td headers="ri req_id rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   607
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   608
   *  <tr><th id="op"><p align="left">operation</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   609
   *  <td headers="ri op send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   610
   *  <td headers="ri op send_poll">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   611
   *  <td headers="ri op rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   612
   *  <td headers="ri op rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   613
   *  <td headers="ri op rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   614
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   615
   *  <tr><th id="arg"><p align="left">arguments</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   616
   *  <td headers="ri arg send_req">yes<sub>1</sub></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   617
   *  <td headers="ri arg send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   618
   *  <td headers="ri arg rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   619
   *  <td headers="ri arg rec_ex">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   620
   *  <td headers="ri arg rec_oth">no </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   621
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   622
   *  <tr><th id="exc"><p align="left">exceptions</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   623
   *  <td headers="ri exc send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   624
   *  <td headers="ri exc send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   625
   *  <td headers="ri exc rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   626
   *  <td headers="ri exc rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   627
   *  <td headers="ri exc rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   628
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   629
   *  <tr><th id="con"><p align="left">contexts</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   630
   *  <td headers="ri con send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   631
   *  <td headers="ri con send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   632
   *  <td headers="ri con rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   633
   *  <td headers="ri con rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   634
   *  <td headers="ri con rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   635
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   636
   *  <tr><th id="op_con"><p align="left">operation_context</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   637
   *  <td headers="ri op_con send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   638
   *  <td headers="ri op_con send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   639
   *  <td headers="ri op_con rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   640
   *  <td headers="ri op_con rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   641
   *  <td headers="ri op_con rec_oth">yes</td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   642
   *  </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   643
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   644
   *  <tr><th id="result"><p align="left">result</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   645
   *  <td headers="ri result send_req">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   646
   *  <td headers="ri result send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   647
   *  <td headers="ri result rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   648
   *  <td headers="ri result rec_ex">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   649
   *  <td headers="ri result rec_oth">no </td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   650
   *  </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   651
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   652
   *  <tr><th id="res_exp"><p align="left">response_expected</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   653
   *  <td headers="ri res_exp send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   654
   *  <td headers="ri res_exp send_poll">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   655
   *  <td headers="ri res_exp rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   656
   *  <td headers="ri res_exp rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   657
   *  <td headers="ri res_exp rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   658
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   659
   *  <tr><th id="sync_sco"><p align="left">sync_scope</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   660
   *  <td headers="ri sync_sco send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   661
   *  <td headers="ri sync_sco send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   662
   *  <td headers="ri sync_sco rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   663
   *  <td headers="ri sync_sco rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   664
   *  <td headers="ri sync_sco rec_oth">yes</td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   665
   *  </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   666
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   667
   *  <tr><th id="rep_stat"><p align="left">reply_status</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   668
   *  <td headers="ri rep_stat send_req">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   669
   *  <td headers="ri rep_stat send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   670
   *  <td headers="ri rep_stat rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   671
   *  <td headers="ri rep_stat rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   672
   *  <td headers="ri rep_stat rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   673
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   674
   *  <tr><th id="for_ref"><p align="left">forward_reference</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   675
   *  <td headers="ri for_ref send_req">no </td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   676
   *  <td headers="ri for_ref send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   677
   *  <td headers="ri for_ref rec_reply">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   678
   *  <td headers="ri for_ref rec_ex">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   679
   *  <td headers="ri for_ref rec_oth">yes<sub>2</sub>
02bb8761fcce Initial load
duke
parents:
diff changeset
   680
   *  </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   681
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   682
   *  <tr><th id="get_slot"><p align="left">get_slot</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   683
   *  <td headers="ri get_slot send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   684
   *  <td headers="ri get_slot send_poll">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   685
   *  <td headers="ri get_slot rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   686
   *  <td headers="ri get_slot rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   687
   *  <td headers="ri get_slot rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   688
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   689
   *  <tr><th id="grsc"><p align="left">get_request_service_context</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   690
   *  <td headers="ri grsc send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   691
   *  <td headers="ri grsc send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   692
   *  <td headers="ri grsc rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   693
   *  <td headers="ri grsc rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   694
   *  <td headers="ri grsc rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   695
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   696
   *  <tr><th id="gpsc"><p align="left">get_reply_service_context</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   697
   *  <td headers="ri gpsc send_req">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   698
   *  <td headers="ri gpsc send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   699
   *  <td headers="ri gpsc rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   700
   *  <td headers="ri gpsc rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   701
   *  <td headers="ri gpsc rec_oth">yes</td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   702
   *  </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   703
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   704
   *  <tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   705
   *    <td id="cri" colspan=6><i>ClientRequestInfo-specific:</i></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   706
   *  </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   707
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   708
   *  <tr><th id="target"><p align="left">target</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   709
   *  <td headers="cri target send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   710
   *  <td headers="cri target send_poll">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   711
   *  <td headers="cri target rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   712
   *  <td headers="cri target rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   713
   *  <td headers="cri target rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   714
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   715
   *  <tr><th id="eftarget"><p align="left">effective_target</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   716
   *  <td headers="cri eftarget send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   717
   *  <td headers="cri eftarget send_poll">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   718
   *  <td headers="cri eftarget rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   719
   *  <td headers="cri eftarget rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   720
   *  <td headers="cri eftarget rec_oth">yes</td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   721
   *  </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   722
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   723
   *  <tr><th id="efprof"><p align="left">effective_profile</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   724
   *  <td headers="cri efprof send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   725
   *  <td headers="cri efprof send_poll">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   726
   *  <td headers="cri efprof rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   727
   *  <td headers="cri efprof rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   728
   *  <td headers="cri efprof rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   729
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   730
   *  <tr><th id="rxp"><p align="left">received_exception</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   731
   *  <td headers="cri rxp send_req">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   732
   *  <td headers="cri rxp send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   733
   *  <td headers="cri rxp rec_reply">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   734
   *  <td headers="cri rxp rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   735
   *  <td headers="cri rxp rec_oth">no </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   736
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   737
   *  <tr><th id="rei"><p align="left">received_exception_id</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   738
   *  <td headers="cri rei send_req">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   739
   *  <td headers="cri rei send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   740
   *  <td headers="cri rei rec_reply">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   741
   *  <td headers="cri rei rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   742
   *  <td headers="cri rei rec_oth">no </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   743
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   744
   *  <tr><th id="gec"><p align="left">get_effective_component</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   745
   *  <td headers="cri gec send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   746
   *  <td headers="cri gec send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   747
   *  <td headers="cri gec rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   748
   *  <td headers="cri gec rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   749
   *  <td headers="cri gec rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   750
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   751
   *  <tr><th id="gecs"><p align="left">get_effective_components</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   752
   *  <td headers="cri gecs send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   753
   *  <td headers="cri gecs send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   754
   *  <td headers="cri gecs rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   755
   *  <td headers="cri gecs rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   756
   *  <td headers="cri gecs rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   757
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   758
   *  <tr><th id="grpcy"><p align="left">get_request_policy</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   759
   *  <td headers="cri grpcy send_req">yes</td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   760
   *  <td headers="cri grpcy send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   761
   *  <td headers="cri grpcy rec_reply">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   762
   *  <td headers="cri grpcy rec_ex">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   763
   *  <td headers="cri grpcy rec_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   764
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   765
   *  <tr><th id="arsc"><p align="left">add_request_service_context</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   766
   *    <td headers="cri arsc send_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   767
   *    <td headers="cri arsc send_poll">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   768
   *    <td headers="cri arsc rec_reply">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   769
   *    <td headers="cri arsc rec_ex">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   770
   *    <td headers="cri arsc rec_oth">no </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   771
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   772
   *   </tbody>
02bb8761fcce Initial load
duke
parents:
diff changeset
   773
   * </table>
02bb8761fcce Initial load
duke
parents:
diff changeset
   774
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   775
   * <ol>
02bb8761fcce Initial load
duke
parents:
diff changeset
   776
   *   <li>When <code>ClientRequestInfo</code> is passed to 
02bb8761fcce Initial load
duke
parents:
diff changeset
   777
   *       <code>send_request</code>, there is an entry in the list for every 
02bb8761fcce Initial load
duke
parents:
diff changeset
   778
   *       argument, whether in, inout, or out.  But only the in and inout 
02bb8761fcce Initial load
duke
parents:
diff changeset
   779
   *       arguments will be available.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   780
   *   <li>If the <code>reply_status</code> atribute is not 
02bb8761fcce Initial load
duke
parents:
diff changeset
   781
   *       <code>LOCATION_FORWARD</code>, accessing this attribute will 
02bb8761fcce Initial load
duke
parents:
diff changeset
   782
   *       throw <code>BAD_INV_ORDER</code> with a standard minor code of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   783
   *       14.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
   784
   * </ol>
02bb8761fcce Initial load
duke
parents:
diff changeset
   785
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   786
   * @see ClientRequestInterceptor
02bb8761fcce Initial load
duke
parents:
diff changeset
   787
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   788
  local interface ClientRequestInfo : RequestInfo {
02bb8761fcce Initial load
duke
parents:
diff changeset
   789
02bb8761fcce Initial load
duke
parents:
diff changeset
   790
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   791
     * Returns the object which the client called to perform the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   792
     * operation. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   793
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   794
     * @see #effective_target
02bb8761fcce Initial load
duke
parents:
diff changeset
   795
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   796
    readonly attribute Object target;
02bb8761fcce Initial load
duke
parents:
diff changeset
   797
02bb8761fcce Initial load
duke
parents:
diff changeset
   798
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   799
     * Returns the actual object on which the operation will be invoked. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   800
     * If the <code>reply_status</code> is <code>LOCATION_FORWARD</code>, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   801
     * then on subsequent requests, <code>effective_target</code> will 
02bb8761fcce Initial load
duke
parents:
diff changeset
   802
     * contain the forwarded IOR while target will remain unchanged. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   803
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   804
     * @see #target
02bb8761fcce Initial load
duke
parents:
diff changeset
   805
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   806
    readonly attribute Object effective_target;
02bb8761fcce Initial load
duke
parents:
diff changeset
   807
02bb8761fcce Initial load
duke
parents:
diff changeset
   808
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   809
     * Returns the profile that will be used to send the request. If a 
02bb8761fcce Initial load
duke
parents:
diff changeset
   810
     * location forward has occurred for this operation's object and 
02bb8761fcce Initial load
duke
parents:
diff changeset
   811
     * that object's profile changed accordingly, then this profile will 
02bb8761fcce Initial load
duke
parents:
diff changeset
   812
     * be that located profile.
02bb8761fcce Initial load
duke
parents:
diff changeset
   813
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   814
    readonly attribute IOP::TaggedProfile effective_profile;
02bb8761fcce Initial load
duke
parents:
diff changeset
   815
02bb8761fcce Initial load
duke
parents:
diff changeset
   816
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   817
     * Returns an any which contains the exception to be returned to 
02bb8761fcce Initial load
duke
parents:
diff changeset
   818
     * the client. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   819
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   820
     * If the exception is a user exception which cannot be inserted 
02bb8761fcce Initial load
duke
parents:
diff changeset
   821
     * into an any (e.g., it is unknown or the bindings don t provide 
02bb8761fcce Initial load
duke
parents:
diff changeset
   822
     * the <code>TypeCode</code>), then this attribute will be an any 
02bb8761fcce Initial load
duke
parents:
diff changeset
   823
     * containing the system exception <code>UNKNOWN</code> with a 
02bb8761fcce Initial load
duke
parents:
diff changeset
   824
     * standard minor code of 1. However, the repository id of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   825
     * the exception is available in the <code>received_exception_id</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   826
     * attribute.
02bb8761fcce Initial load
duke
parents:
diff changeset
   827
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   828
     * @see #received_exception_id
02bb8761fcce Initial load
duke
parents:
diff changeset
   829
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   830
    readonly attribute any received_exception;
02bb8761fcce Initial load
duke
parents:
diff changeset
   831
02bb8761fcce Initial load
duke
parents:
diff changeset
   832
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   833
     * Returns the repository id of the exception to be returned to 
02bb8761fcce Initial load
duke
parents:
diff changeset
   834
     * the client.
02bb8761fcce Initial load
duke
parents:
diff changeset
   835
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   836
     * @see #received_exception
02bb8761fcce Initial load
duke
parents:
diff changeset
   837
     * @see <a href="package-summary.html#unimpl">
02bb8761fcce Initial load
duke
parents:
diff changeset
   838
     *     <code>PortableInterceptor</code> package comments for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   839
     *     limitations / unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   840
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   841
    readonly attribute CORBA::RepositoryId received_exception_id;
02bb8761fcce Initial load
duke
parents:
diff changeset
   842
02bb8761fcce Initial load
duke
parents:
diff changeset
   843
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   844
     * Returns the <code>IOP.TaggedComponent</code> with the given ID from 
02bb8761fcce Initial load
duke
parents:
diff changeset
   845
     * the profile selected for this request. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   846
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   847
     * If there is more than one component for a given component ID, it 
02bb8761fcce Initial load
duke
parents:
diff changeset
   848
     * is undefined which component this operation returns. If there is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   849
     * more than one component for a given component ID, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   850
     * <code>get_effective_components</code> should be called instead. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   851
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   852
     * @param id The component id of the component which 
02bb8761fcce Initial load
duke
parents:
diff changeset
   853
     *     is to be returned. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   854
     * @return The <code>IOP.TaggedComponent</code> obtained with the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   855
     *     given identifier.
02bb8761fcce Initial load
duke
parents:
diff changeset
   856
     * @exception BAD_PARAM thrown, with a standard minor code of 28, if
02bb8761fcce Initial load
duke
parents:
diff changeset
   857
     *     no component exists for the given component ID.
02bb8761fcce Initial load
duke
parents:
diff changeset
   858
     * @see #get_effective_components
02bb8761fcce Initial load
duke
parents:
diff changeset
   859
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   860
    IOP::TaggedComponent get_effective_component 
02bb8761fcce Initial load
duke
parents:
diff changeset
   861
      (in IOP::ComponentId id);
02bb8761fcce Initial load
duke
parents:
diff changeset
   862
02bb8761fcce Initial load
duke
parents:
diff changeset
   863
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   864
     * Returns an array of all tagged components with the given ID from the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   865
     * profile selected for this request. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   866
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   867
     * @param id The component id of the components which are to be returned. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   868
     * @return An array of <code>TaggedComponent</code> objects, each of 
02bb8761fcce Initial load
duke
parents:
diff changeset
   869
     *     which contains the given identifier.
02bb8761fcce Initial load
duke
parents:
diff changeset
   870
     * @exception BAD_PARAM thrown, with a standard minor code of 28, if
02bb8761fcce Initial load
duke
parents:
diff changeset
   871
     *     no component exists for the given component ID.
02bb8761fcce Initial load
duke
parents:
diff changeset
   872
     * @see #get_effective_component
02bb8761fcce Initial load
duke
parents:
diff changeset
   873
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   874
    IOP::TaggedComponentSeq get_effective_components 
02bb8761fcce Initial load
duke
parents:
diff changeset
   875
      (in IOP::ComponentId id);
02bb8761fcce Initial load
duke
parents:
diff changeset
   876
02bb8761fcce Initial load
duke
parents:
diff changeset
   877
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   878
     * Returns the given policy in effect for this operation. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   879
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
   880
     * @exception INV_POLICY thrown, with a standard minor code of 1, if the 
02bb8761fcce Initial load
duke
parents:
diff changeset
   881
     *     policy type is not valid either because the specified type is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   882
     *     not supported by this ORB or because a policy object of that type 
02bb8761fcce Initial load
duke
parents:
diff changeset
   883
     *     is not associated with this Object
02bb8761fcce Initial load
duke
parents:
diff changeset
   884
     * @param type The policy type which specifies the policy to be 
02bb8761fcce Initial load
duke
parents:
diff changeset
   885
     *     returned. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   886
     * @return The <code>CORBA.Policy</code> obtained with the given type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   887
     * @see <a href="package-summary.html#unimpl">
02bb8761fcce Initial load
duke
parents:
diff changeset
   888
     *     <code>PortableInterceptor</code> package comments for 
02bb8761fcce Initial load
duke
parents:
diff changeset
   889
     *     limitations / unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   890
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   891
    CORBA::Policy get_request_policy 
02bb8761fcce Initial load
duke
parents:
diff changeset
   892
      (in CORBA::PolicyType type);
02bb8761fcce Initial load
duke
parents:
diff changeset
   893
02bb8761fcce Initial load
duke
parents:
diff changeset
   894
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
   895
     * Allows Interceptors to add service contexts to the request. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   896
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   897
     * There is no declaration of the order of the service contexts. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   898
     * They may or may not appear in the order that they are added. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   899
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   900
     * @param service_context The <code>IOP.ServiceContext</code> to be 
02bb8761fcce Initial load
duke
parents:
diff changeset
   901
     *     added to the request. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   902
     * @param replace Indicates the behavior of this operation when a 
02bb8761fcce Initial load
duke
parents:
diff changeset
   903
     *     service context already exists with the given ID. If false, 
02bb8761fcce Initial load
duke
parents:
diff changeset
   904
     *     then <code>BAD_INV_ORDER</code> with a standard minor code of 15 
02bb8761fcce Initial load
duke
parents:
diff changeset
   905
     *     is thrown. If true, then the existing service context is 
02bb8761fcce Initial load
duke
parents:
diff changeset
   906
     *     replaced by the new one.
02bb8761fcce Initial load
duke
parents:
diff changeset
   907
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   908
    void add_request_service_context (
02bb8761fcce Initial load
duke
parents:
diff changeset
   909
      in IOP::ServiceContext service_context,
02bb8761fcce Initial load
duke
parents:
diff changeset
   910
      in boolean replace);
02bb8761fcce Initial load
duke
parents:
diff changeset
   911
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
   912
02bb8761fcce Initial load
duke
parents:
diff changeset
   913
  // Should be type string
02bb8761fcce Initial load
duke
parents:
diff changeset
   914
  typedef string ServerId ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   915
02bb8761fcce Initial load
duke
parents:
diff changeset
   916
  // This should actually be the CORBA::ORBid type once that is available
02bb8761fcce Initial load
duke
parents:
diff changeset
   917
  typedef string ORBId ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   918
02bb8761fcce Initial load
duke
parents:
diff changeset
   919
  /** The name of an object adapter. This is unique only within
02bb8761fcce Initial load
duke
parents:
diff changeset
   920
   * the scope of the ORB that created the object adapter.
02bb8761fcce Initial load
duke
parents:
diff changeset
   921
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   922
  typedef org::omg::CORBA::StringSeq AdapterName ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   923
02bb8761fcce Initial load
duke
parents:
diff changeset
   924
  /** Type of an object id. This provides the identity of a particular
02bb8761fcce Initial load
duke
parents:
diff changeset
   925
   * object that was created by an object adapter.
02bb8761fcce Initial load
duke
parents:
diff changeset
   926
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
   927
  typedef org::omg::CORBA::OctetSeq ObjectId ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   928
02bb8761fcce Initial load
duke
parents:
diff changeset
   929
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   930
   * Request Information, accessible to server-side request interceptors.
02bb8761fcce Initial load
duke
parents:
diff changeset
   931
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   932
   * Some attributes and operations on <code>ServerRequestInfo</code> are not 
02bb8761fcce Initial load
duke
parents:
diff changeset
   933
   * valid at all interception points.  The following table shows the validity 
02bb8761fcce Initial load
duke
parents:
diff changeset
   934
   * of each attribute or operation.  If it is not valid, attempting to access 
02bb8761fcce Initial load
duke
parents:
diff changeset
   935
   * it will result in a <code>BAD_INV_ORDER</code> being thrown with a 
02bb8761fcce Initial load
duke
parents:
diff changeset
   936
   * standard minor code of 14.
02bb8761fcce Initial load
duke
parents:
diff changeset
   937
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   938
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   939
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   940
   * <table border=1 summary="Shows the validity of each attribute or operation">
02bb8761fcce Initial load
duke
parents:
diff changeset
   941
   *   <thead>
02bb8761fcce Initial load
duke
parents:
diff changeset
   942
   *     <tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   943
   *       <th>&nbsp;</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   944
   *       <th id="rec_req_ser_con" valign="bottom">receive_request_<br>service_contexts</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   945
   *       <th id="rec_req"  valign="bottom">receive_request</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   946
   *       <th id="send_rep" valign="bottom">send_reply</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   947
   *       <th id="send_exc" valign="bottom">send_exception</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   948
   *       <th id="send_oth" valign="bottom">send_other</th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   949
   *     </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   950
   *   </thead>
02bb8761fcce Initial load
duke
parents:
diff changeset
   951
   *  <tbody>
02bb8761fcce Initial load
duke
parents:
diff changeset
   952
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   953
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   954
   * <tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   955
   *   <td id="ri" colspan=6><i>Inherited from RequestInfo:</i></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   956
   * </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   957
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   958
   * <tr><th id="req_id"><p align="left">request_id</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   959
   * <td headers="ri req_id rec_req_ser_con">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   960
   * <td headers="ri req_id rec_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   961
   * <td headers="ri req_id send_rep">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   962
   * <td headers="ri req_id send_exc">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   963
   * <td headers="ri req_id send_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   964
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   965
   * <tr><th id="op"><p align="left">operation</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   966
   * <td headers="ri op rec_req_ser_con">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   967
   * <td headers="ri op rec_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   968
   * <td headers="ri op send_rep">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   969
   * <td headers="ri op send_exc">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   970
   * <td headers="ri op send_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   971
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   972
   * <tr><th id="args"><p align="left">arguments</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   973
   * <td headers="ri args rec_req_ser_con">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   974
   * <td headers="ri args rec_req">yes<sub>1</sub></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   975
   * <td headers="ri args send_rep">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   976
   * <td headers="ri args send_exc">no<sub>2</sub></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
   977
   * <td headers="ri args send_oth">no<sub>2</sub>
02bb8761fcce Initial load
duke
parents:
diff changeset
   978
   * </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   979
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   980
   * <tr><th id="exps"><p align="left">exceptions</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   981
   * <td headers="ri exps rec_req_ser_con">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   982
   * <td headers="ri exps rec_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   983
   * <td headers="ri exps send_rep">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   984
   * <td headers="ri exps send_exc">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   985
   * <td headers="ri exps send_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   986
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   987
   * <tr><th id="contexts"><p align="left">contexts</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   988
   * <td headers="ri contexts rec_req_ser_con">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   989
   * <td headers="ri contexts rec_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   990
   * <td headers="ri contexts send_rep">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   991
   * <td headers="ri contexts send_exc">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   992
   * <td headers="ri contexts send_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
   993
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
   994
   * <tr><th id="op_con"><p align="left">operation_context</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
   995
   * <td headers="ri op_con rec_req_ser_con">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   996
   * <td headers="ri op_con rec_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   997
   * <td headers="ri op_con send_rep">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   998
   * <td headers="ri op_con send_exc">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
   999
   * <td headers="ri op_con send_oth">no </td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1000
   * </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1001
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1002
   * <tr><th id="result"><p align="left">result</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1003
   * <td headers="ri result rec_req_ser_con">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1004
   * <td headers="ri result rec_req">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1005
   * <td headers="ri result send_rep">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1006
   * <td headers="ri result send_exc">no </td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1007
   * <td headers="ri result send_oth">no </td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1008
   * </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1009
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1010
   * <tr><th id="res_ex"><p align="left">response_expected</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1011
   * <td headers="ri res_ex rec_req_ser_con">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1012
   * <td headers="ri res_ex rec_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1013
   * <td headers="ri res_ex send_rep">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1014
   * <td headers="ri res_ex send_exc">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1015
   * <td headers="ri res_ex send_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1016
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1017
   * <tr><th id="syn_scp"><p align="left">sync_scope</p></th>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1018
   * <td headers="ri syn_scp rec_req_ser_con">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1019
   * <td headers="ri syn_scp rec_req">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1020
   * <td headers="ri syn_scp send_rep">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1021
   * <td headers="ri syn_scp send_exc">yes</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1022
   * <td headers="ri syn_scp send_oth">yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1023
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1024
   *    <tr><td><b>request_id</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1025
   *    <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1026
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1027
   *    <tr><td><b>operation</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1028
   *    <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1029
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1030
   *    <tr><td><b>arguments</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1031
   *    <td>no </td> <td>yes<sub>1</sub</td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1032
   *                              <td>yes</td> <td>no<sub>2</sub></td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1033
   *                                                        <td>no<sub>2</sub>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1034
   *                                                        </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1035
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1036
   *    <tr><td><b>exceptions</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1037
   *    <td>no </td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1038
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1039
   *    <tr><td><b>contexts</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1040
   *    <td>no </td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1041
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1042
   *    <tr><td><b>operation_context</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1043
   *    <td>no </td> <td>yes</td> <td>yes</td> <td>no </td> <td>no </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1044
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1045
   *    <tr><td><b>result</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1046
   *    <td>no </td> <td>no </td> <td>yes</td> <td>no </td> <td>no </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1047
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1048
   *    <tr><td><b>response_expected</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1049
   *    <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1050
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1051
   *    <tr><td><b>sync_scope</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1052
   *    <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1053
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1054
   *    <tr><td><b>reply_status</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1055
   *    <td>no </td> <td>no </td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1056
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1057
   *    <tr><td><b>forward_reference</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1058
   *    <td>no </td> <td>no </td> <td>no </td> <td>no </td> <td>yes<sub>2</sub>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1059
   * 								</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1060
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1061
   *    <tr><td><b>get_slot</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1062
   *    <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1063
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1064
   *    <tr><td><b>get_request_service_context</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1065
   *    <td>yes</td> <td>no </td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1066
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1067
   *    <tr><td><b>get_reply_service_context</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1068
   *    <td>no </td> <td>no </td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1069
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1070
   *    <tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1071
   *      <td colspan=6><i>ServerRequestInfo-specific:</i></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1072
   *    </tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1073
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1074
   *    <tr><td><b>sending_exception</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1075
   *    <td>no </td> <td>no </td> <td>no </td> <td>yes</td> <td>no </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1076
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1077
   *    <tr><td><b>object_id</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1078
   *    <td>no </td> <td>yes</td> <td>yes</td> <td>yes<sub>3</sub></td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1079
   * 						       <td>yes<sub>3</sub>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1080
   * 						                </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1081
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1082
   *    <tr><td><b>adapter_id</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1083
   *    <td>no </td> <td>yes</td> <td>yes</td> <td>yes<sub>3</sub></td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1084
   * 						       <td>yes<sub>3</sub>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1085
   * 								</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1086
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1087
   *    <tr><td><b>server_id</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1088
   *    <td>no </td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1089
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1090
   *    <tr><td><b>orb_id</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1091
   *    <td>no </td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1092
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1093
   *    <tr><td><b>adapter_name</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1094
   *    <td>no </td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1095
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1096
   *    <tr><td><b>target_most_derived_interface</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1097
   *    <td>no </td> <td>yes</td> <td>no<sub>4</sub></td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1098
   * 					  <td>no<sub>4</sub></td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1099
   * 						       <td>no<sub>4</sub>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1100
   * 							       </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1101
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1102
   *    <tr><td><b>get_server_policy</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1103
   *    <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1104
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1105
   *    <tr><td><b>set_slot</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1106
   *    <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1107
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1108
   *    <tr><td><b>target_is_a</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1109
   *    <td>no </td> <td>yes</td> <td>no<sub>4</sub></td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1110
   * 					  <td>no<sub>4</sub></td> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1111
   * 						       <td>no<sub>4</sub>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1112
   * 							       </td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1113
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1114
   *    <tr><td><b>add_reply_service_context</b></td>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1115
   *    <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td> <td>yes</td></tr>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1116
   *   </tbody>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1117
   * </table>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1118
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1119
   * <ol>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1120
   *   <li>When <code>ServerRequestInfo</code> is passed to 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1121
   *       <code>receive_request</code>, there is an entry in the list for 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1122
   *       every argument, whether in, inout, or out. But only the in and 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1123
   *       inout arguments will be available.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1124
   *   <li>If the <code>reply_status</code> attribute is not 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1125
   *       <code>LOCATION_FORWARD</code>, accessing this attribute will throw
02bb8761fcce Initial load
duke
parents:
diff changeset
  1126
   *       <code>BAD_INV_ORDER</code> with a standard minor code of 14.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1127
   *   <li>If the servant locator caused a location forward, or thrown an 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1128
   *       exception, this attribute/operation may not be available in this 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1129
   *       interception point. <code>NO_RESOURCES</code> with a standard minor 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1130
   *       code of 1 will be thrown if it is not available.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1131
   *   <li>The operation is not available in this interception point because 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1132
   *       the necessary information requires access to the target object's 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1133
   *       servant, which may no longer be available to the ORB. For example, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1134
   *       if the object's adapter is a POA that uses a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1135
   *       <code>ServantLocator</code>, then the ORB invokes the interception 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1136
   *       point after it calls <code>ServantLocator.postinvoke()</code></li>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1137
   * </ol>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1138
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1139
   * @see ServerRequestInterceptor
02bb8761fcce Initial load
duke
parents:
diff changeset
  1140
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1141
  local interface ServerRequestInfo : RequestInfo {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1142
02bb8761fcce Initial load
duke
parents:
diff changeset
  1143
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1144
     * Returns an any which contains the exception to be returned to 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1145
     * the client. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1146
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1147
     * If the exception is a user exception which cannot be inserted into 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1148
     * an any (e.g., it is unknown or the bindings don't provide the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1149
     * <code>TypeCode</code>), then this attribute will be an any 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1150
     * containing the system exception <code>UNKNOWN</code> with a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1151
     * standard minor code of 1.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1152
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1153
     * @see <a href="package-summary.html#unimpl">
02bb8761fcce Initial load
duke
parents:
diff changeset
  1154
     *     <code>PortableInterceptor</code> package comments for 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1155
     *     limitations / unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1156
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1157
    readonly attribute any sending_exception;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1158
02bb8761fcce Initial load
duke
parents:
diff changeset
  1159
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1160
     * Returns the opaque <code>object_id</code> describing the target of 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1161
     * the operation invocation.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1162
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1163
    readonly attribute ObjectId object_id;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1164
02bb8761fcce Initial load
duke
parents:
diff changeset
  1165
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1166
     * Returns the opaque identifier for the object adapter.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1167
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1168
    readonly attribute CORBA::OctetSeq adapter_id;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1169
02bb8761fcce Initial load
duke
parents:
diff changeset
  1170
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1171
     * Returns the server ID that was specified on ORB::init using the -ORBServerId
02bb8761fcce Initial load
duke
parents:
diff changeset
  1172
     * argument.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1173
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1174
    readonly attribute ServerId server_id ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1175
02bb8761fcce Initial load
duke
parents:
diff changeset
  1176
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1177
     * Returns the ID that was used to create the ORB.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1178
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1179
    readonly attribute ORBId orb_id ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1180
02bb8761fcce Initial load
duke
parents:
diff changeset
  1181
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1182
     * Returns the sequence of strings that identifies the object
02bb8761fcce Initial load
duke
parents:
diff changeset
  1183
     * adapter instance that is handling this request.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1184
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1185
    readonly attribute AdapterName adapter_name ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1186
02bb8761fcce Initial load
duke
parents:
diff changeset
  1187
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1188
     * Returns the repository id for the most derived interface of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1189
     * servant.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1190
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1191
    readonly attribute CORBA::RepositoryId 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1192
      target_most_derived_interface;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1193
02bb8761fcce Initial load
duke
parents:
diff changeset
  1194
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1195
     * Returns the policy in effect for this operation for the given 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1196
     * policy type. The returned <code>CORBA.Policy</code> object shall 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1197
     * only be a policy whose type was registered via 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1198
     * <code>register_policy_factory</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1199
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1200
     * @param type The <code>CORBA.PolicyType</code> which specifies the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1201
     *     policy to be returned. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1202
     * @return The <code>CORBA.Policy</code> obtained with the given 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1203
     *     policy type.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1204
     * @exception INV_POLICY thrown, with a standard minor code of 2, if
02bb8761fcce Initial load
duke
parents:
diff changeset
  1205
     *     a policy for the given type was not registered via 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1206
     *     <code>register_policy_factory</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1207
     * @see ORBInitInfo#register_policy_factory
02bb8761fcce Initial load
duke
parents:
diff changeset
  1208
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1209
    CORBA::Policy get_server_policy 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1210
      (in CORBA::PolicyType type);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1211
02bb8761fcce Initial load
duke
parents:
diff changeset
  1212
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1213
     * Allows an Interceptor to set a slot in the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1214
     * <code>PortableInterceptor.Current</code> that is in the scope of 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1215
     * the request. If data already exists in that slot, it will be 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1216
     * overwritten. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1217
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1218
     * @param id The id of the slot. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1219
     * @param data The data, in the form of an any, to store in that slot.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1220
     * @exception InvalidSlot thrown if the ID does not define an allocated 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1221
     *     slot. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1222
     * @see Current
02bb8761fcce Initial load
duke
parents:
diff changeset
  1223
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1224
    void set_slot (in SlotId id, in any data) raises (InvalidSlot);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1225
02bb8761fcce Initial load
duke
parents:
diff changeset
  1226
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1227
     * Returns true if the servant is the given repository id, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1228
     * false if it is not. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1229
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1230
     * @param id The caller wants to know if the servant is this 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1231
     *     repository id. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1232
     * @return Is the servant the given RepositoryId?
02bb8761fcce Initial load
duke
parents:
diff changeset
  1233
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1234
    boolean target_is_a (in CORBA::RepositoryId id);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1235
02bb8761fcce Initial load
duke
parents:
diff changeset
  1236
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1237
     * Allows Interceptors to add service contexts to the request. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1238
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1239
     * There is no declaration of the order of the service contexts. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1240
     * They may or may not appear in the order that they are added. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1241
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1242
     * @param service_context The <code>IOP.ServiceContext</code> to add to 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1243
     *     the reply. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1244
     * @param replace Indicates the behavior of this operation when a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1245
     *     service context already exists with the given ID. If false, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1246
     *     then <code>BAD_INV_ORDER</code> with a standard minor code of 15 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1247
     *     is thrown. If true, then the existing service context is 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1248
     *     replaced by the new one.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1249
     * @exception BAD_INV_ORDER thrown, with a standard minor code of 15, if
02bb8761fcce Initial load
duke
parents:
diff changeset
  1250
     *     replace is false and a service context already exists with the
02bb8761fcce Initial load
duke
parents:
diff changeset
  1251
     *     given ID.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1252
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1253
    void add_reply_service_context (
02bb8761fcce Initial load
duke
parents:
diff changeset
  1254
      in IOP::ServiceContext service_context,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1255
      in boolean replace);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1256
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
  1257
02bb8761fcce Initial load
duke
parents:
diff changeset
  1258
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1259
   * Client-side request interceptor.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1260
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1261
   * A request Interceptor is designed to intercept the flow of a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1262
   * request/reply sequence through the ORB at specific points so that 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1263
   * services can query the request information and manipulate the service 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1264
   * contexts which are propagated between clients and servers. The primary 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1265
   * use of request Interceptors is to enable ORB services to transfer 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1266
   * context information between clients and servers. There are two types 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1267
   * of request Interceptors: client-side and server-side. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1268
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1269
   * To write a client-side Interceptor, implement the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1270
   * <code>ClientRequestInterceptor</code> interface. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1271
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1272
   * @see ClientRequestInfo
02bb8761fcce Initial load
duke
parents:
diff changeset
  1273
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1274
  local interface ClientRequestInterceptor : Interceptor {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1275
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1276
     * Allows an Interceptor to query request information and modify the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1277
     * service context before the request is sent to the server.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1278
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1279
     * This interception point may throw a system exception. If it does, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1280
     * no other Interceptors' <code>send_request</code> operations are called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1281
     * Those Interceptors on the Flow Stack are popped and their 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1282
     * <code>receive_exception</code> interception points are called. This 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1283
     * interception point may also throw a <code>ForwardRequest</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1284
     * exception. If an Interceptor throws this exception, no other 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1285
     * Interceptors' <code>send_request</code> operations are 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1286
     * called. Those Interceptors on the Flow Stack are popped and their 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1287
     * <code>receive_other</code> interception points are called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1288
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1289
     * Compliant Interceptors shall properly follow completion_status 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1290
     * semantics if they throw a system exception from this interception 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1291
     * point. The <code>completion_status</code> shall be 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1292
     * <code>COMPLETED_NO</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1293
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1294
     * @param ri Information about the current request being intercepted.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1295
     * @exception ForwardRequest If thrown, indicates to the ORB that a
02bb8761fcce Initial load
duke
parents:
diff changeset
  1296
     *     retry of the request should occur with the new object given in
02bb8761fcce Initial load
duke
parents:
diff changeset
  1297
     *     the exception.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1298
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1299
    void send_request  (in ClientRequestInfo ri) raises (ForwardRequest);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1300
02bb8761fcce Initial load
duke
parents:
diff changeset
  1301
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1302
     * Allows an Interceptor to query information during a Time-Independent 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1303
     * Invocation (TII) polling get reply sequence. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1304
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1305
     * With TII, an application may poll for a response to a request sent 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1306
     * previously by the polling client or some other client. This poll is 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1307
     * reported to Interceptors through the <code>send_poll</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1308
     * interception point and the response is returned through the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1309
     * <code>receive_reply</code> or <code>receive_exception</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1310
     * interception points.  If the response is not available before the
02bb8761fcce Initial load
duke
parents:
diff changeset
  1311
     * poll time-out expires, the system exception <code>TIMEOUT</code> is
02bb8761fcce Initial load
duke
parents:
diff changeset
  1312
     * thrown and <code>receive_exception</code> is called with this 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1313
     * exception. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1314
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1315
     * This interception point may throw a system exception. If it does, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1316
     * no other Interceptors' <code>send_poll</code> operations are 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1317
     * called. Those Interceptors on the Flow Stack are popped and their 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1318
     * <code>receive_exception</code> interception points are called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1319
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1320
     * Compliant Interceptors shall properly follow 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1321
     * <code>completion_status</code> semantics if they throw a system 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1322
     * exception from this interception point. The completion_status shall be 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1323
     * <code>COMPLETED_NO</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1324
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1325
     * @param ri Information about the current request being intercepted.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1326
     * @exception TIMEOUT thrown if the response is not available before 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1327
     *     the poll time-out expires
02bb8761fcce Initial load
duke
parents:
diff changeset
  1328
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1329
    void send_poll (in ClientRequestInfo ri);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1330
02bb8761fcce Initial load
duke
parents:
diff changeset
  1331
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1332
     * Allows an Interceptor to query the information on a reply after it 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1333
     * is returned from the server and before control is returned to the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1334
     * client. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1335
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1336
     * This interception point may throw a system exception. If it does, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1337
     * no other Interceptors' <code>receive_reply</code> operations are 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1338
     * called. The remaining Interceptors in the Flow Stack shall have 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1339
     * their <code>receive_exception</code> interception point called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1340
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1341
     * Compliant Interceptors shall properly follow 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1342
     * <code>completion_status</code> semantics if they throw a system 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1343
     * exception from this interception point. The 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1344
     * <code>completion_status</code> shall be <code>COMPLETED_YES</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1345
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1346
     * @param ri Information about the current request being intercepted.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1347
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1348
    void receive_reply (in ClientRequestInfo ri);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1349
02bb8761fcce Initial load
duke
parents:
diff changeset
  1350
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1351
     * Indicates to the interceptor that an exception occurred.  Allows
02bb8761fcce Initial load
duke
parents:
diff changeset
  1352
     * an Interceptor to query the exception's information before it is 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1353
     * thrown to the client.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1354
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1355
     * This interception point may throw a system exception. This has the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1356
     * effect of changing the exception which successive Interceptors 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1357
     * popped from the Flow Stack receive on their calls to 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1358
     * <code>receive_exception</code>. The exception thrown to the client 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1359
     * will be the last exception thrown by an Interceptor, or the original 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1360
     * exception if no Interceptor changes the exception. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1361
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1362
     * This interception point may also throw a <code>ForwardRequest</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1363
     * exception.  If an Interceptor throws this exception, no other 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1364
     * Interceptors' <code>receive_exception</code> operations are called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1365
     * The remaining Interceptors in the Flow Stack are popped and have their 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1366
     * <code>receive_other</code> interception point called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1367
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1368
     * If the <code>completion_status</code> of the exception is not 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1369
     * <code>COMPLETED_NO</code>, then it is inappropriate for this 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1370
     * interception point to throw a <code>ForwardRequest</code> exception. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1371
     * The request s at-most-once semantics would be lost. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1372
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1373
     * Compliant Interceptors shall properly follow 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1374
     * <code>completion_status</code> semantics if they throw a system 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1375
     * exception from this interception point. If the original exception is 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1376
     * a system exception, the <code>completion_status</code> of the new 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1377
     * exception shall be the same as on the original. If the original 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1378
     * exception is a user exception, then the <code>completion_status</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1379
     * of the new exception shall be <code>COMPLETED_YES</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1380
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1381
     * Under some conditions, depending on what policies are in effect, an 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1382
     * exception (such as <code>COMM_FAILURE</code>) may result in a retry 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1383
     * of the request. While this retry is a new request with respect to 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1384
     * Interceptors, there is one point of correlation between the original 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1385
     * request and the retry: because control has not returned to the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1386
     * client, the <code>PortableInterceptor.Current</code> for both the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1387
     * original request and the retrying request is the same.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1388
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1389
     * @param ri Information about the current request being intercepted.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1390
     * @exception ForwardRequest If thrown, indicates to the ORB that a
02bb8761fcce Initial load
duke
parents:
diff changeset
  1391
     *     retry of the request should occur with the new object given in
02bb8761fcce Initial load
duke
parents:
diff changeset
  1392
     *     the exception.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1393
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1394
    void receive_exception (in ClientRequestInfo ri) raises (ForwardRequest);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1395
02bb8761fcce Initial load
duke
parents:
diff changeset
  1396
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1397
     * Allows an Interceptor to query the information available when a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1398
     * request results in something other than a normal reply or an 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1399
     * exception. For example, a request could result in a retry 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1400
     * (e.g., a GIOP Reply with a <code>LOCATION_FORWARD</code> status was 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1401
     * received); or on asynchronous calls, the reply does not immediately 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1402
     * follow the request, but control shall return to the client and an 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1403
     * ending interception point shall be called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1404
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1405
     * For retries, depending on the policies in effect, a new request may or 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1406
     * may not follow when a retry has been indicated. If a new request does 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1407
     * follow, while this request is a new request, with respect to 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1408
     * Interceptors, there is one point of correlation between the original 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1409
     * request and the retry: because control has not returned to the client, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1410
     * the request scoped <code>PortableInterceptor.Current</code> for both 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1411
     * the original request and the retrying request is the same.  
02bb8761fcce Initial load
duke
parents:
diff changeset
  1412
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1413
     * This interception point may throw a system exception. If it does, no 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1414
     * other Interceptors' <code>receive_other</code> operations are called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1415
     * The remaining Interceptors in the Flow Stack are popped and have 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1416
     * their <code>receive_exception</code> interception point called.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1417
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1418
     * This interception point may also throw a <code>ForwardRequest</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1419
     * exception.  If an Interceptor throws this exception, successive 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1420
     * Interceptors' <code>receive_other</code> operations are called with 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1421
     * the new information provided by the <code>ForwardRequest</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1422
     * exception. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1423
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1424
     * Compliant Interceptors shall properly follow 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1425
     * <code>completion_status</code> semantics if they throw a system 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1426
     * exception from this interception point. The 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1427
     * <code>completion_status</code> shall be <code>COMPLETED_NO</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1428
     * If the target invocation had completed, this interception point 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1429
     * would not be called.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1430
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1431
     * @param ri Information about the current request being intercepted.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1432
     * @exception ForwardRequest If thrown, indicates to the ORB that a
02bb8761fcce Initial load
duke
parents:
diff changeset
  1433
     *     retry of the request should occur with the new object given in
02bb8761fcce Initial load
duke
parents:
diff changeset
  1434
     *     the exception.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1435
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1436
    void receive_other (in ClientRequestInfo ri) raises (ForwardRequest);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1437
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
  1438
02bb8761fcce Initial load
duke
parents:
diff changeset
  1439
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1440
   * Server-side request interceptor.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1441
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1442
   * A request Interceptor is designed to intercept the flow of a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1443
   * request/reply sequence through the ORB at specific points so that 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1444
   * services can query the request information and manipulate the service 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1445
   * contexts which are propagated between clients and servers. The primary 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1446
   * use of request Interceptors is to enable ORB services to transfer 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1447
   * context information between clients and servers. There are two types 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1448
   * of request Interceptors: client-side and server-side. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1449
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1450
   * To write a server-side Interceptor, implement the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1451
   * ServerRequestInterceptor interface.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1452
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1453
   * @see ServerRequestInfo
02bb8761fcce Initial load
duke
parents:
diff changeset
  1454
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1455
  local interface ServerRequestInterceptor : Interceptor {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1456
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1457
     * Allows the interceptor to process service context information.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1458
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1459
     * At this interception point, Interceptors must get their service 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1460
     * context information from the incoming request transfer it to 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1461
     * <code>PortableInterceptor.Current</code>'s slots.  
02bb8761fcce Initial load
duke
parents:
diff changeset
  1462
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1463
     * This interception point is called before the servant manager is called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1464
     * Operation parameters are not yet available at this point. This 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1465
     * interception point may or may not execute in the same thread as 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1466
     * the target invocation. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1467
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1468
     * This interception point may throw a system exception. If it does, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1469
     * no other Interceptors' <code>receive_request_service_contexts</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1470
     * operations are called. Those Interceptors on the Flow Stack are 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1471
     * popped and their <code>send_exception</code> interception points are 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1472
     * called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1473
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1474
     * This interception point may also throw a <code>ForwardRequest</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1475
     * exception.  If an Interceptor throws this exception, no other 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1476
     * Interceptors' <code>receive_request_service_contexts</code> operations 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1477
     * are called. Those Interceptors on the Flow Stack are popped and 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1478
     * their <code>send_other</code> interception points are called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1479
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1480
     * Compliant Interceptors shall properly follow 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1481
     * <code>completion_status</code> semantics if they throw a system 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1482
     * exception from this interception point. The 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1483
     * <code>completion_status</code> shall be COMPLETED_NO.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1484
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1485
     * @param ri Information about the current request being intercepted.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1486
     * @exception ForwardRequest If thrown, indicates to the ORB that a
02bb8761fcce Initial load
duke
parents:
diff changeset
  1487
     *     retry of the request should occur with the new object given in
02bb8761fcce Initial load
duke
parents:
diff changeset
  1488
     *     the exception.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1489
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1490
    void receive_request_service_contexts (in ServerRequestInfo ri) 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1491
      raises (ForwardRequest);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1492
02bb8761fcce Initial load
duke
parents:
diff changeset
  1493
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1494
     * Allows an Interceptor to query request information after all the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1495
     * information, including operation parameters, are available. This 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1496
     * interception point shall execute in the same thread as the target 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1497
     * invocation.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1498
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1499
     * In the DSI model, since the parameters are first available when 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1500
     * the user code calls <code>arguments</code>, <code>receive_request</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1501
     * is called from within <code>arguments</code>. It is possible that 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1502
     * <code>arguments</code> is not called in the DSI model. The target 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1503
     * may call <code>set_exception</code> before calling 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1504
     * <code>arguments</code>. The ORB shall guarantee that 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1505
     * <code>receive_request</code> is called once, either through 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1506
     * <code>arguments</code> or through <code>set_exception</code>. If it 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1507
     * is called through <code>set_exception</code>, requesting the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1508
     * arguments will result in <code>NO_RESOURCES</code> being thrown with 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1509
     * a standard minor code of 1. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1510
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1511
     * This interception point may throw a system exception. If it does, no 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1512
     * other Interceptors' <code>receive_request</code> operations are 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1513
     * called. Those Interceptors on the Flow Stack are popped and their 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1514
     * <code>send_exception</code> interception points are called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1515
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1516
     * This interception point may also throw a <code>ForwardRequest</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1517
     * exception.  If an Interceptor throws this exception, no other 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1518
     * Interceptors' <code>receive_request</code> operations are called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1519
     * Those Interceptors on the Flow Stack are popped and their 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1520
     * <code>send_other</code> interception points are called.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1521
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1522
     * Compliant Interceptors shall properly follow 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1523
     * <code>completion_status</code> semantics if they throw a system 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1524
     * exception from this interception point. The 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1525
     * <code>completion_status</code> shall be <code>COMPLETED_NO</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1526
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1527
     * @param ri Information about the current request being intercepted.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1528
     * @exception ForwardRequest If thrown, indicates to the ORB that a
02bb8761fcce Initial load
duke
parents:
diff changeset
  1529
     *     retry of the request should occur with the new object given in
02bb8761fcce Initial load
duke
parents:
diff changeset
  1530
     *     the exception.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1531
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1532
    void receive_request (in ServerRequestInfo ri) raises (ForwardRequest);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1533
02bb8761fcce Initial load
duke
parents:
diff changeset
  1534
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1535
     * Allows an Interceptor to query reply information and modify the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1536
     * reply service context after the target operation has been invoked 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1537
     * and before the reply is returned to the client. This interception 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1538
     * point shall execute in the same thread as the target invocation. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1539
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1540
     * This interception point may throw a system exception. If it does, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1541
     * no other Interceptors' <code>send_reply</code> operations are called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1542
     * The remaining Interceptors in the Flow Stack shall have their 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1543
     * <code>send_exception</code> interception point called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1544
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1545
     * Compliant Interceptors shall properly follow 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1546
     * <code>completion_status</code> semantics if they throw a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1547
     * system exception from this interception point. The 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1548
     * <code>completion_status</code> shall be <code>COMPLETED_YES</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1549
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1550
     * @param ri Information about the current request being intercepted.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1551
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1552
    void send_reply (in ServerRequestInfo ri);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1553
02bb8761fcce Initial load
duke
parents:
diff changeset
  1554
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1555
     * Allows an Interceptor to query the exception information and modify 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1556
     * the reply service context before the exception is thrown to the client. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1557
     * When an exception occurs, this interception point is called. This 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1558
     * interception point shall execute in the same thread as the target 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1559
     * invocation. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1560
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1561
     * This interception point may throw a system exception. This has the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1562
     * effect of changing the exception which successive Interceptors 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1563
     * popped from the Flow Stack receive on their calls to 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1564
     * <code>send_exception</code>. The exception thrown to the client will 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1565
     * be the last exception thrown by an Interceptor, or the original 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1566
     * exception if no Interceptor changes the exception. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1567
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1568
     * This interception point may also throw a <code>ForwardRequest</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1569
     * exception.  If an Interceptor throws this exception, no other 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1570
     * Interceptors' <code>send_exception</code> operations are called. The 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1571
     * remaining Interceptors in the Flow Stack shall have their 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1572
     * <code>send_other</code> interception points called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1573
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1574
     * If the <code>completion_status</code> of the exception is not 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1575
     * <code>COMPLETED_NO</code>, then it is inappropriate for this 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1576
     * interception point to throw a <code>ForwardRequest</code> exception. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1577
     * The request's at-most-once semantics would be lost. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1578
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1579
     * Compliant Interceptors shall properly follow 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1580
     * <code>completion_status</code> semantics if they throw a system 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1581
     * exception from this interception point. If the original exception 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1582
     * is a system exception, the <code>completion_status</code> of the new 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1583
     * exception shall be the same as on the original. If the original 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1584
     * exception is a user exception, then the <code>completion_status</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1585
     * of the new exception shall be <code>COMPLETED_YES</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1586
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1587
     * @param ri Information about the current request being intercepted.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1588
     * @exception ForwardRequest If thrown, indicates to the ORB that a
02bb8761fcce Initial load
duke
parents:
diff changeset
  1589
     *     retry of the request should occur with the new object given in
02bb8761fcce Initial load
duke
parents:
diff changeset
  1590
     *     the exception.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1591
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1592
    void send_exception (in ServerRequestInfo ri) raises (ForwardRequest);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1593
02bb8761fcce Initial load
duke
parents:
diff changeset
  1594
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1595
     * Allows an Interceptor to query the information available when a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1596
     * request results in something other than a normal reply or an 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1597
     * exception. For example, a request could result in a retry 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1598
     * (e.g., a GIOP Reply with a <code>LOCATION_FORWARD</code> status was 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1599
     * received). This interception point shall execute in the same thread 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1600
     * as the target invocation. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1601
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1602
     * This interception point may throw a system exception. If it does, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1603
     * no other Interceptors' <code>send_other</code> operations are called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1604
     * The remaining Interceptors in the Flow Stack shall have their 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1605
     * <code>send_exception</code> interception points called. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1606
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1607
     * This interception point may also throw a <code>ForwardRequest</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1608
     * exception.  If an Interceptor throws this exception, successive 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1609
     * Interceptors' <code>send_other</code> operations are called with 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1610
     * the new information provided by the <code>ForwardRequest</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1611
     * exception. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1612
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1613
     * Compliant Interceptors shall properly follow 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1614
     * <code>completion_status</code> semantics if they throw a system 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1615
     * exception from this interception point. The 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1616
     * <code>completion_status</code> shall be <code>COMPLETED_NO</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1617
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1618
     * @param ri Information about the current request being intercepted.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1619
     * @exception ForwardRequest If thrown, indicates to the ORB that a
02bb8761fcce Initial load
duke
parents:
diff changeset
  1620
     *     retry of the request should occur with the new object given in
02bb8761fcce Initial load
duke
parents:
diff changeset
  1621
     *     the exception.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1622
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1623
    void send_other (in ServerRequestInfo ri) raises (ForwardRequest);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1624
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
  1625
02bb8761fcce Initial load
duke
parents:
diff changeset
  1626
  /** The object reference factory.  This provides the capability of
02bb8761fcce Initial load
duke
parents:
diff changeset
  1627
  * creating an object reference.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1628
  */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1629
  abstract valuetype ObjectReferenceFactory {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1630
    /** make_object creates a CORBA object reference according
02bb8761fcce Initial load
duke
parents:
diff changeset
  1631
    * to the data in this template, with the given repository ID and
02bb8761fcce Initial load
duke
parents:
diff changeset
  1632
    * object ID.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1633
    */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1634
    Object make_object( in string repositoryId, in ObjectId object_id ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1635
  } ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1636
    
02bb8761fcce Initial load
duke
parents:
diff changeset
  1637
  /** The object reference template.  An instance of this must
02bb8761fcce Initial load
duke
parents:
diff changeset
  1638
   * exist for each object adapter created in an ORB.  The server_id,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1639
   * orb_id, and adapter_name attributes uniquely identify this template
02bb8761fcce Initial load
duke
parents:
diff changeset
  1640
   * within the scope of an IMR.  Note that adapter_id is similarly unique
02bb8761fcce Initial load
duke
parents:
diff changeset
  1641
   * within the same scope, but it is opaque, and less useful in many
02bb8761fcce Initial load
duke
parents:
diff changeset
  1642
   * cases.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1643
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1644
  abstract valuetype ObjectReferenceTemplate : ObjectReferenceFactory {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1645
02bb8761fcce Initial load
duke
parents:
diff changeset
  1646
    readonly attribute ServerId server_id ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1647
02bb8761fcce Initial load
duke
parents:
diff changeset
  1648
    readonly attribute ORBId orb_id ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1649
02bb8761fcce Initial load
duke
parents:
diff changeset
  1650
    readonly attribute AdapterName adapter_name ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1651
  } ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1652
02bb8761fcce Initial load
duke
parents:
diff changeset
  1653
  /** Sequence of object reference templates is used for reporting state
02bb8761fcce Initial load
duke
parents:
diff changeset
  1654
   * changes that do not occur on the adapter manager.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1655
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1656
  typedef sequence<ObjectReferenceTemplate> ObjectReferenceTemplateSeq ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1657
02bb8761fcce Initial load
duke
parents:
diff changeset
  1658
  /** Adapter manager identifier.  Every object adapter has an adapter manager,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1659
   * indicated in this API only through the ID.  A group of object adapter
02bb8761fcce Initial load
duke
parents:
diff changeset
  1660
   * instances may share the same adapter manager, in which case state transitions
02bb8761fcce Initial load
duke
parents:
diff changeset
  1661
   * reported for the adapter manager are observed by all object adapters with the
02bb8761fcce Initial load
duke
parents:
diff changeset
  1662
   * same adapter manager ID.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1663
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1664
  typedef long AdapterManagerId ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1665
02bb8761fcce Initial load
duke
parents:
diff changeset
  1666
  /** Type of object adapter state.  State changes are reported either to
02bb8761fcce Initial load
duke
parents:
diff changeset
  1667
   * the object adapter or to the adapter manager.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1668
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1669
  typedef short AdapterState ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1670
02bb8761fcce Initial load
duke
parents:
diff changeset
  1671
  /** Object adapter state that holds requests temporarily until the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1672
   * state is changed.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1673
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1674
  const AdapterState HOLDING	    = 0 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1675
02bb8761fcce Initial load
duke
parents:
diff changeset
  1676
  /** Object adapter state that indicates normal request processing.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1677
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1678
  const AdapterState ACTIVE	    = 1 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1679
02bb8761fcce Initial load
duke
parents:
diff changeset
  1680
  /** Object adapter state that causes all requests to be discarded.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1681
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1682
  const AdapterState DISCARDING   = 2 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1683
02bb8761fcce Initial load
duke
parents:
diff changeset
  1684
  /** Object adapter state that causes all requests to be discarded.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1685
   * This state indicates that the adapter is shutting down.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1686
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1687
  const AdapterState INACTIVE     = 3 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1688
02bb8761fcce Initial load
duke
parents:
diff changeset
  1689
  /** Object adapter state indicating that the adapter has been destroyed.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1690
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1691
  const AdapterState NON_EXISTENT = 4 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1692
02bb8761fcce Initial load
duke
parents:
diff changeset
  1693
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1694
   * Provides the server-side ORB service with access to the applicable 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1695
   * policies during IOR construction and the ability to add components. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1696
   * The ORB passes an instance of its implementation of this interface as 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1697
   * a parameter to <code>IORInterceptor.establish_components</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1698
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1699
   * @see IORInterceptor
02bb8761fcce Initial load
duke
parents:
diff changeset
  1700
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1701
  local interface IORInfo {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1702
02bb8761fcce Initial load
duke
parents:
diff changeset
  1703
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1704
     * Allows an ORB service implementation to determine what server side 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1705
     * policy of a particular type is in effect for an IOR being 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1706
     * constructed.  When the IOR being constructed is for an object 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1707
     * implemented using a POA, all Policy objects passed to the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1708
     * <code>PortableServer.POA.create_POA</code> call that created that 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1709
     * POA are accessable via <code>get_effective_policy</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1710
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1711
     * If a policy for the given type is not known to the ORB, then this 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1712
     * operation will throw <code>INV_POLICY</code> with a standard minor 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1713
     * code of 2. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1714
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1715
     * @param type an int specifying the type of policy to return. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1716
     * @return The effective <code>CORBA.Policy</code> object of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1717
     *     requested type. If the given policy type is known, but no policy 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1718
     *     of that type is in effect, then this operation will return a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1719
     *     nil object reference.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1720
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1721
    CORBA::Policy get_effective_policy 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1722
      (in CORBA::PolicyType type);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1723
02bb8761fcce Initial load
duke
parents:
diff changeset
  1724
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1725
     * A portable ORB service implementation calls 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1726
     * <code>add_ior_component</code> from its implementation of 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1727
     * <code>establish_components</code> to add a tagged component to the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1728
     * set which will be included when constructing IORs. The components in 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1729
     * this set will be included in all profiles. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1730
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1731
     * Any number of components may exist with the same component ID. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1732
     * 
4623
e3aaa29eff65 6917485: Corba doc warnings
andrew
parents: 4
diff changeset
  1733
     * @param tagged_component The IOP.TaggedComponent to add.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1734
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1735
    void add_ior_component 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1736
      (in IOP::TaggedComponent tagged_component);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1737
02bb8761fcce Initial load
duke
parents:
diff changeset
  1738
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1739
     * A portable ORB service implementation calls 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1740
     * <code>add_ior_component_to_profile</code> from its implementation of 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1741
     * <code>establish_components</code> to add a tagged component to the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1742
     * set which will be included when constructing IORs. The components in 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1743
     * this set will be included in the specified profile. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1744
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1745
     * Any number of components may exist with the same component ID. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1746
     * 
4623
e3aaa29eff65 6917485: Corba doc warnings
andrew
parents: 4
diff changeset
  1747
     * @param tagged_component The <code>IOP.TaggedComponent</code> to add. 
4
02bb8761fcce Initial load
duke
parents:
diff changeset
  1748
     * @param profile_id The profile id of the profile to 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1749
     *     which this component will be added.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1750
     * @exception BAD_PARAM thrown, with a standard minor code of 29, if the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1751
     *     given profile ID does not define a known profile or it is 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1752
     *     impossible to add components to that profile.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1753
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1754
    void add_ior_component_to_profile (
02bb8761fcce Initial load
duke
parents:
diff changeset
  1755
      in IOP::TaggedComponent tagged_component,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1756
      in IOP::ProfileId profile_id);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1757
02bb8761fcce Initial load
duke
parents:
diff changeset
  1758
    /** Return the adapter manager id of the object adapter
02bb8761fcce Initial load
duke
parents:
diff changeset
  1759
     * that was just created and is running IOR interceptors.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1760
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1761
    readonly attribute AdapterManagerId manager_id ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1762
02bb8761fcce Initial load
duke
parents:
diff changeset
  1763
    /** Return the adapter state of the object adapter
02bb8761fcce Initial load
duke
parents:
diff changeset
  1764
     * that was just created and is running IOR interceptors.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1765
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1766
    readonly attribute AdapterState state ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1767
02bb8761fcce Initial load
duke
parents:
diff changeset
  1768
    /** Return the object reference template of the object adapter
02bb8761fcce Initial load
duke
parents:
diff changeset
  1769
     * that was just created and is running IOR interceptors.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1770
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1771
    readonly attribute ObjectReferenceTemplate adapter_template ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1772
02bb8761fcce Initial load
duke
parents:
diff changeset
  1773
    /** On read, returns the current factory that will be used to create
02bb8761fcce Initial load
duke
parents:
diff changeset
  1774
     * object references for the object adapter that was just created
02bb8761fcce Initial load
duke
parents:
diff changeset
  1775
     * and is running IOR interceptors.  By default, this factory is the same
02bb8761fcce Initial load
duke
parents:
diff changeset
  1776
     * as the value of the adapter_template attribute.  The current_factory 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1777
     * may also be set to another object reference template inside an
02bb8761fcce Initial load
duke
parents:
diff changeset
  1778
     * IORInterceptor_3_0.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1779
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1780
    attribute ObjectReferenceFactory current_factory ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1781
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
  1782
02bb8761fcce Initial load
duke
parents:
diff changeset
  1783
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1784
   * Interceptor used to establish tagged components in the profiles within 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1785
   * an IOR.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1786
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1787
   * In some cases, a portable ORB service implementation may need to add 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1788
   * information describing the server's or object's ORB service related 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1789
   * capabilities to object references in order to enable the ORB service 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1790
   * implementation in the client to function properly. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1791
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1792
   * This is supported through the <code>IORInterceptor</code> and 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1793
   * <code>IORInfo</code> interfaces. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1794
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1795
   * @see IORInfo
02bb8761fcce Initial load
duke
parents:
diff changeset
  1796
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1797
  local interface IORInterceptor : Interceptor {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1798
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1799
     * A server side ORB calls the <code>establish_components</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1800
     * operation on all registered <code>IORInterceptor</code> instances 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1801
     * when it is assembling the list of components that will be included 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1802
     * in the profile or profiles of an object reference. This operation 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1803
     * is not necessarily called for each individual object reference. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1804
     * In the case of the POA, this operation is called each time POA::create_POA
02bb8761fcce Initial load
duke
parents:
diff changeset
  1805
     * is called.  In any case, <code>establish_components</code> is 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1806
     * guaranteed to be called at least once for each distinct set of 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1807
     * server policies. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1808
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1809
     * An implementation of <code>establish_components</code> must not 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1810
     * throw exceptions. If it does, the ORB shall ignore the exception 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1811
     * and proceed to call the next IOR Interceptor's 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1812
     * <code>establish_components</code> operation. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1813
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1814
     * @param info The <code>IORInfo</code> instance used by the ORB 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1815
     *     service to query applicable policies and add components to be 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1816
     *     included in the generated IORs.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1817
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1818
    void establish_components (in IORInfo info);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1819
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
  1820
02bb8761fcce Initial load
duke
parents:
diff changeset
  1821
  local interface IORInterceptor_3_0 : IORInterceptor {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1822
    /** The components_established method is invoked on all registered 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1823
     * IORInterceptor_3_0 instances after establish_components
02bb8761fcce Initial load
duke
parents:
diff changeset
  1824
     * has been invoked on all registered IORInterceptor instances.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1825
     * The adapter_template is available in info during this call.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1826
     * The current_factory may be get or set in info during this call.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1827
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1828
     * Any exception thrown from this method is handled by the Object 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1829
     * Adapter that called this interceptor.  In the case of the POA,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1830
     * an exception results in a OBJ_ADAPTER exception with an OMG
02bb8761fcce Initial load
duke
parents:
diff changeset
  1831
     * standard minor code of 6.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1832
     * @param info The IORInfo for the object adapter being created.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1833
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1834
    void components_established( in IORInfo info ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1835
02bb8761fcce Initial load
duke
parents:
diff changeset
  1836
    /** Called whenever the state of an adapter manager changes.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1837
     * For the POA, that is the POAManager.  If the state change
02bb8761fcce Initial load
duke
parents:
diff changeset
  1838
     * is reported through <code>adapter_manager_state_changed</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1839
     * it is not reported through <code>adapter_state_changed</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1840
     * @param id the adapter manager id of the adapter manager that 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1841
     * changed state
02bb8761fcce Initial load
duke
parents:
diff changeset
  1842
     * @param state the new state of the adapter manager
02bb8761fcce Initial load
duke
parents:
diff changeset
  1843
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1844
    void adapter_manager_state_changed( in AdapterManagerId id, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1845
	in AdapterState state ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1846
02bb8761fcce Initial load
duke
parents:
diff changeset
  1847
    /** Called whenever the state of an object adapter changes, and
02bb8761fcce Initial load
duke
parents:
diff changeset
  1848
     * the state change is not caused by an adapter manager.  Such
02bb8761fcce Initial load
duke
parents:
diff changeset
  1849
     * changes are reported to all registered <code>IORInterceptor_3_0</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1850
     * instances.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1851
     * @param templates the sequence of <code>ObjectReferenceTemplate</code> instances
02bb8761fcce Initial load
duke
parents:
diff changeset
  1852
     *     on which this state change occurred.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1853
     * @param state the new <code>AdapterState</code> shared by all of the templates.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1854
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1855
    void adapter_state_changed( in ObjectReferenceTemplateSeq templates, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1856
	in AdapterState state ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1857
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
  1858
02bb8761fcce Initial load
duke
parents:
diff changeset
  1859
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1860
   * Enables policy types to be constructed using 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1861
   * <code>CORBA.ORB.create_policy</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1862
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1863
   * A portable ORB service implementation registers an instance of the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1864
   * <code>PolicyFactory</code> interface during ORB initialization in order 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1865
   * to enable its policy types to be constructed using 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1866
   * <code>CORBA.ORB.create_policy</code>. The POA is required to preserve 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1867
   * any policy which is registered with <code>ORBInitInfo</code> in this 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1868
   * manner.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1869
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1870
   * @see ORBInitInfo#register_policy_factory
02bb8761fcce Initial load
duke
parents:
diff changeset
  1871
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1872
  local interface PolicyFactory
02bb8761fcce Initial load
duke
parents:
diff changeset
  1873
  {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1874
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1875
     * Returns an instance of the appropriate interface derived from 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1876
     * <code>CORBA.Policy</code> whose value corresponds to the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1877
     * specified any. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1878
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1879
     * The ORB calls <code>create_policy</code> on a registered 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1880
     * <code>PolicyFactory</code> instance when 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1881
     * <code>CORBA.ORB.create_policy</code> is called for the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1882
     * <code>PolicyType</code> under which the <code>PolicyFactory</code> has 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1883
     * been registered. The <code>create_policy</code> operation then 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1884
     * returns an instance of the appropriate interface derived from 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1885
     * <code>CORBA.Policy</code> whose value corresponds to the specified 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1886
     * any. If it cannot, it shall throw an exception as described for 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1887
     * <code>CORBA.ORB.create_policy</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1888
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1889
     * @param type An int specifying the type of policy being created. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1890
     * @param value An any containing data with which to construct the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1891
     *     <code>CORBA.Policy</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1892
     * @return A <code>CORBA.Policy<code> object of the specified type and 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1893
     *     value.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1894
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1895
    CORBA::Policy create_policy 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1896
      (in CORBA::PolicyType type, in any value)
02bb8761fcce Initial load
duke
parents:
diff changeset
  1897
      raises (CORBA::PolicyError);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1898
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
  1899
02bb8761fcce Initial load
duke
parents:
diff changeset
  1900
  /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1901
   * Passed to each <code>ORBInitializer</code>, allowing it to
02bb8761fcce Initial load
duke
parents:
diff changeset
  1902
   * to register interceptors and perform other duties while the ORB is 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1903
   * initializing.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1904
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1905
   * The <code>ORBInitInfo</code> object is only valid during 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1906
   * <code>ORB.init</code>.  If a service keeps a reference to its 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1907
   * <code>ORBInitInfo</code> object and tries to use it after 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1908
   * <code>ORB.init</code> returns, the object no longer exists and an 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1909
   * <code>OBJECT_NOT_EXIST</code> exception shall be thrown.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1910
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  1911
   * @see ORBInitializer
02bb8761fcce Initial load
duke
parents:
diff changeset
  1912
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1913
  local interface ORBInitInfo {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1914
02bb8761fcce Initial load
duke
parents:
diff changeset
  1915
    /** Object id, represented as a String */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1916
    typedef string ObjectId;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1917
02bb8761fcce Initial load
duke
parents:
diff changeset
  1918
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1919
     * Only one Interceptor of a given name can be registered with the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1920
     * ORB for each Interceptor type. If an attempt is made to register a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1921
     * second Interceptor with the same name, DuplicateName is thrown. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1922
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1923
     * An Interceptor may be anonymous, i.e., have an empty string as the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1924
     * name attribute. Any number of anonymous Interceptors may be 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1925
     * registered with the ORB so, if the Interceptor being registered 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1926
     * is anonymous, the registration operation will not throw 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1927
     * <code>DuplicateName</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1928
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1929
    exception DuplicateName {
02bb8761fcce Initial load
duke
parents:
diff changeset
  1930
      /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1931
       * The name for which there was already an interceptor registered.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1932
       */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1933
      string name;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1934
    };
02bb8761fcce Initial load
duke
parents:
diff changeset
  1935
02bb8761fcce Initial load
duke
parents:
diff changeset
  1936
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1937
     * This exception is thrown by 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1938
     * <code>register_initial_reference</code> and 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1939
     * <code>resolve_initial_references</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1940
     * <code>register_initial_reference</code> throws <code>InvalidName</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1941
     * if:
02bb8761fcce Initial load
duke
parents:
diff changeset
  1942
     * <ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1943
     *   <li>this operation is called with an empty string id; or</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1944
     *   <li>this operation is called with an id that is already registered,
02bb8761fcce Initial load
duke
parents:
diff changeset
  1945
     *       including the default names defined by OMG.</li>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1946
     * </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
  1947
     * <code>resolve_initial_references</code> throws
02bb8761fcce Initial load
duke
parents:
diff changeset
  1948
     * <code>InvalidName</code> if the name to be resolved is invalid.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1949
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1950
    exception InvalidName {};
02bb8761fcce Initial load
duke
parents:
diff changeset
  1951
02bb8761fcce Initial load
duke
parents:
diff changeset
  1952
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1953
     * Returns the arguments passed to <code>ORB.init</code>.  They may or
02bb8761fcce Initial load
duke
parents:
diff changeset
  1954
     * may not contain the ORB's arguments.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1955
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1956
    readonly attribute CORBA::StringSeq arguments;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1957
02bb8761fcce Initial load
duke
parents:
diff changeset
  1958
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1959
     * Returns the ID of the ORB being initialized.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1960
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1961
    readonly attribute string orb_id;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1962
02bb8761fcce Initial load
duke
parents:
diff changeset
  1963
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1964
     * Returns the <code>IOP.CodecFactory</code>. The 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1965
     * <code>CodecFactory</code> is normally obtained via a call to 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1966
     * <code>ORB.resolve_initial_references( "CodecFactory" )</code>, but 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1967
     * since the ORB is not yet available and Interceptors, particularly when 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1968
     * processing service contexts, will require a <code>Codec</code>, a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1969
     * means of obtaining a <code>Codec</code> is necessary during ORB 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1970
     * initialization.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1971
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1972
    readonly attribute IOP::CodecFactory codec_factory;
02bb8761fcce Initial load
duke
parents:
diff changeset
  1973
02bb8761fcce Initial load
duke
parents:
diff changeset
  1974
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1975
     * Identical to <code>ORB.register_initial_reference</code>. This same 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1976
     * functionality exists here because the ORB, not yet fully initialized, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1977
     * is not yet available but initial references may need to be 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1978
     * registered as part of Interceptor registration. The only difference 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1979
     * is that the version of this operation on the ORB uses PIDL 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1980
     * (<code>CORBA.ORB.ObjectId</code>) and 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1981
     * (<code>CORBA.ORB.InvalidName</code>) whereas the version in this 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1982
     * interface uses IDL defined in this interface; the semantics are 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1983
     * identical.
02bb8761fcce Initial load
duke
parents:
diff changeset
  1984
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  1985
    void register_initial_reference (in ObjectId id, in Object obj)
02bb8761fcce Initial load
duke
parents:
diff changeset
  1986
      raises (InvalidName);
02bb8761fcce Initial load
duke
parents:
diff changeset
  1987
02bb8761fcce Initial load
duke
parents:
diff changeset
  1988
    // This was incorrectly returning void in orbos/99-12-02, correction
02bb8761fcce Initial load
duke
parents:
diff changeset
  1989
    // from errata in orbos/00-01-01
02bb8761fcce Initial load
duke
parents:
diff changeset
  1990
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  1991
     * Identical to <code>ORB.resolve_initial_references</code>. This same 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1992
     * functionality exists here because the ORB, not yet fully initialized, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1993
     * is not yet available but initial references may be required from the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1994
     * ORB as part of Interceptor registration. The only difference is that 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1995
     * the version of this operation on the ORB uses PIDL 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1996
     * (<code>CORBA::ORB::ObjectId</code> and 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1997
     * <code>CORBA::ORB::InvalidName</code>) whereas the version in this 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1998
     * interface uses IDL defined in this interface; the semantics 
02bb8761fcce Initial load
duke
parents:
diff changeset
  1999
     * are identical.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2000
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2001
     * This operation is only valid during post_init.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2002
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  2003
    Object resolve_initial_references (in ObjectId id) raises (InvalidName);
02bb8761fcce Initial load
duke
parents:
diff changeset
  2004
02bb8761fcce Initial load
duke
parents:
diff changeset
  2005
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  2006
     * Used to add a client-side request Interceptor to the list of 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2007
     * client-side request Interceptors.  
02bb8761fcce Initial load
duke
parents:
diff changeset
  2008
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  2009
     * @param interceptor The <code>ClientRequestInterceptor</code> to be 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2010
     *     added.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2011
     * @exception DuplicateName thrown if a client-side request Interceptor 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2012
     *     has already been registered with this Interceptor's name.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2013
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  2014
    void add_client_request_interceptor 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2015
      (in ClientRequestInterceptor interceptor)
02bb8761fcce Initial load
duke
parents:
diff changeset
  2016
      raises (DuplicateName);
02bb8761fcce Initial load
duke
parents:
diff changeset
  2017
02bb8761fcce Initial load
duke
parents:
diff changeset
  2018
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2019
     * Used to add a server-side request Interceptor to the list of 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2020
     * server-side request Interceptors.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2021
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  2022
     * @param interceptor The ServerRequestInterceptor to be added.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2023
     * @exception DuplicateName thrown if a server-side request Interceptor 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2024
     *     has already been registered with this Interceptor's name
02bb8761fcce Initial load
duke
parents:
diff changeset
  2025
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  2026
    void add_server_request_interceptor (
02bb8761fcce Initial load
duke
parents:
diff changeset
  2027
      in ServerRequestInterceptor interceptor)
02bb8761fcce Initial load
duke
parents:
diff changeset
  2028
      raises (DuplicateName);
02bb8761fcce Initial load
duke
parents:
diff changeset
  2029
02bb8761fcce Initial load
duke
parents:
diff changeset
  2030
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  2031
     * Used to add an IOR Interceptor to the list of IOR Interceptors. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2032
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  2033
     * @param interceptor The IORInterceptor to be added.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2034
     * @exception DuplicateName thrown if an IOR Interceptor has already 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2035
     *     been registered with this Interceptor's name. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2036
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  2037
    void add_ior_interceptor (in IORInterceptor interceptor)
02bb8761fcce Initial load
duke
parents:
diff changeset
  2038
      raises (DuplicateName);
02bb8761fcce Initial load
duke
parents:
diff changeset
  2039
02bb8761fcce Initial load
duke
parents:
diff changeset
  2040
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  2041
     * Called to allocate a slot on <code>PortableInterceptor.Current</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2042
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2043
     * Note that while slot id's can be allocated within an ORB initializer, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2044
     * the slots themselves cannot be initialized. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2045
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  2046
     * @return The index to the slot which has been allocated.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2047
     * @exception BAD_INV_ORDER thrown, with a standard minor code of 14, if 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2048
     *     <code>set_slot</code> or <code>get_slot</code> is called on the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2049
     *     <code>PICurrent</code> within an ORB initializer. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2050
     * @see Current
02bb8761fcce Initial load
duke
parents:
diff changeset
  2051
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  2052
    SlotId allocate_slot_id ();
02bb8761fcce Initial load
duke
parents:
diff changeset
  2053
02bb8761fcce Initial load
duke
parents:
diff changeset
  2054
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  2055
     * Registers a <code>PolicyFactory</code> for the given 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2056
     * <code>PolicyType</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2057
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2058
     * @param type The policy type that the given <code>PolicyFactory</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2059
     *     serves. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2060
     * @param policy_factory The factory for the given policy type.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2061
     * @exception BAD_INV_ORDER thrown, with a standard minor code of 16, if 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2062
     *     a <code>PolicyFactory</code> already exists for the given 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2063
     *     <code>PolicyType</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2064
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  2065
    void register_policy_factory (
02bb8761fcce Initial load
duke
parents:
diff changeset
  2066
      in CORBA::PolicyType type,
02bb8761fcce Initial load
duke
parents:
diff changeset
  2067
      in PolicyFactory policy_factory);
02bb8761fcce Initial load
duke
parents:
diff changeset
  2068
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
  2069
02bb8761fcce Initial load
duke
parents:
diff changeset
  2070
  /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  2071
   * Facilitates interceptor registration and ORB initialization.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2072
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2073
   * Interceptors are intended to be a means by which ORB services gain 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2074
   * access to ORB processing, effectively becoming part of the ORB. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2075
   * Since Interceptors are part of the ORB, when <code>ORB.init</code> 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2076
   * returns an ORB, the Interceptors shall have been registered. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2077
   * Interceptors cannot be registered on an ORB after it has been 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2078
   * returned by a call to <code>ORB.init</code>.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2079
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2080
   * An Interceptor is registered by registering an associated 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2081
   * <code>ORBInitializer</code> object which implements the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2082
   * <code>ORBInitializer</code> interface. When an ORB is initializing, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2083
   * it shall call each registered <code>ORBInitializer</code>, passing it 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2084
   * an <code>ORBInitInfo</code> object which is used to register its 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2085
   * Interceptor.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2086
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2087
   * <b>Registering ORB Initializers in Java</b>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2088
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2089
   * ORBInitializers are registered via Java ORB properties.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2090
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2091
   * The property names are of the form: 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2092
   *   <blockquote><code>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2093
   *     org.omg.PortableInterceptor.ORBInitializerClass.&lt;Service&gt;
02bb8761fcce Initial load
duke
parents:
diff changeset
  2094
   *   </code></blockquote>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2095
   * where <code>&lt;Service&gt;</code> is the string name of a class 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2096
   * which implements 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2097
   *   <blockquote><code>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2098
   *     org.omg.PortableInterceptor.ORBInitializer
02bb8761fcce Initial load
duke
parents:
diff changeset
  2099
   *   </code></blockquote>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2100
   * To avoid name collisions, the reverse DNS name convention should be 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2101
   * used. For example, if company X has three initializers, it could define 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2102
   * the following properties: 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2103
   * <ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2104
   *   <li><code>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2105
   *     org.omg.PortableInterceptor.ORBInitializerClass.com.x.Init1
02bb8761fcce Initial load
duke
parents:
diff changeset
  2106
   *   </code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2107
   *   <li><code>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2108
   *     org.omg.PortableInterceptor.ORBInitializerClass.com.x.Init2
02bb8761fcce Initial load
duke
parents:
diff changeset
  2109
   *   </code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2110
   *   <li><code>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2111
   *     org.omg.PortableInterceptor.ORBInitializerClass.com.x.Init3
02bb8761fcce Initial load
duke
parents:
diff changeset
  2112
   *   </code></li>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2113
   * </ul>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2114
   * During ORB.init, these ORB properties which begin with 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2115
   * <code>org.omg.PortableInterceptor.ORBInitializerClass</code> shall be 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2116
   * collected, the <code>&lt;Service&gt;</code> portion of each property 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2117
   * shall be extracted, an object shall be instantiated with the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2118
   * <code>&lt;Service&gt;</code> string as its class name, and the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2119
   * <code>pre_init</code> and <code>post_init</code> methods shall be 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2120
   * called on that object. If there are any exceptions, the ORB shall 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2121
   * ignore them and proceed. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2122
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2123
   * <b><i>Example</i></b>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2124
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2125
   * A client-side logging service written by company X, for example, may 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2126
   * have the following ORBInitializer implementation: 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2127
   * <code><pre>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2128
   * package com.x.logging;
02bb8761fcce Initial load
duke
parents:
diff changeset
  2129
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2130
   * import org.omg.PortableInterceptor.Interceptor; 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2131
   * import org.omg.PortableInterceptor.ORBInitializer; 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2132
   * import org.omg.PortableInterceptor.ORBInitInfo; 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2133
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2134
   * public class LoggingService implements ORBInitializer { 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2135
   *     void pre_init( ORBInitInfo info ) { 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2136
   *         // Instantiate the Logging Service s Interceptor. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2137
   *         Interceptor interceptor = new LoggingInterceptor(); 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2138
   *
02bb8761fcce Initial load
duke
parents:
diff changeset
  2139
   *         // Register the Logging Service s Interceptor. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2140
   *         info.add_client_request_interceptor( interceptor ); 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2141
   *     } 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2142
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2143
   *     void post_init( ORBInitInfo info ) { 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2144
   *         // This service does not need two init points. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2145
   *     } 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2146
   * } 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2147
   * </pre></code>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2148
   * To run a program called <code>MyApp</code> using this logging 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2149
   * service, the user could type: 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2150
   *   <blockquote><code>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2151
   *     java 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2152
   *-Dorg.omg.PortableInterceptor.ORBInitializerClass.com.x.Logging.LoggingService 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2153
   *     MyApp
02bb8761fcce Initial load
duke
parents:
diff changeset
  2154
   *   </code></blockquote>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2155
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2156
   * <b>Notes about Registering Interceptors</b>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2157
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2158
   * Request Interceptors are registered on a per-ORB basis. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2159
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2160
   * To achieve virtual per-object Interceptors, query the policies on the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2161
   * target from within the interception points to determine whether they 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2162
   * should do any work. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2163
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2164
   * To achieve virtual per-POA Interceptors, instantiate each POA with a 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2165
   * different ORB. While Interceptors may be ordered administratively, 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2166
   * there is no concept of order with respect to the registration of 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2167
   * Interceptors. Request Interceptors are concerned with service contexts. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2168
   * Service contexts have no order, so there is no purpose for request 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2169
   * Interceptors to have an order. IOR Interceptors are concerned with 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2170
   * tagged components. Tagged components also have no order, so there 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2171
   * is no purpose for IOR Interceptors to have an order. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2172
   * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2173
   * Registration code should avoid using the ORB (i.e., calling 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2174
   * <code>ORB.init</code> with the provided <code>orb_id</code>). Since 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2175
   * registration occurs during ORB initialization, results of invocations 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2176
   * on this ORB while it is in this state are undefined. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2177
   * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2178
   * @see ORBInitInfo
02bb8761fcce Initial load
duke
parents:
diff changeset
  2179
   */
02bb8761fcce Initial load
duke
parents:
diff changeset
  2180
  local interface ORBInitializer {
02bb8761fcce Initial load
duke
parents:
diff changeset
  2181
02bb8761fcce Initial load
duke
parents:
diff changeset
  2182
    /** 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2183
     * Called during ORB initialization.  If it is expected that initial 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2184
     * services registered by an interceptor will be used by other 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2185
     * interceptors, then those initial services shall be registered at 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2186
     * this point via calls to 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2187
     * <code>ORBInitInfo.register_initial_reference</code>. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2188
     * 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2189
     * @param info provides initialization attributes and operations by 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2190
     *     which Interceptors can be registered.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2191
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  2192
    void pre_init (in ORBInitInfo info);
02bb8761fcce Initial load
duke
parents:
diff changeset
  2193
02bb8761fcce Initial load
duke
parents:
diff changeset
  2194
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
  2195
     * Called during ORB initialization. If a service must resolve initial 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2196
     * references as part of its initialization, it can assume that all 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2197
     * initial references will be available at this point. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2198
     * <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
  2199
     * Calling the <code>post_init</code> operations is not the final 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2200
     * task of ORB initialization. The final task, following the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2201
     * <code>post_init</code> calls, is attaching the lists of registered 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2202
     * interceptors to the ORB. Therefore, the ORB does not contain the 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2203
     * interceptors during calls to <code>post_init</code>. If an 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2204
     * ORB-mediated call is made from within <code>post_init</code>, no 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2205
     * request interceptors will be invoked on that call. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2206
     * Likewise, if an operation is performed which causes an IOR to be 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2207
     * created, no IOR interceptors will be invoked. 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2208
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
  2209
     * @param info provides initialization attributes and 
02bb8761fcce Initial load
duke
parents:
diff changeset
  2210
     *     operations by which Interceptors can be registered.
02bb8761fcce Initial load
duke
parents:
diff changeset
  2211
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
  2212
    void post_init (in ORBInitInfo info);
02bb8761fcce Initial load
duke
parents:
diff changeset
  2213
  };
02bb8761fcce Initial load
duke
parents:
diff changeset
  2214
};