javax.rmi.CORBA
public interface UtilDelegate
Method Summary | |
---|---|
Object | copyObject(Object obj, ORB orb)
Used by local stubs to create a copy of the object. |
Object[] | copyObjects(Object[] obj, ORB orb)
Used by local stubs to create a multiple copies of the object, preserving
sharing accross the parameters if necessary. |
ValueHandler | createValueHandler()
Get the value handler that Serializes Java objects to and from CDR (GIOP)
streams. |
String | getCodebase(Class clz) |
Tie | getTie(Remote target)
Get the Tie that handles invocations on the given target. |
boolean | isLocal(Stub stub)
Checks if the given stub is local. |
Class | loadClass(String className, String remoteCodebase, ClassLoader loader) |
RemoteException | mapSystemException(SystemException ex)
Converts CORBA {@link SystemException} into RMI {@link RemoteException}.
|
Object | readAny(InputStream input)
Read Any from the input stream. |
void | registerTarget(Tie tie, Remote target)
Register the Tie-target pair. |
void | unexportObject(Remote target)
Deactivate the associated Tie, if it is found and is not connected to other
registered targets. |
RemoteException | wrapException(Throwable orig)
Converts the exception that was thrown by the implementation method on a
server side into RemoteException that can be transferred and re-thrown on a
client side. |
void | writeAbstractObject(OutputStream output, Object object)
Write abstract interface to the CORBA output stream. |
void | writeAny(OutputStream output, Object object)
Write the passed java object to the output stream in the form of the CORBA
{@link Any}. |
void | writeRemoteObject(OutputStream output, Object obj)
Write the passed parameter to the output stream as CORBA object. |
Returns: the Tie, or null if no such is known.
CORBA Exception | RMI Exception |
---|---|
{@link COMM_FAILURE} | {@link MarshalException} |
{@link INV_OBJREF} | {@link NoSuchObjectException} |
{@link NO_PERMISSION} | {@link AccessException} |
{@link MARSHAL} | {@link MarshalException} |
{@link BAD_PARAM} (all other cases) | {@link MarshalException} |
{@link OBJECT_NOT_EXIST} | {@link NoSuchObjectException} |
{@link TRANSACTION_REQUIRED} | {@link TransactionRequiredException} |
{@link TRANSACTION_ROLLEDBACK} | {@link TransactionRolledbackException} |
{@link INVALID_TRANSACTION} | {@link InvalidTransactionException} |
Any other {@link SystemException} | {@link RemoteException} |
The exception detailed message always consists of
; nested exception is: (line feed)(tab)
"For instance, if the Internet connection was refused:
CORBA COMM_FAILURE 0x535500C9 No
The original CORBA exception is set as the cause of the RemoteException being created.
Exception to map (or subclass) | Maps into |
---|---|
{@link Error} | {@link ServerError} |
{@link RemoteException} | {@link ServerException} |
{@link SystemException} | wrapException({@link #mapSystemException}) |
{@link RuntimeException} | rethrows |
Any other exception | {@link UnexpectedException} |
Parameters: ex an exception that was thrown on a server side implementation.
Returns: the corresponding RemoteException unless it is a RuntimeException.
Throws: RuntimeException the passed exception if it is an instance of RuntimeException.
UNKNOWN: It is the same behavior, as in Suns implementations 1.4.0-1.5.0.
Parameters: output a stream to write to, must be {@link org.omg.CORBA_2_3.portable.OutputStream}. object an object to write, must be CORBA object, Remote
Parameters: output the object to write. object the java object that must be written in the form of the CORBA {@link Any}.
Parameters: output a stream to write to, must be org.omg.CORBA_2_3.portable.OutputStream object an object to write.