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