1 /*
2 * Copyright (c) 1996, 2004, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
40 *
41 * The abstract class <code>ServerRequest</code> defines
42 * methods for accessing the
43 * method name, the arguments and the context of the request, as
44 * well as methods for setting the result of the request either as a
45 * return value or an exception. <p>
46 *
47 * A subtlety with accessing the arguments of the request is that the
48 * DIR needs to provide type information about the
49 * expected arguments, since there is no compiled information about
50 * these. This information is provided through an <code>NVList</code>,
51 * which is a list of <code>NamedValue</code> objects.
52 * Each <code>NamedValue</code> object
53 * contains an <code>Any</code> object, which in turn
54 * has a <code>TypeCode</code> object representing the type
55 * of the argument. <p>
56 *
57 * Similarly, type information needs to be provided for the response,
58 * for either the expected result or for an exception, so the methods
59 * <code>result</code> and <code>except</code> take an <code>Any</code>
60 * object as a parameter. <p>
61 *
62 * @see org.omg.CORBA.DynamicImplementation
63 * @see org.omg.CORBA.NVList
64 * @see org.omg.CORBA.NamedValue
65 *
66 */
67
68 public abstract class ServerRequest {
69
70 /**
71 * Retrieves the name of the operation being
72 * invoked. According to OMG IDL's rules, these names must be unique
73 * among all operations supported by this object's "most-derived"
74 * interface. Note that the operation names for getting and setting
75 * attributes are <code>_get_<attribute_name></code>
76 * and <code>_set_<attribute_name></code>,
77 * respectively.
78 *
79 * @return the name of the operation to be invoked
80 * @deprecated use operation()
|
1 /*
2 * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
40 *
41 * The abstract class <code>ServerRequest</code> defines
42 * methods for accessing the
43 * method name, the arguments and the context of the request, as
44 * well as methods for setting the result of the request either as a
45 * return value or an exception. <p>
46 *
47 * A subtlety with accessing the arguments of the request is that the
48 * DIR needs to provide type information about the
49 * expected arguments, since there is no compiled information about
50 * these. This information is provided through an <code>NVList</code>,
51 * which is a list of <code>NamedValue</code> objects.
52 * Each <code>NamedValue</code> object
53 * contains an <code>Any</code> object, which in turn
54 * has a <code>TypeCode</code> object representing the type
55 * of the argument. <p>
56 *
57 * Similarly, type information needs to be provided for the response,
58 * for either the expected result or for an exception, so the methods
59 * <code>result</code> and <code>except</code> take an <code>Any</code>
60 * object as a parameter.
61 *
62 * @see org.omg.CORBA.DynamicImplementation
63 * @see org.omg.CORBA.NVList
64 * @see org.omg.CORBA.NamedValue
65 *
66 */
67
68 public abstract class ServerRequest {
69
70 /**
71 * Retrieves the name of the operation being
72 * invoked. According to OMG IDL's rules, these names must be unique
73 * among all operations supported by this object's "most-derived"
74 * interface. Note that the operation names for getting and setting
75 * attributes are <code>_get_<attribute_name></code>
76 * and <code>_set_<attribute_name></code>,
77 * respectively.
78 *
79 * @return the name of the operation to be invoked
80 * @deprecated use operation()
|