Merge from mainline.
[official-gcc.git] / libjava / classpath / org / omg / CORBA / ServerRequest.java
blob38bb9fe90511f77a3957a44d50dd595b47514ea5
1 /* ServerRequest.java --
2 Copyright (C) 2005 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 02110-1301 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
39 package org.omg.CORBA;
41 /**
42 * This class was expected to be part of the dynamic skeleton interface,
43 * but it is almost never used in the code, generated by IDL to java compiler.
44 * The recent tendention is to skip the request step, reading the method
45 * arguments from the CDR input stream directly. The supplementing class
46 * {@link DynamicImplementation} has already been deprecated in java 1.2
47 * version.
49 * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
51 public abstract class ServerRequest
53 /**
54 * Get the context information.
56 public abstract Context ctx();
58 /**
59 * Should return the name of the operation (method) being invoked.
60 * Following the 1.4 specification, it does not, and must be overridden to
61 * get functionality.
63 * @return the name of the operation being invoked. The object attribute
64 * access operations are called _get_<attribute_name>
65 * and _set_<attribute_name>.
67 * @throws NO_IMPLEMENT, always.
69 public String operation()
71 throw new NO_IMPLEMENT();
74 /**
75 * Should specify the method parameter types and retrieve the
76 * values that must be passed to the method being called. Following
77 * the 1.4 specification, it does not, and must be overridden to
78 * get functionality.
80 * @param args the method parameters.
82 * @throws NO_IMPLEMENT, always.
84 public void arguments(NVList args)
86 throw new NO_IMPLEMENT();
89 /**
90 * Should specify the return value for the call. Following
91 * the 1.4 specification, it does not, and must be overridden to
92 * get functionality.
94 * @param result the return value.
96 * @throws NO_IMPLEMENT, always.
98 public void set_result(Any result)
100 throw new NO_IMPLEMENT();
104 * Should set the exception that has been thrown during
105 * the method invocation. Following the 1.4 specification, it does not,
106 * and must be overridden to get functionality.
108 * @param exc the Any, holding the exception.
110 * @throws NO_IMPLEMENT, always.
112 public void set_exception(Any exc)
114 throw new NO_IMPLEMENT();
118 * This method is deprecated, {@link #set_result} (same parameter).
120 * @deprecated since 1.2
122 * @throws NO_IMPLEMENT, always.
124 public void result(Any r)
126 throw new NO_IMPLEMENT();
130 * This method is deprecated, use {@link #set_exception} (same parameter).
132 * @deprecated since 1.2.
134 * @throws NO_IMPLEMENT, always.
136 public void except(Any exc)
138 throw new NO_IMPLEMENT();
142 * This method is deprecated, use {@link #arguments} (same parameter).
144 * @deprecated since 1.2
146 * @throws NO_IMPLEMENT, always.
148 public void params(NVList args)
150 throw new NO_IMPLEMENT();
154 * This method is deprecated, use {@link #operation} (same parameter).
156 * @deprecated since 1.2
158 * @throws NO_IMPLEMENT, always.
160 public String op_name()
162 throw new NO_IMPLEMENT();