Tue, 12 Sep 2017 16:53:35 +0100
8160104: CORBA communication improvements
Reviewed-by: dfuchs, msheppar
duke@1 | 1 | /* |
aefimov@1618 | 2 | * Copyright (c) 1997, 2017, 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 | * Licensed Materials - Property of IBM |
duke@1 | 27 | * RMI-IIOP v1.0 |
duke@1 | 28 | * Copyright IBM Corp. 1998 1999 All Rights Reserved |
duke@1 | 29 | * |
duke@1 | 30 | */ |
duke@1 | 31 | |
duke@1 | 32 | package com.sun.corba.se.impl.orb; |
duke@1 | 33 | |
duke@1 | 34 | import java.util.Properties; |
duke@1 | 35 | |
duke@1 | 36 | import java.applet.Applet; |
duke@1 | 37 | |
duke@1 | 38 | import java.net.URL; |
duke@1 | 39 | |
duke@1 | 40 | import org.omg.CORBA.ORBPackage.InvalidName; |
duke@1 | 41 | import org.omg.CORBA.NVList; |
duke@1 | 42 | import org.omg.CORBA.TCKind; |
duke@1 | 43 | import org.omg.CORBA.NO_IMPLEMENT; |
duke@1 | 44 | import org.omg.CORBA.Request; |
duke@1 | 45 | import org.omg.CORBA.TypeCode; |
duke@1 | 46 | import org.omg.CORBA.Any; |
duke@1 | 47 | import org.omg.CORBA.StructMember; |
duke@1 | 48 | import org.omg.CORBA.UnionMember; |
duke@1 | 49 | import org.omg.CORBA.ValueMember; |
duke@1 | 50 | import org.omg.CORBA.Policy; |
duke@1 | 51 | import org.omg.CORBA.PolicyError; |
duke@1 | 52 | |
duke@1 | 53 | import org.omg.CORBA.portable.OutputStream; |
duke@1 | 54 | |
duke@1 | 55 | import com.sun.corba.se.pept.protocol.ClientInvocationInfo ; |
duke@1 | 56 | import com.sun.corba.se.pept.transport.ContactInfo; |
duke@1 | 57 | import com.sun.corba.se.pept.transport.ConnectionCache; |
duke@1 | 58 | import com.sun.corba.se.pept.transport.Selector ; |
duke@1 | 59 | import com.sun.corba.se.pept.transport.TransportManager; |
duke@1 | 60 | |
duke@1 | 61 | import com.sun.corba.se.spi.orb.ORBData; |
duke@1 | 62 | import com.sun.corba.se.spi.orb.Operation; |
duke@1 | 63 | import com.sun.corba.se.spi.orb.ORB; |
duke@1 | 64 | import com.sun.corba.se.spi.orb.ORBVersion; |
duke@1 | 65 | import com.sun.corba.se.spi.orb.ORBVersionFactory; |
duke@1 | 66 | import com.sun.corba.se.spi.oa.OAInvocationInfo; |
duke@1 | 67 | import com.sun.corba.se.spi.protocol.ClientDelegateFactory; |
duke@1 | 68 | import com.sun.corba.se.spi.protocol.RequestDispatcherRegistry; |
duke@1 | 69 | import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; |
duke@1 | 70 | import com.sun.corba.se.spi.protocol.PIHandler; |
duke@1 | 71 | import com.sun.corba.se.spi.resolver.Resolver; |
duke@1 | 72 | import com.sun.corba.se.spi.resolver.LocalResolver; |
duke@1 | 73 | import com.sun.corba.se.spi.ior.IOR; |
duke@1 | 74 | import com.sun.corba.se.spi.ior.IdentifiableFactoryFinder; |
duke@1 | 75 | import com.sun.corba.se.spi.ior.TaggedComponentFactoryFinder; |
duke@1 | 76 | import com.sun.corba.se.spi.ior.ObjectKey; |
duke@1 | 77 | import com.sun.corba.se.spi.ior.ObjectKeyFactory; |
duke@1 | 78 | import com.sun.corba.se.spi.ior.iiop.GIOPVersion; |
duke@1 | 79 | import com.sun.corba.se.spi.transport.CorbaContactInfoListFactory ; |
duke@1 | 80 | import com.sun.corba.se.spi.transport.CorbaTransportManager; |
duke@1 | 81 | import com.sun.corba.se.spi.legacy.connection.LegacyServerSocketManager; |
duke@1 | 82 | import com.sun.corba.se.spi.orbutil.closure.Closure; |
duke@1 | 83 | import com.sun.corba.se.spi.orbutil.threadpool.ThreadPoolManager; |
duke@1 | 84 | import com.sun.corba.se.spi.copyobject.CopierManager; |
duke@1 | 85 | import com.sun.corba.se.spi.presentation.rmi.PresentationManager; |
duke@1 | 86 | import com.sun.corba.se.spi.presentation.rmi.PresentationDefaults; |
duke@1 | 87 | |
duke@1 | 88 | import com.sun.corba.se.spi.servicecontext.ServiceContextRegistry; |
duke@1 | 89 | |
duke@1 | 90 | import com.sun.corba.se.impl.corba.TypeCodeImpl; |
duke@1 | 91 | import com.sun.corba.se.impl.corba.NVListImpl; |
duke@1 | 92 | import com.sun.corba.se.impl.corba.NamedValueImpl; |
duke@1 | 93 | import com.sun.corba.se.impl.corba.ExceptionListImpl; |
duke@1 | 94 | import com.sun.corba.se.impl.corba.ContextListImpl; |
duke@1 | 95 | import com.sun.corba.se.impl.corba.EnvironmentImpl; |
duke@1 | 96 | import com.sun.corba.se.impl.corba.AnyImpl; |
duke@1 | 97 | import com.sun.corba.se.impl.encoding.BufferManagerFactory; |
duke@1 | 98 | import com.sun.corba.se.impl.encoding.CodeSetComponentInfo; |
duke@1 | 99 | import com.sun.corba.se.impl.oa.poa.BadServerIdHandler; |
duke@1 | 100 | import com.sun.corba.se.impl.orbutil.ORBConstants; |
duke@1 | 101 | import com.sun.corba.se.spi.legacy.connection.LegacyServerSocketEndPointInfo; |
duke@1 | 102 | |
duke@1 | 103 | /* |
duke@1 | 104 | * The restricted singleton ORB implementation. |
duke@1 | 105 | * |
duke@1 | 106 | * For now, this class must implement just enough functionality to be |
duke@1 | 107 | * used as a factory for immutable TypeCode instances. |
duke@1 | 108 | * |
duke@1 | 109 | * See ORBImpl.java for the real ORB implementation. |
duke@1 | 110 | */ |
duke@1 | 111 | public class ORBSingleton extends ORB |
duke@1 | 112 | { |
duke@1 | 113 | // This is used to support read_Object. |
tbell@68 | 114 | private ORB fullORB; |
duke@1 | 115 | private static PresentationManager.StubFactoryFactory staticStubFactoryFactory = |
duke@1 | 116 | PresentationDefaults.getStaticStubFactoryFactory() ; |
duke@1 | 117 | |
duke@1 | 118 | public void set_parameters( Properties props ) { |
duke@1 | 119 | } |
duke@1 | 120 | |
duke@1 | 121 | protected void set_parameters(Applet app, Properties props) { |
duke@1 | 122 | } |
duke@1 | 123 | |
duke@1 | 124 | protected void set_parameters (String params[], Properties props) { |
duke@1 | 125 | } |
duke@1 | 126 | |
duke@1 | 127 | public OutputStream create_output_stream() { |
coffeys@478 | 128 | return sun.corba.OutputStreamFactory.newEncapsOutputStream(this); |
duke@1 | 129 | } |
duke@1 | 130 | |
duke@1 | 131 | public TypeCode create_struct_tc(String id, |
duke@1 | 132 | String name, |
duke@1 | 133 | StructMember[] members) |
duke@1 | 134 | { |
duke@1 | 135 | return new TypeCodeImpl(this, TCKind._tk_struct, id, name, members); |
duke@1 | 136 | } |
duke@1 | 137 | |
duke@1 | 138 | public TypeCode create_union_tc(String id, |
duke@1 | 139 | String name, |
duke@1 | 140 | TypeCode discriminator_type, |
duke@1 | 141 | UnionMember[] members) |
duke@1 | 142 | { |
duke@1 | 143 | return new TypeCodeImpl(this, |
duke@1 | 144 | TCKind._tk_union, |
duke@1 | 145 | id, |
duke@1 | 146 | name, |
duke@1 | 147 | discriminator_type, |
duke@1 | 148 | members); |
duke@1 | 149 | } |
duke@1 | 150 | |
duke@1 | 151 | public TypeCode create_enum_tc(String id, |
duke@1 | 152 | String name, |
duke@1 | 153 | String[] members) |
duke@1 | 154 | { |
duke@1 | 155 | return new TypeCodeImpl(this, TCKind._tk_enum, id, name, members); |
duke@1 | 156 | } |
duke@1 | 157 | |
duke@1 | 158 | public TypeCode create_alias_tc(String id, |
duke@1 | 159 | String name, |
duke@1 | 160 | TypeCode original_type) |
duke@1 | 161 | { |
duke@1 | 162 | return new TypeCodeImpl(this, TCKind._tk_alias, id, name, original_type); |
duke@1 | 163 | } |
duke@1 | 164 | |
duke@1 | 165 | public TypeCode create_exception_tc(String id, |
duke@1 | 166 | String name, |
duke@1 | 167 | StructMember[] members) |
duke@1 | 168 | { |
duke@1 | 169 | return new TypeCodeImpl(this, TCKind._tk_except, id, name, members); |
duke@1 | 170 | } |
duke@1 | 171 | |
duke@1 | 172 | public TypeCode create_interface_tc(String id, |
duke@1 | 173 | String name) |
duke@1 | 174 | { |
duke@1 | 175 | return new TypeCodeImpl(this, TCKind._tk_objref, id, name); |
duke@1 | 176 | } |
duke@1 | 177 | |
duke@1 | 178 | public TypeCode create_string_tc(int bound) { |
duke@1 | 179 | return new TypeCodeImpl(this, TCKind._tk_string, bound); |
duke@1 | 180 | } |
duke@1 | 181 | |
duke@1 | 182 | public TypeCode create_wstring_tc(int bound) { |
duke@1 | 183 | return new TypeCodeImpl(this, TCKind._tk_wstring, bound); |
duke@1 | 184 | } |
duke@1 | 185 | |
duke@1 | 186 | public TypeCode create_sequence_tc(int bound, |
duke@1 | 187 | TypeCode element_type) |
duke@1 | 188 | { |
duke@1 | 189 | return new TypeCodeImpl(this, TCKind._tk_sequence, bound, element_type); |
duke@1 | 190 | } |
duke@1 | 191 | |
duke@1 | 192 | public TypeCode create_recursive_sequence_tc(int bound, |
duke@1 | 193 | int offset) |
duke@1 | 194 | { |
duke@1 | 195 | return new TypeCodeImpl(this, TCKind._tk_sequence, bound, offset); |
duke@1 | 196 | } |
duke@1 | 197 | |
duke@1 | 198 | public TypeCode create_array_tc(int length, |
duke@1 | 199 | TypeCode element_type) |
duke@1 | 200 | { |
duke@1 | 201 | return new TypeCodeImpl(this, TCKind._tk_array, length, element_type); |
duke@1 | 202 | } |
duke@1 | 203 | |
duke@1 | 204 | public org.omg.CORBA.TypeCode create_native_tc(String id, |
duke@1 | 205 | String name) |
duke@1 | 206 | { |
duke@1 | 207 | return new TypeCodeImpl(this, TCKind._tk_native, id, name); |
duke@1 | 208 | } |
duke@1 | 209 | |
duke@1 | 210 | public org.omg.CORBA.TypeCode create_abstract_interface_tc( |
duke@1 | 211 | String id, |
duke@1 | 212 | String name) |
duke@1 | 213 | { |
duke@1 | 214 | return new TypeCodeImpl(this, TCKind._tk_abstract_interface, id, name); |
duke@1 | 215 | } |
duke@1 | 216 | |
duke@1 | 217 | public org.omg.CORBA.TypeCode create_fixed_tc(short digits, short scale) |
duke@1 | 218 | { |
duke@1 | 219 | return new TypeCodeImpl(this, TCKind._tk_fixed, digits, scale); |
duke@1 | 220 | } |
duke@1 | 221 | |
duke@1 | 222 | // orbos 98-01-18: Objects By Value -- begin |
duke@1 | 223 | |
duke@1 | 224 | public org.omg.CORBA.TypeCode create_value_tc(String id, |
duke@1 | 225 | String name, |
duke@1 | 226 | short type_modifier, |
duke@1 | 227 | TypeCode concrete_base, |
duke@1 | 228 | ValueMember[] members) |
duke@1 | 229 | { |
duke@1 | 230 | return new TypeCodeImpl(this, TCKind._tk_value, id, name, |
duke@1 | 231 | type_modifier, concrete_base, members); |
duke@1 | 232 | } |
duke@1 | 233 | |
duke@1 | 234 | public org.omg.CORBA.TypeCode create_recursive_tc(String id) { |
duke@1 | 235 | return new TypeCodeImpl(this, id); |
duke@1 | 236 | } |
duke@1 | 237 | |
duke@1 | 238 | public org.omg.CORBA.TypeCode create_value_box_tc(String id, |
duke@1 | 239 | String name, |
duke@1 | 240 | TypeCode boxed_type) |
duke@1 | 241 | { |
duke@1 | 242 | return new TypeCodeImpl(this, TCKind._tk_value_box, id, name, boxed_type); |
duke@1 | 243 | } |
duke@1 | 244 | |
duke@1 | 245 | public TypeCode get_primitive_tc( TCKind tckind ) |
duke@1 | 246 | { |
duke@1 | 247 | return get_primitive_tc( tckind.value() ) ; |
duke@1 | 248 | } |
duke@1 | 249 | |
duke@1 | 250 | public Any create_any() { |
duke@1 | 251 | return new AnyImpl(this); |
duke@1 | 252 | } |
duke@1 | 253 | |
duke@1 | 254 | // TypeCodeFactory interface methods. |
duke@1 | 255 | // Keeping track of type codes by repository id. |
duke@1 | 256 | /* |
duke@1 | 257 | * Not strictly needed for TypeCode factory duty but these seem |
duke@1 | 258 | * harmless enough. |
duke@1 | 259 | */ |
duke@1 | 260 | |
duke@1 | 261 | public NVList create_list(int count) { |
duke@1 | 262 | return new NVListImpl(this, count); |
duke@1 | 263 | } |
duke@1 | 264 | |
duke@1 | 265 | public org.omg.CORBA.NVList |
duke@1 | 266 | create_operation_list(org.omg.CORBA.Object oper) { |
duke@1 | 267 | throw wrapper.genericNoImpl() ; |
duke@1 | 268 | } |
duke@1 | 269 | |
duke@1 | 270 | public org.omg.CORBA.NamedValue |
duke@1 | 271 | create_named_value(String s, Any any, int flags) { |
duke@1 | 272 | return new NamedValueImpl(this, s, any, flags); |
duke@1 | 273 | } |
duke@1 | 274 | |
duke@1 | 275 | public org.omg.CORBA.ExceptionList create_exception_list() { |
duke@1 | 276 | return new ExceptionListImpl(); |
duke@1 | 277 | } |
duke@1 | 278 | |
duke@1 | 279 | public org.omg.CORBA.ContextList create_context_list() { |
duke@1 | 280 | return new ContextListImpl(this); |
duke@1 | 281 | } |
duke@1 | 282 | |
duke@1 | 283 | public org.omg.CORBA.Context get_default_context() |
duke@1 | 284 | { |
duke@1 | 285 | throw wrapper.genericNoImpl() ; |
duke@1 | 286 | } |
duke@1 | 287 | |
duke@1 | 288 | public org.omg.CORBA.Environment create_environment() |
duke@1 | 289 | { |
duke@1 | 290 | return new EnvironmentImpl(); |
duke@1 | 291 | } |
duke@1 | 292 | |
duke@1 | 293 | public org.omg.CORBA.Current get_current() |
duke@1 | 294 | { |
duke@1 | 295 | throw wrapper.genericNoImpl() ; |
duke@1 | 296 | } |
duke@1 | 297 | |
duke@1 | 298 | /* |
duke@1 | 299 | * Things that aren't allowed. |
duke@1 | 300 | */ |
duke@1 | 301 | |
duke@1 | 302 | public String[] list_initial_services () |
duke@1 | 303 | { |
duke@1 | 304 | throw wrapper.genericNoImpl() ; |
duke@1 | 305 | } |
duke@1 | 306 | |
duke@1 | 307 | public org.omg.CORBA.Object resolve_initial_references(String identifier) |
duke@1 | 308 | throws InvalidName |
duke@1 | 309 | { |
duke@1 | 310 | throw wrapper.genericNoImpl() ; |
duke@1 | 311 | } |
duke@1 | 312 | |
duke@1 | 313 | public void register_initial_reference( |
duke@1 | 314 | String id, org.omg.CORBA.Object obj ) throws InvalidName |
duke@1 | 315 | { |
duke@1 | 316 | throw wrapper.genericNoImpl() ; |
duke@1 | 317 | } |
duke@1 | 318 | |
duke@1 | 319 | public void send_multiple_requests_oneway(Request[] req) { |
duke@1 | 320 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 321 | } |
duke@1 | 322 | |
duke@1 | 323 | public void send_multiple_requests_deferred(Request[] req) { |
duke@1 | 324 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 325 | } |
duke@1 | 326 | |
duke@1 | 327 | public boolean poll_next_response() { |
duke@1 | 328 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 329 | } |
duke@1 | 330 | |
duke@1 | 331 | public org.omg.CORBA.Request get_next_response() { |
duke@1 | 332 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 333 | } |
duke@1 | 334 | |
duke@1 | 335 | public String object_to_string(org.omg.CORBA.Object obj) { |
duke@1 | 336 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 337 | } |
duke@1 | 338 | |
duke@1 | 339 | public org.omg.CORBA.Object string_to_object(String s) { |
duke@1 | 340 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 341 | } |
duke@1 | 342 | |
duke@1 | 343 | public java.rmi.Remote string_to_remote(String s) |
duke@1 | 344 | throws java.rmi.RemoteException |
duke@1 | 345 | { |
duke@1 | 346 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 347 | } |
duke@1 | 348 | |
duke@1 | 349 | public void connect(org.omg.CORBA.Object servant) { |
duke@1 | 350 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 351 | } |
duke@1 | 352 | |
duke@1 | 353 | public void disconnect(org.omg.CORBA.Object obj) { |
duke@1 | 354 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 355 | } |
duke@1 | 356 | |
duke@1 | 357 | public void run() |
duke@1 | 358 | { |
duke@1 | 359 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 360 | } |
duke@1 | 361 | |
duke@1 | 362 | public void shutdown(boolean wait_for_completion) |
duke@1 | 363 | { |
duke@1 | 364 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 365 | } |
duke@1 | 366 | |
duke@1 | 367 | protected void shutdownServants(boolean wait_for_completion) { |
duke@1 | 368 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 369 | } |
duke@1 | 370 | |
duke@1 | 371 | protected void destroyConnections() { |
duke@1 | 372 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 373 | } |
duke@1 | 374 | |
duke@1 | 375 | public void destroy() { |
duke@1 | 376 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 377 | } |
duke@1 | 378 | |
duke@1 | 379 | public boolean work_pending() |
duke@1 | 380 | { |
duke@1 | 381 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 382 | } |
duke@1 | 383 | |
duke@1 | 384 | public void perform_work() |
duke@1 | 385 | { |
duke@1 | 386 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 387 | } |
duke@1 | 388 | |
duke@1 | 389 | public org.omg.CORBA.portable.ValueFactory register_value_factory(String repositoryID, |
duke@1 | 390 | org.omg.CORBA.portable.ValueFactory factory) |
duke@1 | 391 | { |
duke@1 | 392 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 393 | } |
duke@1 | 394 | |
duke@1 | 395 | public void unregister_value_factory(String repositoryID) |
duke@1 | 396 | { |
duke@1 | 397 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 398 | } |
duke@1 | 399 | |
duke@1 | 400 | public org.omg.CORBA.portable.ValueFactory lookup_value_factory(String repositoryID) |
duke@1 | 401 | { |
duke@1 | 402 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 403 | } |
duke@1 | 404 | |
duke@1 | 405 | public TransportManager getTransportManager() |
duke@1 | 406 | { |
duke@1 | 407 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 408 | } |
duke@1 | 409 | |
duke@1 | 410 | public CorbaTransportManager getCorbaTransportManager() |
duke@1 | 411 | { |
duke@1 | 412 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 413 | } |
duke@1 | 414 | |
duke@1 | 415 | public LegacyServerSocketManager getLegacyServerSocketManager() |
duke@1 | 416 | { |
duke@1 | 417 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 418 | } |
duke@1 | 419 | |
duke@1 | 420 | /************************************************************************* |
duke@1 | 421 | These are methods from com.sun.corba.se.impl.se.core.ORB |
duke@1 | 422 | ************************************************************************/ |
duke@1 | 423 | |
duke@1 | 424 | private synchronized ORB getFullORB() |
duke@1 | 425 | { |
duke@1 | 426 | if (fullORB == null) { |
duke@1 | 427 | Properties props = new Properties() ; |
duke@1 | 428 | fullORB = new ORBImpl() ; |
duke@1 | 429 | fullORB.set_parameters( props ) ; |
duke@1 | 430 | } |
duke@1 | 431 | |
duke@1 | 432 | return fullORB ; |
duke@1 | 433 | } |
duke@1 | 434 | |
duke@1 | 435 | public RequestDispatcherRegistry getRequestDispatcherRegistry() |
duke@1 | 436 | { |
duke@1 | 437 | // To enable read_Object. |
duke@1 | 438 | |
duke@1 | 439 | return getFullORB().getRequestDispatcherRegistry(); |
duke@1 | 440 | } |
duke@1 | 441 | |
duke@1 | 442 | /** |
duke@1 | 443 | * Return the service context registry |
duke@1 | 444 | */ |
duke@1 | 445 | public ServiceContextRegistry getServiceContextRegistry() |
duke@1 | 446 | { |
duke@1 | 447 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 448 | } |
duke@1 | 449 | |
duke@1 | 450 | /** |
duke@1 | 451 | * Get the transient server ID |
duke@1 | 452 | */ |
duke@1 | 453 | public int getTransientServerId() |
duke@1 | 454 | { |
duke@1 | 455 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 456 | } |
duke@1 | 457 | |
duke@1 | 458 | /** |
duke@1 | 459 | * Return the bootstrap naming port specified in the ORBInitialPort param. |
duke@1 | 460 | */ |
duke@1 | 461 | public int getORBInitialPort() |
duke@1 | 462 | { |
duke@1 | 463 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 464 | } |
duke@1 | 465 | |
duke@1 | 466 | /** |
duke@1 | 467 | * Return the bootstrap naming host specified in the ORBInitialHost param. |
duke@1 | 468 | */ |
duke@1 | 469 | public String getORBInitialHost() |
duke@1 | 470 | { |
duke@1 | 471 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 472 | } |
duke@1 | 473 | |
duke@1 | 474 | public String getORBServerHost() |
duke@1 | 475 | { |
duke@1 | 476 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 477 | } |
duke@1 | 478 | |
duke@1 | 479 | public int getORBServerPort() |
duke@1 | 480 | { |
duke@1 | 481 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 482 | } |
duke@1 | 483 | |
duke@1 | 484 | public CodeSetComponentInfo getCodeSetComponentInfo() |
duke@1 | 485 | { |
duke@1 | 486 | return new CodeSetComponentInfo(); |
duke@1 | 487 | } |
duke@1 | 488 | |
duke@1 | 489 | public boolean isLocalHost( String host ) |
duke@1 | 490 | { |
duke@1 | 491 | // To enable read_Object. |
duke@1 | 492 | return false; |
duke@1 | 493 | } |
duke@1 | 494 | |
duke@1 | 495 | public boolean isLocalServerId( int subcontractId, int serverId ) |
duke@1 | 496 | { |
duke@1 | 497 | // To enable read_Object. |
duke@1 | 498 | return false; |
duke@1 | 499 | } |
duke@1 | 500 | |
duke@1 | 501 | /* |
duke@1 | 502 | * Things from corba.ORB. |
duke@1 | 503 | */ |
duke@1 | 504 | |
duke@1 | 505 | public ORBVersion getORBVersion() |
duke@1 | 506 | { |
duke@1 | 507 | // Always use our latest ORB version (latest fixes, etc) |
duke@1 | 508 | return ORBVersionFactory.getORBVersion(); |
duke@1 | 509 | } |
duke@1 | 510 | |
duke@1 | 511 | public void setORBVersion(ORBVersion verObj) |
duke@1 | 512 | { |
duke@1 | 513 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 514 | } |
duke@1 | 515 | |
duke@1 | 516 | public String getAppletHost() |
duke@1 | 517 | { |
duke@1 | 518 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 519 | } |
duke@1 | 520 | |
duke@1 | 521 | public URL getAppletCodeBase() |
duke@1 | 522 | { |
duke@1 | 523 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 524 | } |
duke@1 | 525 | |
duke@1 | 526 | public int getHighWaterMark(){ |
duke@1 | 527 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 528 | } |
duke@1 | 529 | |
duke@1 | 530 | public int getLowWaterMark(){ |
duke@1 | 531 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 532 | } |
duke@1 | 533 | |
duke@1 | 534 | public int getNumberToReclaim(){ |
duke@1 | 535 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 536 | } |
duke@1 | 537 | |
duke@1 | 538 | public int getGIOPFragmentSize() { |
duke@1 | 539 | return ORBConstants.GIOP_DEFAULT_BUFFER_SIZE; |
duke@1 | 540 | } |
duke@1 | 541 | |
duke@1 | 542 | public int getGIOPBuffMgrStrategy(GIOPVersion gv) { |
duke@1 | 543 | return BufferManagerFactory.GROW; |
duke@1 | 544 | } |
duke@1 | 545 | |
duke@1 | 546 | public IOR getFVDCodeBaseIOR(){ |
duke@1 | 547 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 548 | } |
duke@1 | 549 | |
duke@1 | 550 | public Policy create_policy( int type, Any val ) throws PolicyError |
duke@1 | 551 | { |
duke@1 | 552 | throw new NO_IMPLEMENT(); |
duke@1 | 553 | } |
duke@1 | 554 | |
duke@1 | 555 | public LegacyServerSocketEndPointInfo getServerEndpoint() |
duke@1 | 556 | { |
duke@1 | 557 | return null ; |
duke@1 | 558 | } |
duke@1 | 559 | |
duke@1 | 560 | public void setPersistentServerId( int id ) |
duke@1 | 561 | { |
duke@1 | 562 | } |
duke@1 | 563 | |
duke@1 | 564 | public TypeCodeImpl getTypeCodeForClass( Class c ) |
duke@1 | 565 | { |
duke@1 | 566 | return null ; |
duke@1 | 567 | } |
duke@1 | 568 | |
duke@1 | 569 | public void setTypeCodeForClass( Class c, TypeCodeImpl tcimpl ) |
duke@1 | 570 | { |
duke@1 | 571 | } |
duke@1 | 572 | |
duke@1 | 573 | public boolean alwaysSendCodeSetServiceContext() |
duke@1 | 574 | { |
duke@1 | 575 | return true ; |
duke@1 | 576 | } |
duke@1 | 577 | |
duke@1 | 578 | public boolean isDuringDispatch() |
duke@1 | 579 | { |
duke@1 | 580 | return false ; |
duke@1 | 581 | } |
duke@1 | 582 | |
duke@1 | 583 | public void notifyORB() { } |
duke@1 | 584 | |
duke@1 | 585 | public PIHandler getPIHandler() |
duke@1 | 586 | { |
duke@1 | 587 | return null ; |
duke@1 | 588 | } |
duke@1 | 589 | |
duke@1 | 590 | public void checkShutdownState() |
duke@1 | 591 | { |
duke@1 | 592 | } |
duke@1 | 593 | |
duke@1 | 594 | public void startingDispatch() |
duke@1 | 595 | { |
duke@1 | 596 | } |
duke@1 | 597 | |
duke@1 | 598 | public void finishedDispatch() |
duke@1 | 599 | { |
duke@1 | 600 | } |
duke@1 | 601 | |
duke@1 | 602 | public void registerInitialReference( String id, Closure closure ) |
duke@1 | 603 | { |
duke@1 | 604 | } |
duke@1 | 605 | |
duke@1 | 606 | public ORBData getORBData() |
duke@1 | 607 | { |
duke@1 | 608 | return getFullORB().getORBData() ; |
duke@1 | 609 | } |
duke@1 | 610 | |
duke@1 | 611 | public void setClientDelegateFactory( ClientDelegateFactory factory ) |
duke@1 | 612 | { |
duke@1 | 613 | } |
duke@1 | 614 | |
duke@1 | 615 | public ClientDelegateFactory getClientDelegateFactory() |
duke@1 | 616 | { |
duke@1 | 617 | return getFullORB().getClientDelegateFactory() ; |
duke@1 | 618 | } |
duke@1 | 619 | |
duke@1 | 620 | public void setCorbaContactInfoListFactory( CorbaContactInfoListFactory factory ) |
duke@1 | 621 | { |
duke@1 | 622 | } |
duke@1 | 623 | |
duke@1 | 624 | public CorbaContactInfoListFactory getCorbaContactInfoListFactory() |
duke@1 | 625 | { |
duke@1 | 626 | return getFullORB().getCorbaContactInfoListFactory() ; |
duke@1 | 627 | } |
duke@1 | 628 | |
duke@1 | 629 | public Operation getURLOperation() |
duke@1 | 630 | { |
duke@1 | 631 | return null ; |
duke@1 | 632 | } |
duke@1 | 633 | |
duke@1 | 634 | public void setINSDelegate( CorbaServerRequestDispatcher sdel ) |
duke@1 | 635 | { |
duke@1 | 636 | } |
duke@1 | 637 | |
duke@1 | 638 | public TaggedComponentFactoryFinder getTaggedComponentFactoryFinder() |
duke@1 | 639 | { |
duke@1 | 640 | return getFullORB().getTaggedComponentFactoryFinder() ; |
duke@1 | 641 | } |
duke@1 | 642 | |
duke@1 | 643 | public IdentifiableFactoryFinder getTaggedProfileFactoryFinder() |
duke@1 | 644 | { |
duke@1 | 645 | return getFullORB().getTaggedProfileFactoryFinder() ; |
duke@1 | 646 | } |
duke@1 | 647 | |
duke@1 | 648 | public IdentifiableFactoryFinder getTaggedProfileTemplateFactoryFinder() |
duke@1 | 649 | { |
duke@1 | 650 | return getFullORB().getTaggedProfileTemplateFactoryFinder() ; |
duke@1 | 651 | } |
duke@1 | 652 | |
duke@1 | 653 | public ObjectKeyFactory getObjectKeyFactory() |
duke@1 | 654 | { |
duke@1 | 655 | return getFullORB().getObjectKeyFactory() ; |
duke@1 | 656 | } |
duke@1 | 657 | |
duke@1 | 658 | public void setObjectKeyFactory( ObjectKeyFactory factory ) |
duke@1 | 659 | { |
duke@1 | 660 | throw new SecurityException("ORBSingleton: access denied"); |
duke@1 | 661 | } |
duke@1 | 662 | |
duke@1 | 663 | public void handleBadServerId( ObjectKey okey ) |
duke@1 | 664 | { |
duke@1 | 665 | } |
duke@1 | 666 | |
duke@1 | 667 | public OAInvocationInfo peekInvocationInfo() |
duke@1 | 668 | { |
duke@1 | 669 | return null ; |
duke@1 | 670 | } |
duke@1 | 671 | |
duke@1 | 672 | public void pushInvocationInfo( OAInvocationInfo info ) |
duke@1 | 673 | { |
duke@1 | 674 | } |
duke@1 | 675 | |
duke@1 | 676 | public OAInvocationInfo popInvocationInfo() |
duke@1 | 677 | { |
duke@1 | 678 | return null ; |
duke@1 | 679 | } |
duke@1 | 680 | |
duke@1 | 681 | public ClientInvocationInfo createOrIncrementInvocationInfo() |
duke@1 | 682 | { |
duke@1 | 683 | return null ; |
duke@1 | 684 | } |
duke@1 | 685 | |
duke@1 | 686 | public void releaseOrDecrementInvocationInfo() |
duke@1 | 687 | { |
duke@1 | 688 | } |
duke@1 | 689 | |
duke@1 | 690 | public ClientInvocationInfo getInvocationInfo() |
duke@1 | 691 | { |
duke@1 | 692 | return null ; |
duke@1 | 693 | } |
duke@1 | 694 | |
duke@1 | 695 | public ConnectionCache getConnectionCache(ContactInfo contactInfo) |
duke@1 | 696 | { |
duke@1 | 697 | return null; |
duke@1 | 698 | } |
duke@1 | 699 | |
duke@1 | 700 | public void setResolver( Resolver resolver ) |
duke@1 | 701 | { |
duke@1 | 702 | } |
duke@1 | 703 | |
duke@1 | 704 | public Resolver getResolver() |
duke@1 | 705 | { |
duke@1 | 706 | return null ; |
duke@1 | 707 | } |
duke@1 | 708 | |
duke@1 | 709 | public void setLocalResolver( LocalResolver resolver ) |
duke@1 | 710 | { |
duke@1 | 711 | } |
duke@1 | 712 | |
duke@1 | 713 | public LocalResolver getLocalResolver() |
duke@1 | 714 | { |
duke@1 | 715 | return null ; |
duke@1 | 716 | } |
duke@1 | 717 | |
duke@1 | 718 | public void setURLOperation( Operation stringToObject ) |
duke@1 | 719 | { |
duke@1 | 720 | } |
duke@1 | 721 | |
duke@1 | 722 | // NOTE: REMOVE THIS METHOD ONCE WE HAVE A ORT BASED ORBD |
duke@1 | 723 | public void setBadServerIdHandler( BadServerIdHandler handler ) |
duke@1 | 724 | { |
duke@1 | 725 | } |
duke@1 | 726 | |
duke@1 | 727 | // NOTE: REMOVE THIS METHOD ONCE WE HAVE A ORT BASED ORBD |
duke@1 | 728 | public void initBadServerIdHandler() |
duke@1 | 729 | { |
duke@1 | 730 | } |
duke@1 | 731 | |
duke@1 | 732 | public Selector getSelector(int x) |
duke@1 | 733 | { |
duke@1 | 734 | return null; |
duke@1 | 735 | } |
duke@1 | 736 | |
duke@1 | 737 | public void setThreadPoolManager(ThreadPoolManager mgr) { |
duke@1 | 738 | } |
duke@1 | 739 | |
duke@1 | 740 | public ThreadPoolManager getThreadPoolManager() { |
duke@1 | 741 | return null; |
duke@1 | 742 | } |
duke@1 | 743 | |
duke@1 | 744 | public CopierManager getCopierManager() { |
duke@1 | 745 | return null ; |
duke@1 | 746 | } |
aefimov@1618 | 747 | |
aefimov@1618 | 748 | @Override |
aefimov@1618 | 749 | public void validateIORClass(String iorClassName) { |
aefimov@1618 | 750 | getFullORB().validateIORClass(iorClassName); |
aefimov@1618 | 751 | } |
aefimov@1618 | 752 | |
duke@1 | 753 | } |
duke@1 | 754 | |
duke@1 | 755 | // End of file. |