org.omg.IOP

Class IOR

public final class IOR extends Object implements IDLEntity, Serializable

The object IOR contains sufficient information for finding local or remote CORBA object. It also contains additional data like the object native and supported char sets, URLs to download the required additional java classes and so on. IOR can define multiple alternative addresses for the same object or indicate that the object is equal to null.

The IOR is a standard structure, transferred when sending an object with {@link org.omg.CORBA.portable.OutputStream#write_Object(org.omg.CORBA.Object)} and receiving with {@link org.omg.CORBA.portable.InputStream#read_Object()}. The stringified object references, managed by {@link org.omg.CORBA.ORB#string_to_object} and {@link org.omg.CORBA.ORB#object_to_string} are also IORs, where the initially binary data are encoded as strings using hexadecimal notation.

The IOR is represented as the object repository id, followed by the sequence of the abstract profiles, each having the integer type identifier and the followed array of binary data. The empty sequence of profiles represents a null object, written, for instance, in response to the call of write_Object(null).

UNKNOWN: GNU Classpath has its own implementation of IOR machinery at gnu.CORBA.IOR. The reason is that IORs are required from 1.2, but only in 1.4 the associated classes appear in the public API.

Field Summary
TaggedProfile[]profiles
The profiles, associated with this IOR reference.
Stringtype_id
The object repository Id.
Constructor Summary
IOR()
Create an unitialised instance of IOR profile.
IOR(String _type_id, TaggedProfile[] _profiles)
Create the IOR, initialised with the passed data.

Field Detail

profiles

public TaggedProfile[] profiles
The profiles, associated with this IOR reference. The possible profiles are listed in {@link TaggedProfile} description.

type_id

public String type_id
The object repository Id.

Constructor Detail

IOR

public IOR()
Create an unitialised instance of IOR profile.

UNKNOWN: The profile will be intialised to the IOR, representing a null object.

IOR

public IOR(String _type_id, TaggedProfile[] _profiles)
Create the IOR, initialised with the passed data.

Parameters: _type_id the repository id for this IOR object. _profiles the array of profiles for this IOR.