/** * Copies or connects an object. Used by local stubs to copy an actual * parameter, result object, or exception. * @param obj the object to copy. * @param orb the ORB. * @return the copy or connected object. * @exception RemoteException if the object could not be copied or * connected. */ public Object copyObject(Object obj, ORB orb) throws RemoteException { return proxied.copyObject(obj, orb); }
public static Object[] copyObjects(Object[] objs, ORB orb) throws RemoteException { return delegate.copyObjects(objs, orb); }
/** * Returns a singleton instance of a class that implements the {@link ValueHandler} interface. * * @return a class which implements the ValueHandler interface. */ public static ValueHandler createValueHandler() { if (utilDelegate != null) { return utilDelegate.createValueHandler(); } return null; }
/** * Returns the tie (if any) for a given target object. * @return the tie or null if no tie is registered for the given target. */ public static Tie getTie (Remote target) { if (utilDelegate != null) { return utilDelegate.getTie(target); } return null; }
/** * Reads a java.lang.Object as a CORBA any. * @param in the stream from which to read the any. * @return the object read from the stream. */ public static Object readAny(InputStream in) { if (utilDelegate != null) { return utilDelegate.readAny(in); } return null; }
/** * Maps a SystemException to a RemoteException. * @param ex the SystemException to map. * @return the mapped exception. */ public static RemoteException mapSystemException(SystemException ex) { if (utilDelegate != null) { return utilDelegate.mapSystemException(ex); } return null; }
/** * Returns the codebase, if any, for the given class. * @param clz the class to get a codebase for. * @return a space-separated list of URLs, or null. */ public static String getCodebase(java.lang.Class<?> clz) { if (utilDelegate != null) { return utilDelegate.getCodebase(clz); } return null; }
return utilDelegate.loadClass(className, remoteCodebase, loader);
/** * Registers a target for a tie. Adds the tie to an internal table and calls * {@link Tie#setTarget} on the tie object. * @param tie the tie to register. * @param target the target for the tie. */ public void registerTarget(Tie tie, Remote target) { proxied.registerTarget(tie, target); }
public static boolean isLocal(Stub s) throws RemoteException { return delegate.isLocal(s); }
/** * Returns the tie (if any) for a given target object. * @param target the given target from which we want the tie * @return the tie or null if no tie is registered for the given target. */ public Tie getTie(Remote target) { return proxied.getTie(target); }
/** * Reads a java.lang.Object as a CORBA any. * @param in the stream from which to read the any. * @return the object read from the stream. */ public Object readAny(InputStream in) { return proxied.readAny(in); }
public static RemoteException mapSystemException(SystemException e) { return delegate.mapSystemException(e); }
/** * Returns the codebase, if any, for the given class. * @param clz the class to get a codebase for. * @return a space-separated list of URLs, or null. */ public String getCodebase(Class clz) { return proxied.getCodebase(clz); }
throws ClassNotFoundException { if (utilDelegate != null) { return utilDelegate.loadClass(className,remoteCodebase,loader);
/** * Registers a target for a tie. Adds the tie to an internal table and calls * {@link Tie#setTarget} on the tie object. * @param tie the tie to register. * @param target the target for the tie. */ public static void registerTarget(javax.rmi.CORBA.Tie tie, java.rmi.Remote target) { if (utilDelegate != null) { utilDelegate.registerTarget(tie, target); } }
/** * The <tt>_is_local()</tt> method is provided so that stubs may determine * if a particular object is implemented by a local servant and hence local * invocation APIs may be used. * @param stub the stub to test. * @return true if the servant incarnating the object is located in the same * process as the stub and they both share the same ORB instance. * The <tt>_is_local()</tt> method returns false otherwise. The * default behavior of <tt>_is_local()</tt> is to return false. * @throws RemoteException The Java to IDL specification does not specify * the conditions that cause a <tt>RemoteException</tt> to be * thrown. */ public boolean isLocal(Stub stub) throws RemoteException { return proxied.isLocal(stub); }
/** * Returns the tie (if any) for a given target object. * * @return the tie or null if no tie is registered for the given target. */ public static Tie getTie(Remote target) { if (utilDelegate != null) { return utilDelegate.getTie(target); } return null; }
public static Object readAny(InputStream is) { return delegate.readAny(is); }
/** * Maps a SystemException to a RemoteException. * * @param ex * the SystemException to map. * @return the mapped exception. */ public static RemoteException mapSystemException(SystemException ex) { if (utilDelegate != null) { return utilDelegate.mapSystemException(ex); } return null; }