FileDocCategorySizeDatePackage
_InitialNameServiceImplBase.javaAPI DocJava SE 5 API2533Fri Aug 26 17:56:50 BST 2005com.sun.corba.se.PortableActivationIDL

_InitialNameServiceImplBase

public abstract class _InitialNameServiceImplBase extends ObjectImpl implements com.sun.corba.se.PortableActivationIDL.InitialNameService, InvokeHandler
Interface used to support binding references in the bootstrap name service.

Fields Summary
private static Hashtable
_methods
private static String[]
__ids
Constructors Summary
public _InitialNameServiceImplBase()

  
Methods Summary
public java.lang.String[]_ids()


     
  
    return (String[])__ids.clone ();
  
public org.omg.CORBA.portable.OutputStream_invoke(java.lang.String $method, org.omg.CORBA.portable.InputStream in, org.omg.CORBA.portable.ResponseHandler $rh)

  
  
    _methods.put ("bind", new java.lang.Integer (0));
  
    org.omg.CORBA.portable.OutputStream out = null;
    java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
    if (__method == null)
      throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);

    switch (__method.intValue ())
    {

  /** bind initial name
	*/
       case 0:  // PortableActivationIDL/InitialNameService/bind
       {
         try {
           String name = in.read_string ();
           org.omg.CORBA.Object obj = org.omg.CORBA.ObjectHelper.read (in);
           boolean isPersistant = in.read_boolean ();
           this.bind (name, obj, isPersistant);
           out = $rh.createReply();
         } catch (com.sun.corba.se.PortableActivationIDL.InitialNameServicePackage.NameAlreadyBound $ex) {
           out = $rh.createExceptionReply ();
           com.sun.corba.se.PortableActivationIDL.InitialNameServicePackage.NameAlreadyBoundHelper.write (out, $ex);
         }
         break;
       }

       default:
         throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
    }

    return out;