001 /* ServerRequest.java -- 002 Copyright (C) 2005 Free Software Foundation, Inc. 003 004 This file is part of GNU Classpath. 005 006 GNU Classpath is free software; you can redistribute it and/or modify 007 it under the terms of the GNU General Public License as published by 008 the Free Software Foundation; either version 2, or (at your option) 009 any later version. 010 011 GNU Classpath is distributed in the hope that it will be useful, but 012 WITHOUT ANY WARRANTY; without even the implied warranty of 013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 General Public License for more details. 015 016 You should have received a copy of the GNU General Public License 017 along with GNU Classpath; see the file COPYING. If not, write to the 018 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 019 02110-1301 USA. 020 021 Linking this library statically or dynamically with other modules is 022 making a combined work based on this library. Thus, the terms and 023 conditions of the GNU General Public License cover the whole 024 combination. 025 026 As a special exception, the copyright holders of this library give you 027 permission to link this library with independent modules to produce an 028 executable, regardless of the license terms of these independent 029 modules, and to copy and distribute the resulting executable under 030 terms of your choice, provided that you also meet, for each linked 031 independent module, the terms and conditions of the license of that 032 module. An independent module is a module which is not derived from 033 or based on this library. If you modify this library, you may extend 034 this exception to your version of the library, but you are not 035 obligated to do so. If you do not wish to do so, delete this 036 exception statement from your version. */ 037 038 039 package org.omg.CORBA; 040 041 /** 042 * This class was expected to be part of the dynamic skeleton interface, 043 * but it is almost never used in the code, generated by IDL to java compiler. 044 * The recent tendention is to skip the request step, reading the method 045 * arguments from the CDR input stream directly. The supplementing class 046 * {@link DynamicImplementation} has already been deprecated in java 1.2 047 * version. 048 * 049 * @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) 050 */ 051 public abstract class ServerRequest 052 { 053 /** 054 * Get the context information. 055 */ 056 public abstract Context ctx(); 057 058 /** 059 * Should return the name of the operation (method) being invoked. 060 * Following the 1.4 specification, it does not, and must be overridden to 061 * get functionality. 062 * 063 * @return the name of the operation being invoked. The object attribute 064 * access operations are called _get_<attribute_name> 065 * and _set_<attribute_name>. 066 * 067 * @throws NO_IMPLEMENT, always. 068 */ 069 public String operation() 070 { 071 throw new NO_IMPLEMENT(); 072 } 073 074 /** 075 * Should specify the method parameter types and retrieve the 076 * values that must be passed to the method being called. Following 077 * the 1.4 specification, it does not, and must be overridden to 078 * get functionality. 079 * 080 * @param args the method parameters. 081 * 082 * @throws NO_IMPLEMENT, always. 083 */ 084 public void arguments(NVList args) 085 { 086 throw new NO_IMPLEMENT(); 087 } 088 089 /** 090 * Should specify the return value for the call. Following 091 * the 1.4 specification, it does not, and must be overridden to 092 * get functionality. 093 * 094 * @param result the return value. 095 * 096 * @throws NO_IMPLEMENT, always. 097 */ 098 public void set_result(Any result) 099 { 100 throw new NO_IMPLEMENT(); 101 } 102 103 /** 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. 107 * 108 * @param exc the Any, holding the exception. 109 * 110 * @throws NO_IMPLEMENT, always. 111 */ 112 public void set_exception(Any exc) 113 { 114 throw new NO_IMPLEMENT(); 115 } 116 117 /** 118 * This method is deprecated, {@link #set_result} (same parameter). 119 * 120 * @deprecated since 1.2 121 * 122 * @throws NO_IMPLEMENT, always. 123 */ 124 public void result(Any r) 125 { 126 throw new NO_IMPLEMENT(); 127 } 128 129 /** 130 * This method is deprecated, use {@link #set_exception} (same parameter). 131 * 132 * @deprecated since 1.2. 133 * 134 * @throws NO_IMPLEMENT, always. 135 */ 136 public void except(Any exc) 137 { 138 throw new NO_IMPLEMENT(); 139 } 140 141 /** 142 * This method is deprecated, use {@link #arguments} (same parameter). 143 * 144 * @deprecated since 1.2 145 * 146 * @throws NO_IMPLEMENT, always. 147 */ 148 public void params(NVList args) 149 { 150 throw new NO_IMPLEMENT(); 151 } 152 153 /** 154 * This method is deprecated, use {@link #operation} (same parameter). 155 * 156 * @deprecated since 1.2 157 * 158 * @throws NO_IMPLEMENT, always. 159 */ 160 public String op_name() 161 { 162 throw new NO_IMPLEMENT(); 163 } 164 }