org.jboss.invocation.iiop
Class ReferenceData

java.lang.Object
  extended byorg.jboss.invocation.iiop.ReferenceData
All Implemented Interfaces:
java.io.Serializable

public class ReferenceData
extends java.lang.Object
implements java.io.Serializable

Helper class used to create a byte array ("reference data") to be embedded into a CORBA reference and to extract object/servant identification info from this byte array. If this info consists simply of an objectId, this id is serialized into the byte array. If this info consists of a pair (servantId, objectId), a ReferenceData instance containing the pair is is serialized into the byte array.

See Also:
Serialized Form

Method Summary
static byte[] create(java.lang.Object id)
           
static byte[] create(java.lang.Object servantId, java.lang.Object objectId)
           
static java.lang.Object extractObjectId(byte[] refData)
           
static java.lang.Object extractObjectId(byte[] refData, java.lang.ClassLoader cl)
           
static java.lang.Object extractServantId(byte[] refData)
           
static java.lang.Object extractServantId(byte[] refData, java.lang.ClassLoader cl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static byte[] create(java.lang.Object servantId,
                            java.lang.Object objectId)

create

public static byte[] create(java.lang.Object id)

extractServantId

public static java.lang.Object extractServantId(byte[] refData,
                                                java.lang.ClassLoader cl)
                                         throws java.io.IOException,
                                                java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

extractServantId

public static java.lang.Object extractServantId(byte[] refData)
                                         throws java.io.IOException,
                                                java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

extractObjectId

public static java.lang.Object extractObjectId(byte[] refData,
                                               java.lang.ClassLoader cl)
                                        throws java.io.IOException,
                                               java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

extractObjectId

public static java.lang.Object extractObjectId(byte[] refData)
                                        throws java.io.IOException,
                                               java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException