|
VisiBroker for Java |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.inprise.vbroker.naming.NamingUtil
public class NamingUtil
This class provides static methods that do stringified name to CosNaming name and vice versa transformation, without going over the wire as NamingContextExt does.
| Constructor Summary | |
|---|---|
NamingUtil()
|
|
| Method Summary | |
|---|---|
static NameComponent[] |
to_name(java.lang.String sn)
This operation accepts a stringified name and returns a Name. |
static java.lang.String |
to_string(NameComponent[] n)
The to_string() method converts a NameComponent array to a stringified name. |
static java.lang.String |
to_url(java.lang.String addr,
java.lang.String sn)
This operation takes a corbaloc URL <address> and <key_string> component such as :myhost.555xyz.com :myhost.555xyz.com/a/b/c atm:00002112...,:myhost.xyz.com/a/b/c for the first parameter, and a stringified name for the second. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamingUtil()
| Method Detail |
|---|
public static java.lang.String to_string(NameComponent[] n)
throws InvalidName
n - the NameComponent array
InvalidName
public static NameComponent[] to_name(java.lang.String sn)
throws InvalidName
sn - the stringified representation
InvalidName - if the stringified name
is syntactically malformed or violates an implementation limit.
public static java.lang.String to_url(java.lang.String addr,
java.lang.String sn)
throws InvalidName,
InvalidAddress
addr - A corbaloc URL componentsn - A stringified name
InvalidName
org.omg.CosNaming.NamingContextPackage.InvalidAddress
InvalidAddress
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||