Tue, 28 Dec 2010 15:52:36 -0800
6962318: Update copyright year
Reviewed-by: xdono
duke@1 | 1 | /* |
ohair@240 | 2 | * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. |
duke@1 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 4 | * |
duke@1 | 5 | * This code is free software; you can redistribute it and/or modify it |
duke@1 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ohair@158 | 7 | * published by the Free Software Foundation. Oracle designates this |
duke@1 | 8 | * particular file as subject to the "Classpath" exception as provided |
ohair@158 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
duke@1 | 10 | * |
duke@1 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | * accompanied this code). |
duke@1 | 16 | * |
duke@1 | 17 | * You should have received a copy of the GNU General Public License version |
duke@1 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | * |
ohair@158 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@158 | 22 | * or visit www.oracle.com if you need additional information or have any |
ohair@158 | 23 | * questions. |
duke@1 | 24 | */ |
duke@1 | 25 | |
duke@1 | 26 | // name.idl - Naming service interface |
duke@1 | 27 | #pragma prefix "omg.org" |
duke@1 | 28 | |
duke@1 | 29 | |
duke@1 | 30 | /** |
duke@1 | 31 | * The CORBA COS Naming Service provides the ability to bind a name |
duke@1 | 32 | * to an object relative to a naming context. A naming context is an |
duke@1 | 33 | * object that contains a set of name bindings in which each name is unique. |
duke@1 | 34 | * To resolve a name is to determine the object associated with the name in |
duke@1 | 35 | * a given context. <p> |
duke@1 | 36 | * |
duke@1 | 37 | * See http://www.omg.org/technology/documents/formal/naming_service.htm |
duke@1 | 38 | * for the complete CORBA |
duke@1 | 39 | * COS Naming Specification. <p> |
duke@1 | 40 | */ |
duke@1 | 41 | module CosNaming |
duke@1 | 42 | { |
duke@1 | 43 | typedef string Istring; |
duke@1 | 44 | |
duke@1 | 45 | /** |
duke@1 | 46 | * Many of the operations defined on a naming context take names as |
duke@1 | 47 | * parameters. Names have structure. A name is an ordered sequence of |
duke@1 | 48 | * components. <p> |
duke@1 | 49 | * |
duke@1 | 50 | * A name with a single component is called a simple name; a name with |
duke@1 | 51 | * multiple components is called a compound name. Each component except |
duke@1 | 52 | * the last is used to name a context; the last component denotes the |
duke@1 | 53 | * bound object. <p> |
duke@1 | 54 | * |
duke@1 | 55 | * A name component consists of two attributes: the identifier |
duke@1 | 56 | * attribute and the kind attribute. Both the identifier attribute and the |
duke@1 | 57 | * kind attribute are represented as IDL strings. The kind attribute adds |
duke@1 | 58 | * descriptive power to names in a syntax-independent way. Examples of the |
duke@1 | 59 | * value of the kind attribute include c_source, object_code, executable, |
duke@1 | 60 | * postscript, or " ". |
duke@1 | 61 | */ |
duke@1 | 62 | struct NameComponent |
duke@1 | 63 | { |
duke@1 | 64 | Istring id; |
duke@1 | 65 | Istring kind; |
duke@1 | 66 | }; |
duke@1 | 67 | |
duke@1 | 68 | /** |
duke@1 | 69 | * A name is a sequence of name components. |
duke@1 | 70 | */ |
duke@1 | 71 | typedef sequence <NameComponent> Name; |
duke@1 | 72 | |
duke@1 | 73 | /** |
duke@1 | 74 | * Specifies whether the given binding is for a object (that is not a |
duke@1 | 75 | * naming context) or for a naming context. |
duke@1 | 76 | */ |
duke@1 | 77 | enum BindingType |
duke@1 | 78 | { |
duke@1 | 79 | nobject, // name is bound to an object |
duke@1 | 80 | ncontext // name is bound to a naming context |
duke@1 | 81 | }; |
duke@1 | 82 | |
duke@1 | 83 | /** |
duke@1 | 84 | * A name-to-object association is called a Binding. |
duke@1 | 85 | */ |
duke@1 | 86 | struct Binding |
duke@1 | 87 | { |
duke@1 | 88 | Name binding_name; // name |
duke@1 | 89 | BindingType binding_type; // whether name is bound to an object |
duke@1 | 90 | // or a naming context |
duke@1 | 91 | }; |
duke@1 | 92 | |
duke@1 | 93 | /** |
duke@1 | 94 | * List of Bindings. |
duke@1 | 95 | */ |
duke@1 | 96 | typedef sequence <Binding> BindingList; |
duke@1 | 97 | |
duke@1 | 98 | /** |
duke@1 | 99 | * The BindingIterator interface allows a client to iterate through |
duke@1 | 100 | * the bindings using the next_one or next_n operations. |
duke@1 | 101 | * |
duke@1 | 102 | * The bindings iterator is obtained by using the <tt>list</tt> |
duke@1 | 103 | * method on the <tt>NamingContext</tt>. |
duke@1 | 104 | * @see org.omg.CosNaming.NamingContext#list |
duke@1 | 105 | */ |
duke@1 | 106 | interface BindingIterator |
duke@1 | 107 | { |
duke@1 | 108 | /** |
duke@1 | 109 | * This operation returns the next binding. If there are no more |
duke@1 | 110 | * bindings, false is returned. |
duke@1 | 111 | * |
duke@1 | 112 | * @param b the returned binding |
duke@1 | 113 | */ |
duke@1 | 114 | boolean next_one(out Binding b); |
duke@1 | 115 | |
duke@1 | 116 | /** |
duke@1 | 117 | * This operation returns at most the requested number of bindings. |
duke@1 | 118 | * |
duke@1 | 119 | * @param how_many the maximum number of bindings tro return <p> |
duke@1 | 120 | * |
duke@1 | 121 | * @param bl the returned bindings |
duke@1 | 122 | */ |
duke@1 | 123 | boolean next_n(in unsigned long how_many, |
duke@1 | 124 | out BindingList bl); |
duke@1 | 125 | |
duke@1 | 126 | // Destroy binding iterator |
duke@1 | 127 | /** |
duke@1 | 128 | * This operation destroys the iterator. |
duke@1 | 129 | */ |
duke@1 | 130 | void destroy(); |
duke@1 | 131 | }; |
duke@1 | 132 | |
duke@1 | 133 | /** |
duke@1 | 134 | * A naming context is an object that contains a set of name bindings in |
duke@1 | 135 | * which each name is unique. Different names can be bound to an object |
duke@1 | 136 | * in the same or different contexts at the same time. <p> |
duke@1 | 137 | * |
duke@1 | 138 | * See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm"> |
duke@1 | 139 | * CORBA COS |
duke@1 | 140 | * Naming Specification.</a> |
duke@1 | 141 | */ |
duke@1 | 142 | interface NamingContext |
duke@1 | 143 | { |
duke@1 | 144 | // Declare exceptions |
duke@1 | 145 | /** |
duke@1 | 146 | * Indicates the reason for not able to resolve. |
duke@1 | 147 | */ |
duke@1 | 148 | enum NotFoundReason |
duke@1 | 149 | { |
duke@1 | 150 | missing_node, |
duke@1 | 151 | not_context, |
duke@1 | 152 | not_object |
duke@1 | 153 | }; |
duke@1 | 154 | |
duke@1 | 155 | /** |
duke@1 | 156 | * Indicates the name does not identify a binding. |
duke@1 | 157 | */ |
duke@1 | 158 | exception NotFound |
duke@1 | 159 | { |
duke@1 | 160 | NotFoundReason why; |
duke@1 | 161 | Name rest_of_name; |
duke@1 | 162 | }; |
duke@1 | 163 | |
duke@1 | 164 | /** |
duke@1 | 165 | * Indicates that the implementation has given up for some reason. |
duke@1 | 166 | * The client, however, may be able to continue the operation at the |
duke@1 | 167 | * returned naming context. |
duke@1 | 168 | */ |
duke@1 | 169 | exception CannotProceed |
duke@1 | 170 | { |
duke@1 | 171 | NamingContext cxt; |
duke@1 | 172 | Name rest_of_name; |
duke@1 | 173 | }; |
duke@1 | 174 | |
duke@1 | 175 | /** |
duke@1 | 176 | * Indicates the name is invalid. |
duke@1 | 177 | */ |
duke@1 | 178 | exception InvalidName |
duke@1 | 179 | {}; |
duke@1 | 180 | |
duke@1 | 181 | /** |
duke@1 | 182 | * Indicates an object is already bound to the specified name. Only |
duke@1 | 183 | * one object can be bound to a particular name in a context. |
duke@1 | 184 | */ |
duke@1 | 185 | exception AlreadyBound |
duke@1 | 186 | {}; |
duke@1 | 187 | |
duke@1 | 188 | /** |
duke@1 | 189 | * Indicates that the Naming Context contains bindings. |
duke@1 | 190 | */ |
duke@1 | 191 | exception NotEmpty |
duke@1 | 192 | {}; |
duke@1 | 193 | |
duke@1 | 194 | /** |
duke@1 | 195 | * Creates a binding of a name and an object in the naming context. |
duke@1 | 196 | * Naming contexts that are bound using bind do not participate in name |
duke@1 | 197 | * resolution when compound names are passed to be resolved. |
duke@1 | 198 | * |
duke@1 | 199 | * @param n Name of the object <p> |
duke@1 | 200 | * |
duke@1 | 201 | * @param obj The Object to bind with the given name<p> |
duke@1 | 202 | * |
duke@1 | 203 | * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates |
duke@1 | 204 | * the name does not identify a binding.<p> |
duke@1 | 205 | * |
duke@1 | 206 | * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed |
duke@1 | 207 | * Indicates that the implementation has given up for some reason. |
duke@1 | 208 | * The client, however, may be able to continue the operation |
duke@1 | 209 | * at the returned naming context.<p> |
duke@1 | 210 | * |
duke@1 | 211 | * @exception org.omg.CosNaming.NamingContextPackage.InvalidName |
duke@1 | 212 | * Indicates that the name is invalid. <p> |
duke@1 | 213 | * |
duke@1 | 214 | * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound |
duke@1 | 215 | * Indicates an object is already bound to the specified name.<p> |
duke@1 | 216 | */ |
duke@1 | 217 | void bind(in Name n, |
duke@1 | 218 | in Object obj) |
duke@1 | 219 | raises(NotFound, |
duke@1 | 220 | CannotProceed, |
duke@1 | 221 | InvalidName, |
duke@1 | 222 | AlreadyBound); |
duke@1 | 223 | |
duke@1 | 224 | /** |
duke@1 | 225 | * Names an object that is a naming context. Naming contexts that |
duke@1 | 226 | * are bound using bind_context() participate in name resolution |
duke@1 | 227 | * when compound names are passed to be resolved. |
duke@1 | 228 | * |
duke@1 | 229 | * @param n Name of the object <p> |
duke@1 | 230 | * |
duke@1 | 231 | * @param nc NamingContect object to bind with the given name <p> |
duke@1 | 232 | * |
duke@1 | 233 | * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p> |
duke@1 | 234 | * |
duke@1 | 235 | * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has |
duke@1 | 236 | * given up for some reason. The client, however, may be able to |
duke@1 | 237 | * continue the operation at the returned naming context.<p> |
duke@1 | 238 | * |
duke@1 | 239 | * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p> |
duke@1 | 240 | * |
duke@1 | 241 | * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already |
duke@1 | 242 | * bound to the specified name.<p> |
duke@1 | 243 | */ |
duke@1 | 244 | void bind_context(in Name n, |
duke@1 | 245 | in NamingContext nc) |
duke@1 | 246 | raises(NotFound, |
duke@1 | 247 | CannotProceed, |
duke@1 | 248 | InvalidName, |
duke@1 | 249 | AlreadyBound); |
duke@1 | 250 | |
duke@1 | 251 | /** |
duke@1 | 252 | * Creates a binding of a name and an object in the naming context |
duke@1 | 253 | * even if the name is already bound in the context. Naming contexts |
duke@1 | 254 | * that are bound using rebind do not participate in name resolution |
duke@1 | 255 | * when compound names are passed to be resolved. |
duke@1 | 256 | * |
duke@1 | 257 | * @param n Name of the object <p> |
duke@1 | 258 | * |
andrew@135 | 259 | * @param obj The Object to rebind with the given name <p> |
duke@1 | 260 | * |
duke@1 | 261 | * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p> |
duke@1 | 262 | * |
duke@1 | 263 | * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has |
duke@1 | 264 | * given up for some reason. The client, however, may be able to |
duke@1 | 265 | * continue the operation at the returned naming context.<p> |
duke@1 | 266 | * |
duke@1 | 267 | * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p> |
duke@1 | 268 | */ |
duke@1 | 269 | void rebind(in Name n, |
duke@1 | 270 | in Object obj) |
duke@1 | 271 | raises(NotFound, |
duke@1 | 272 | CannotProceed, |
duke@1 | 273 | InvalidName); |
duke@1 | 274 | |
duke@1 | 275 | /** |
duke@1 | 276 | * Creates a binding of a name and a naming context in the naming |
duke@1 | 277 | * context even if the name is already bound in the context. Naming |
duke@1 | 278 | * contexts that are bound using rebind_context() participate in name |
duke@1 | 279 | * resolution when compound names are passed to be resolved. |
duke@1 | 280 | * |
duke@1 | 281 | * @param n Name of the object <p> |
duke@1 | 282 | * |
duke@1 | 283 | * @param nc NamingContect object to rebind with the given name <p> |
duke@1 | 284 | * |
duke@1 | 285 | * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p> |
duke@1 | 286 | * |
duke@1 | 287 | * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has |
duke@1 | 288 | * given up for some reason. The client, however, may be able to |
duke@1 | 289 | * continue the operation at the returned naming context.<p> |
duke@1 | 290 | * |
duke@1 | 291 | * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p> |
duke@1 | 292 | */ |
duke@1 | 293 | void rebind_context(in Name n, |
duke@1 | 294 | in NamingContext nc) |
duke@1 | 295 | raises(NotFound, |
duke@1 | 296 | CannotProceed, |
duke@1 | 297 | InvalidName); |
duke@1 | 298 | |
duke@1 | 299 | /** |
duke@1 | 300 | * The resolve operation is the process of retrieving an object |
duke@1 | 301 | * bound to a name in a given context. The given name must exactly |
duke@1 | 302 | * match the bound name. The naming service does not return the type |
duke@1 | 303 | * of the object. Clients are responsible for "narrowing" the object |
duke@1 | 304 | * to the appropriate type. That is, clients typically cast the returned |
duke@1 | 305 | * object from Object to a more specialized interface. |
duke@1 | 306 | * |
duke@1 | 307 | * @param n Name of the object <p> |
duke@1 | 308 | * |
duke@1 | 309 | * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p> |
duke@1 | 310 | * |
duke@1 | 311 | * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has |
duke@1 | 312 | * given up for some reason. The client, however, may be able to |
duke@1 | 313 | * continue the operation at the returned naming context.<p> |
duke@1 | 314 | * |
duke@1 | 315 | * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p> |
duke@1 | 316 | */ |
duke@1 | 317 | Object resolve(in Name n) |
duke@1 | 318 | raises(NotFound, |
duke@1 | 319 | CannotProceed, |
duke@1 | 320 | InvalidName); |
duke@1 | 321 | |
duke@1 | 322 | /** |
duke@1 | 323 | * The unbind operation removes a name binding from a context. |
duke@1 | 324 | * |
duke@1 | 325 | * @param n Name of the object <p> |
duke@1 | 326 | * |
duke@1 | 327 | * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p> |
duke@1 | 328 | * |
duke@1 | 329 | * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has |
duke@1 | 330 | * given up for some reason. The client, however, may be able to |
duke@1 | 331 | * continue the operation at the returned naming context.<p> |
duke@1 | 332 | * |
duke@1 | 333 | * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p> |
duke@1 | 334 | */ |
duke@1 | 335 | void unbind(in Name n) |
duke@1 | 336 | raises(NotFound, |
duke@1 | 337 | CannotProceed, |
duke@1 | 338 | InvalidName); |
duke@1 | 339 | |
duke@1 | 340 | /** |
duke@1 | 341 | * The list operation allows a client to iterate through a set of |
duke@1 | 342 | * bindings in a naming context. <p> |
duke@1 | 343 | * |
duke@1 | 344 | * The list operation returns at most the requested number of |
duke@1 | 345 | * bindings in BindingList bl. |
duke@1 | 346 | * <ul> |
duke@1 | 347 | * <li>If the naming context contains additional |
duke@1 | 348 | * bindings, the list operation returns a BindingIterator with the |
duke@1 | 349 | * additional bindings. |
duke@1 | 350 | * <li>If the naming context does not contain additional |
duke@1 | 351 | * bindings, the binding iterator is a nil object reference. |
duke@1 | 352 | * </ul> |
duke@1 | 353 | * |
duke@1 | 354 | * @param how_many the maximum number of bindings to return <p> |
duke@1 | 355 | * |
duke@1 | 356 | * @param bl the returned list of bindings <p> |
duke@1 | 357 | * |
duke@1 | 358 | * @param bi the returned binding iterator <p> |
duke@1 | 359 | */ |
duke@1 | 360 | void list(in unsigned long how_many, |
duke@1 | 361 | out BindingList bl, |
duke@1 | 362 | out BindingIterator bi); |
duke@1 | 363 | |
duke@1 | 364 | /** |
duke@1 | 365 | * This operation returns a naming context implemented by the same |
duke@1 | 366 | * naming server as the context on which the operation was invoked. |
duke@1 | 367 | * The new context is not bound to any name. |
duke@1 | 368 | */ |
duke@1 | 369 | NamingContext new_context(); |
duke@1 | 370 | |
duke@1 | 371 | /** |
duke@1 | 372 | * This operation creates a new context and binds it to the name |
duke@1 | 373 | * supplied as an argument. The newly-created context is implemented |
duke@1 | 374 | * by the same naming server as the context in which it was bound (that |
duke@1 | 375 | * is, the naming server that implements the context denoted by the |
duke@1 | 376 | * name argument excluding the last component). |
duke@1 | 377 | * |
duke@1 | 378 | * @param n Name of the object <p> |
duke@1 | 379 | * |
duke@1 | 380 | * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p> |
duke@1 | 381 | * |
duke@1 | 382 | * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already |
duke@1 | 383 | * bound to the specified name.<p> |
duke@1 | 384 | * |
duke@1 | 385 | * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has |
duke@1 | 386 | * given up for some reason. The client, however, may be able to |
duke@1 | 387 | * continue the operation at the returned naming context.<p> |
duke@1 | 388 | * |
duke@1 | 389 | * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p> |
duke@1 | 390 | */ |
duke@1 | 391 | NamingContext bind_new_context(in Name n) |
duke@1 | 392 | raises(NotFound, |
duke@1 | 393 | AlreadyBound, |
duke@1 | 394 | CannotProceed, |
duke@1 | 395 | InvalidName); |
duke@1 | 396 | |
duke@1 | 397 | /** |
duke@1 | 398 | * The destroy operation deletes a naming context. If the naming |
duke@1 | 399 | * context contains bindings, the NotEmpty exception is raised. |
duke@1 | 400 | * |
duke@1 | 401 | * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty Indicates that the Naming Context contains bindings. |
duke@1 | 402 | */ |
duke@1 | 403 | void destroy() |
duke@1 | 404 | raises(NotEmpty); |
duke@1 | 405 | |
duke@1 | 406 | }; |
duke@1 | 407 | |
duke@1 | 408 | |
duke@1 | 409 | /** |
duke@1 | 410 | * <code>NamingContextExt</code> is the extension of <code>NamingContext</code> |
duke@1 | 411 | * which |
duke@1 | 412 | * contains a set of name bindings in which each name is unique and is |
duke@1 | 413 | * part of Interoperable Naming Service. |
duke@1 | 414 | * Different names can be bound to an object in the same or different |
duke@1 | 415 | * contexts at the same time. Using <tt>NamingContextExt</tt>, you can use |
duke@1 | 416 | * URL-based names to bind and resolve. <p> |
duke@1 | 417 | * |
duke@1 | 418 | * See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm"> |
duke@1 | 419 | * CORBA COS |
duke@1 | 420 | * Naming Specification.</a> |
duke@1 | 421 | */ |
duke@1 | 422 | interface NamingContextExt: NamingContext |
duke@1 | 423 | { |
duke@1 | 424 | /** |
duke@1 | 425 | * StringName is the Stringified Name, Array of Name Components |
duke@1 | 426 | * represented as a String. |
duke@1 | 427 | */ |
duke@1 | 428 | typedef string StringName; |
duke@1 | 429 | |
duke@1 | 430 | /** |
duke@1 | 431 | * Address is the Host and Port information represented as a String. |
duke@1 | 432 | */ |
duke@1 | 433 | typedef string Address; |
duke@1 | 434 | |
duke@1 | 435 | /** |
duke@1 | 436 | * URLString is the URL address (corbaloc: or corbaname:) represented as |
duke@1 | 437 | * a String. |
duke@1 | 438 | */ |
duke@1 | 439 | typedef string URLString; |
duke@1 | 440 | |
duke@1 | 441 | /** |
duke@1 | 442 | * This operation creates a stringified name from the array of Name |
duke@1 | 443 | * components. |
duke@1 | 444 | * |
duke@1 | 445 | * @param n Name of the object <p> |
duke@1 | 446 | * |
duke@1 | 447 | * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName |
duke@1 | 448 | * Indicates the name does not identify a binding.<p> |
duke@1 | 449 | * |
duke@1 | 450 | */ |
duke@1 | 451 | StringName to_string( in Name n ) raises (InvalidName); |
duke@1 | 452 | |
duke@1 | 453 | /** |
duke@1 | 454 | * This operation converts a Stringified Name into an equivalent array |
duke@1 | 455 | * of Name Components. |
duke@1 | 456 | * |
duke@1 | 457 | * @param sn Stringified Name of the object <p> |
duke@1 | 458 | * |
duke@1 | 459 | * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName |
duke@1 | 460 | * Indicates the name does not identify a binding.<p> |
duke@1 | 461 | * |
duke@1 | 462 | */ |
duke@1 | 463 | Name to_name( in StringName sn ) raises (InvalidName); |
duke@1 | 464 | |
duke@1 | 465 | |
duke@1 | 466 | /** |
duke@1 | 467 | * Indicates the invalid Stringified name for the object, The |
duke@1 | 468 | * reason could be invalid syntax. |
duke@1 | 469 | */ |
duke@1 | 470 | exception InvalidAddress |
duke@1 | 471 | { }; |
duke@1 | 472 | |
duke@1 | 473 | /** |
duke@1 | 474 | * This operation creates a URL based "iiopname://" format name |
duke@1 | 475 | * from the Stringified Name of the object. |
duke@1 | 476 | * |
duke@1 | 477 | * @param addr internet based address of the host machine where Name Service is running <p> |
duke@1 | 478 | * @param sn Stringified Name of the object <p> |
duke@1 | 479 | * |
duke@1 | 480 | * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName |
duke@1 | 481 | * Indicates the name does not identify a binding.<p> |
duke@1 | 482 | * @exception org.omg.CosNaming.NamingContextPackage.InvalidAddress |
duke@1 | 483 | * Indicates the internet based address of the host machine is |
duke@1 | 484 | * incorrect <p> |
duke@1 | 485 | * |
duke@1 | 486 | */ |
duke@1 | 487 | URLString to_url( in Address addr, in StringName sn ) |
duke@1 | 488 | raises( InvalidAddress, InvalidName ); |
duke@1 | 489 | |
duke@1 | 490 | |
duke@1 | 491 | /** |
duke@1 | 492 | * This operation resolves the Stringified name into the object |
duke@1 | 493 | * reference. |
duke@1 | 494 | * |
duke@1 | 495 | * @param sn Stringified Name of the object <p> |
duke@1 | 496 | * |
duke@1 | 497 | * @exception org.omg.CosNaming.NamingContextPackage.NotFound |
duke@1 | 498 | * Indicates there is no object reference for the given name. <p> |
duke@1 | 499 | * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed |
duke@1 | 500 | * Indicates that the given compound name is incorrect <p> |
duke@1 | 501 | * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName |
duke@1 | 502 | * Indicates the name does not identify a binding.<p> |
duke@1 | 503 | * |
duke@1 | 504 | */ |
duke@1 | 505 | Object resolve_str( in StringName sn) |
duke@1 | 506 | raises( NotFound, CannotProceed, |
duke@1 | 507 | InvalidName); |
duke@1 | 508 | |
duke@1 | 509 | }; |
duke@1 | 510 | |
duke@1 | 511 | }; |