corba/src/share/classes/org/omg/CORBA/Request.java
author ohair
Tue, 25 May 2010 15:52:11 -0700
changeset 5555 b2b5ed3f0d0d
parent 4 02bb8761fcce
permissions -rw-r--r--
6943119: Rebrand source copyright notices Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
/*
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     2
 * Copyright (c) 1996, 1999, Oracle and/or its affiliates. All rights reserved.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
02bb8761fcce Initial load
duke
parents:
diff changeset
     4
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
02bb8761fcce Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    10
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
02bb8761fcce Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
02bb8761fcce Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
02bb8761fcce Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
02bb8761fcce Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
02bb8761fcce Initial load
duke
parents:
diff changeset
    16
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
02bb8761fcce Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
02bb8761fcce Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
02bb8761fcce Initial load
duke
parents:
diff changeset
    20
 *
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    23
 * questions.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    24
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    25
02bb8761fcce Initial load
duke
parents:
diff changeset
    26
package org.omg.CORBA;
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
 * An object containing the information necessary for
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
 * invoking a method.  This class is
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
 * the cornerstone of the ORB Dynamic
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
 * Invocation Interface (DII), which allows dynamic creation and
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
 * invocation of requests.
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
 * A server cannot tell the difference between a client
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
 * invocation using a client stub and a request using the DII.
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
 * A <code>Request</code> object consists of:
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
 * <UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
 * <LI>the name of the operation to be invoked
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
 * <LI>an <code>NVList</code> containing arguments for the operation.<BR>
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
 * Each item in the list is a <code>NamedValue</code> object, which has three
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
 * parts:
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
 *  <OL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
 *    <LI>the name of the argument
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
 *    <LI>the value of the argument (as an <code>Any</code> object)
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
 *    <LI>the argument mode flag indicating whether the argument is
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
 *        for input, output, or both
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
 *  </OL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
 * </UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
 * <code>Request</code> objects may also contain additional information,
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
 * depending on how an operation was defined in the original IDL
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
 * interface definition.  For example, where appropriate, they may contain
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
 * a <code>NamedValue</code> object to hold the return value or exception,
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
 * a context, a list of possible exceptions, and a list of
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
 * context strings that need to be resolved.
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
 * New <code>Request</code> objects are created using one of the
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
 * <code>create_request</code> methods in the <code>Object</code> class.
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
 * In other words, a <code>create_request</code> method is performed on the
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
 * object which is to be invoked.
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
 * @see org.omg.CORBA.NamedValue
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
public abstract class Request {
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
     * Retrieves the the target object reference.
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
     * @return                  the object reference that points to the
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
     *                    object implementation for the method
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
     *                    to be invoked
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
    public abstract org.omg.CORBA.Object target();
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
     * Retrieves the name of the method to be invoked.
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
     * @return                  the name of the method to be invoked
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
    public abstract String operation();
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
     * Retrieves the <code>NVList</code> object containing the arguments
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
     * to the method being invoked.  The elements in the list are
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
     * <code>NamedValue</code> objects, with each one describing an argument
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
     * to the method.
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
     * @return  the <code>NVList</code> object containing the arguments
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
     *                  for the method
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
    public abstract NVList arguments();
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
     * Retrieves the <code>NamedValue</code> object containing the return
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
     * value for the method.
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
     * @return          the <code>NamedValue</code> object containing the result
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
     *                          of the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
    public abstract NamedValue result();
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
     * Retrieves the <code>Environment</code> object for this request.
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
     * It contains the exception that the method being invoked has
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
     * thrown (after the invocation returns).
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   115
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
     * @return  the <code>Environment</code> object for this request
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
    public abstract Environment env();
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
     * Retrieves the <code>ExceptionList</code> object for this request.
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
     * This list contains <code>TypeCode</code> objects describing the
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
     * exceptions that may be thrown by the method being invoked.
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
     * @return  the <code>ExceptionList</code> object describing the exceptions
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
     *            that may be thrown by the method being invoked
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
    public abstract ExceptionList exceptions();
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
     * Retrieves the <code>ContextList</code> object for this request.
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
     * This list contains context <code>String</code>s that need to
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
     * be resolved and sent with the invocation.
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
     * @return                  the list of context strings whose values
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
     *                          need to be resolved and sent with the
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
     *                          invocation.
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
    public abstract ContextList contexts();
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
     * Retrieves the <code>Context</code> object for this request.
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
     * This is a list of properties giving information about the
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
     * client, the environment, or the circumstances of this request.
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
     * @return          the <code>Context</code> object that is to be used
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
     *                          to resolve any context strings whose
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
     *                          values need to be sent with the invocation
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
    public abstract Context ctx();
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
     * Sets this request's <code>Context</code> object to the one given.
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
     * @param c         the new <code>Context</code> object to be used for
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
     *                          resolving context strings
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
    public abstract void ctx(Context c);
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
     * Creates an input argument and adds it to this <code>Request</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
     * object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
     * @return          an <code>Any</code> object that contains the
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
     *                value and typecode for the input argument added
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
    public abstract Any add_in_arg();
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
     * Creates an input argument with the given name and adds it to
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
     * this <code>Request</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   180
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
     * @param name              the name of the argument being added
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
     * @return          an <code>Any</code> object that contains the
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
     *                value and typecode for the input argument added
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
    public abstract Any add_named_in_arg(String name);
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
     * Adds an input/output argument to this <code>Request</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   191
     * @return          an <code>Any</code> object that contains the
02bb8761fcce Initial load
duke
parents:
diff changeset
   192
     *                value and typecode for the input/output argument added
02bb8761fcce Initial load
duke
parents:
diff changeset
   193
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
02bb8761fcce Initial load
duke
parents:
diff changeset
   195
    public abstract Any add_inout_arg();
02bb8761fcce Initial load
duke
parents:
diff changeset
   196
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
     * Adds an input/output argument with the given name to this
02bb8761fcce Initial load
duke
parents:
diff changeset
   199
     * <code>Request</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   201
     * @param name              the name of the argument being added
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
     * @return          an <code>Any</code> object that contains the
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
     *                value and typecode for the input/output argument added
02bb8761fcce Initial load
duke
parents:
diff changeset
   204
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
    public abstract Any add_named_inout_arg(String name);
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
02bb8761fcce Initial load
duke
parents:
diff changeset
   209
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
     * Adds an output argument to this <code>Request</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   212
     * @return          an <code>Any</code> object that contains the
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
     *                value and typecode for the output argument added
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
    public abstract Any add_out_arg();
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
02bb8761fcce Initial load
duke
parents:
diff changeset
   218
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   219
     * Adds an output argument with the given name to this
02bb8761fcce Initial load
duke
parents:
diff changeset
   220
     * <code>Request</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   221
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   222
     * @param name              the name of the argument being added
02bb8761fcce Initial load
duke
parents:
diff changeset
   223
     * @return          an <code>Any</code> object that contains the
02bb8761fcce Initial load
duke
parents:
diff changeset
   224
     *                value and typecode for the output argument added
02bb8761fcce Initial load
duke
parents:
diff changeset
   225
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   226
02bb8761fcce Initial load
duke
parents:
diff changeset
   227
    public abstract Any add_named_out_arg(String name);
02bb8761fcce Initial load
duke
parents:
diff changeset
   228
02bb8761fcce Initial load
duke
parents:
diff changeset
   229
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   230
     * Sets the typecode for the return
02bb8761fcce Initial load
duke
parents:
diff changeset
   231
     * value of the method.
02bb8761fcce Initial load
duke
parents:
diff changeset
   232
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   233
     * @param tc                        the <code>TypeCode</code> object containing type information
02bb8761fcce Initial load
duke
parents:
diff changeset
   234
     *                   for the return value
02bb8761fcce Initial load
duke
parents:
diff changeset
   235
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   236
02bb8761fcce Initial load
duke
parents:
diff changeset
   237
    public abstract void set_return_type(TypeCode tc);
02bb8761fcce Initial load
duke
parents:
diff changeset
   238
02bb8761fcce Initial load
duke
parents:
diff changeset
   239
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   240
     * Returns the <code>Any</code> object that contains the value for the
02bb8761fcce Initial load
duke
parents:
diff changeset
   241
     * result of the method.
02bb8761fcce Initial load
duke
parents:
diff changeset
   242
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   243
     * @return                  an <code>Any</code> object containing the value and
02bb8761fcce Initial load
duke
parents:
diff changeset
   244
     *                   typecode for the return value
02bb8761fcce Initial load
duke
parents:
diff changeset
   245
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   246
02bb8761fcce Initial load
duke
parents:
diff changeset
   247
    public abstract Any return_value();
02bb8761fcce Initial load
duke
parents:
diff changeset
   248
02bb8761fcce Initial load
duke
parents:
diff changeset
   249
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   250
     * Makes a synchronous invocation using the
02bb8761fcce Initial load
duke
parents:
diff changeset
   251
     * information in the <code>Request</code> object. Exception information is
02bb8761fcce Initial load
duke
parents:
diff changeset
   252
     * placed into the <code>Request</code> object's environment object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   253
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   254
02bb8761fcce Initial load
duke
parents:
diff changeset
   255
    public abstract void invoke();
02bb8761fcce Initial load
duke
parents:
diff changeset
   256
02bb8761fcce Initial load
duke
parents:
diff changeset
   257
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   258
     * Makes a oneway invocation on the
02bb8761fcce Initial load
duke
parents:
diff changeset
   259
     * request. In other words, it does not expect or wait for a
02bb8761fcce Initial load
duke
parents:
diff changeset
   260
     * response. Note that this can be used even if the operation was
02bb8761fcce Initial load
duke
parents:
diff changeset
   261
     * not declared as oneway in the IDL declaration. No response or
02bb8761fcce Initial load
duke
parents:
diff changeset
   262
     * exception information is returned.
02bb8761fcce Initial load
duke
parents:
diff changeset
   263
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   264
02bb8761fcce Initial load
duke
parents:
diff changeset
   265
    public abstract void send_oneway();
02bb8761fcce Initial load
duke
parents:
diff changeset
   266
02bb8761fcce Initial load
duke
parents:
diff changeset
   267
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   268
     * Makes an asynchronous invocation on
02bb8761fcce Initial load
duke
parents:
diff changeset
   269
     * the request. In other words, it does not wait for a response before it
02bb8761fcce Initial load
duke
parents:
diff changeset
   270
     * returns to the user. The user can then later use the methods
02bb8761fcce Initial load
duke
parents:
diff changeset
   271
     * <code>poll_response</code> and <code>get_response</code> to get
02bb8761fcce Initial load
duke
parents:
diff changeset
   272
     * the result or exception information for the invocation.
02bb8761fcce Initial load
duke
parents:
diff changeset
   273
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   274
02bb8761fcce Initial load
duke
parents:
diff changeset
   275
    public abstract void send_deferred();
02bb8761fcce Initial load
duke
parents:
diff changeset
   276
02bb8761fcce Initial load
duke
parents:
diff changeset
   277
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   278
     * Allows the user to determine
02bb8761fcce Initial load
duke
parents:
diff changeset
   279
     * whether a response has been received for the invocation triggered
02bb8761fcce Initial load
duke
parents:
diff changeset
   280
     * earlier with the <code>send_deferred</code> method.
02bb8761fcce Initial load
duke
parents:
diff changeset
   281
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   282
     * @return          <code>true</code> if the method response has
02bb8761fcce Initial load
duke
parents:
diff changeset
   283
     *                          been received; <code>false</code> otherwise
02bb8761fcce Initial load
duke
parents:
diff changeset
   284
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   285
02bb8761fcce Initial load
duke
parents:
diff changeset
   286
    public abstract boolean poll_response();
02bb8761fcce Initial load
duke
parents:
diff changeset
   287
02bb8761fcce Initial load
duke
parents:
diff changeset
   288
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   289
     * Allows the user to access the
02bb8761fcce Initial load
duke
parents:
diff changeset
   290
     * response for the invocation triggered earlier with the
02bb8761fcce Initial load
duke
parents:
diff changeset
   291
     * <code>send_deferred</code> method.
02bb8761fcce Initial load
duke
parents:
diff changeset
   292
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   293
     * @exception WrongTransaction  if the method <code>get_response</code> was invoked
02bb8761fcce Initial load
duke
parents:
diff changeset
   294
     * from a different transaction's scope than the one from which the
02bb8761fcce Initial load
duke
parents:
diff changeset
   295
     * request was originally sent. See the OMG Transaction Service specification
02bb8761fcce Initial load
duke
parents:
diff changeset
   296
     * for details.
02bb8761fcce Initial load
duke
parents:
diff changeset
   297
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   298
02bb8761fcce Initial load
duke
parents:
diff changeset
   299
    public abstract void get_response() throws WrongTransaction;
02bb8761fcce Initial load
duke
parents:
diff changeset
   300
02bb8761fcce Initial load
duke
parents:
diff changeset
   301
};