|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.david.libs.helpers.IORHelpers
This class contains utilies to manipulate Interoperable Object References.
| Constructor Summary | |
IORHelpers()
|
|
| Method Summary | |
static java.lang.String |
bytesToIORHexString(byte[] octet_stream)
Returns a stringified IOR. |
static java.lang.String |
forgeIOR(org.omg.CORBA.ORB orb,
java.lang.String rep_id,
byte[] key,
java.lang.String host,
int port)
Creates a stringified IOR with an IIOP profile. |
static byte[] |
IORHexStringToBytes(java.lang.String str)
Decodes a stringified IOR into an array of bytes encoding the IOR. |
static java.lang.String |
readIORFromFile(java.lang.String filename)
Reads an IOR from a file. |
static java.lang.String |
readIORFromURL(java.lang.String url)
Reads an IOR from a file whose location is specified by 'url'. |
static void |
writeIORToFile(java.lang.String ior,
java.lang.String filename)
Writes an IOR to a file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IORHelpers()
| Method Detail |
public static final java.lang.String forgeIOR(org.omg.CORBA.ORB orb,
java.lang.String rep_id,
byte[] key,
java.lang.String host,
int port)
throws org.objectweb.jonathan.apis.kernel.JonathanException
orb - an ORB instance;rep_id - the repository id of the interface referenced by the returned
IOR;key - the referenced object key;host - the name of the machine where the referenced object lives;port - the port to use to communicate with the referenced object.
org.objectweb.jonathan.apis.kernel.JonathanException - if something goes wrong.
public static final void writeIORToFile(java.lang.String ior,
java.lang.String filename)
throws java.io.IOException
ior - the IOR to write.filename - the name of the file.
java.io.IOException - if an IO Exception occurred;
public static final java.lang.String readIORFromFile(java.lang.String filename)
throws java.io.IOException
filename - the file name.
java.io.IOException - if an IO Exception occurred;
public static final java.lang.String readIORFromURL(java.lang.String url)
throws java.io.IOException
url - the url specifying the file location.
java.io.IOException - if an IO Exception occurred;public static final java.lang.String bytesToIORHexString(byte[] octet_stream)
octet_stream - a byte array encoding the IOR.
public static final byte[] IORHexStringToBytes(java.lang.String str)
str - a stringified IOR.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||