|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openorb.util.NamingUtils
The functions in this class perform various translations on stringified CosNaming names.
Constructor Summary | |
NamingUtils()
|
Method Summary | |
static java.lang.String |
decodeRFC2396(java.lang.String enc)
Decodes a RFC2396 encoded string. |
static void |
deepBind(NamingContext context,
NameComponent[] name,
Object obj)
Deprecated. This method uses interfaces from the CosNaming module. Which results in an implicit dependency to the naming service. This dependency is going to be removed in the future. |
static void |
deepBind(NamingContext context,
java.lang.String name,
Object obj)
Deprecated. This method uses interfaces from the CosNaming module. Which results in an implicit dependency to the naming service. This dependency is going to be removed in the future. |
static void |
deepRebind(NamingContext context,
NameComponent[] name,
Object obj)
Deprecated. This method uses interfaces from the CosNaming module. Which results in an implicit dependency to the naming service. This dependency is going to be removed in the future. |
static void |
deepRebind(NamingContext context,
java.lang.String name,
Object obj)
Deprecated. This method uses interfaces from the CosNaming module. Which results in an implicit dependency to the naming service. This dependency is going to be removed in the future. |
static java.lang.String |
encodeRFC2396(java.lang.String str)
Encodes a string according to RFC2396. |
static NameComponent[] |
parent(NameComponent[] name)
Deprecated. This method uses interfaces from the CosNaming module. Which results in an implicit dependency to the naming service. This dependency is going to be removed in the future. |
static java.lang.String |
parent(java.lang.String name)
Deprecated. This method uses interfaces from the CosNaming module. Which results in an implicit dependency to the naming service. This dependency is going to be removed in the future. |
static NamingContext |
resolveOrCreateContext(NamingContext context,
NameComponent[] name)
Deprecated. This method uses interfaces from the CosNaming module. Which results in an implicit dependency to the naming service. This dependency is going to be removed in the future. |
static NameComponent[] |
to_name(java.lang.String sn)
Deprecated. This method uses interfaces from the CosNaming module. Which results in an implicit dependency to the naming service. This dependency is going to be removed in the future. Additionally this method is part of the NamingContextExt package and there is no reason for duplicating it here. |
static java.lang.String |
to_string(NameComponent[] n)
Deprecated. This method uses interfaces from the CosNaming module. Which results in an implicit dependency to the naming service. This dependency is going to be removed in the future. Additionally this method is part of the NamingContextExt package and there is no reason for duplicating it here. |
static java.lang.String |
to_url(java.lang.String addr,
java.lang.String sn)
Deprecated. This method uses interfaces from the CosNaming module. Which results in an implicit dependency to the naming service. This dependency is going to be removed in the future. Additionally this method is part of the NamingContextExt package and there is no reason for duplicating it here. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NamingUtils()
Method Detail |
public static java.lang.String encodeRFC2396(java.lang.String str) throws java.io.UnsupportedEncodingException
str
- The string to encode.java.io.UnsupportedEncodingException
- When the string can't be converted
into UTF-8 format.public static java.lang.String decodeRFC2396(java.lang.String enc) throws java.io.UnsupportedEncodingException
enc
- The string to encode.java.io.UnsupportedEncodingException
- java.lang.NumberFormatException
- public static void deepBind(NamingContext context, java.lang.String name, Object obj) throws InvalidName, NotFound, CannotProceed, AlreadyBound
context
- The name context root.name
- The nameobj
- The object to bind.InvalidName
- invalid nameNotFound
- context not foundCannotProceed
- canno bindAlreadyBound
- name already boundpublic static void deepBind(NamingContext context, NameComponent[] name, Object obj) throws InvalidName, NotFound, CannotProceed, AlreadyBound
context
- The name context root.name
- The nameobj
- The object to bind.InvalidName
- if the name is invalidNotFound
- context not foundCannotProceed
- if the binding cannot be completedAlreadyBound
- if already boundpublic static void deepRebind(NamingContext context, java.lang.String name, Object obj) throws InvalidName, NotFound, CannotProceed
context
- The name context root.name
- The nameobj
- The object to bind.InvalidName
- if the name is invalidNotFound
- if the context cannot be foundCannotProceed
- if the rebind conot proceedpublic static void deepRebind(NamingContext context, NameComponent[] name, Object obj) throws InvalidName, NotFound, CannotProceed
context
- The name context root.name
- The nameobj
- The object to bind.InvalidName
- if the name is invalidNotFound
- if the context cannot be foundCannotProceed
- if the bind conot proceedpublic static NamingContext resolveOrCreateContext(NamingContext context, NameComponent[] name) throws InvalidName, NotFound, CannotProceed
context
- The name context root.name
- The nameInvalidName
- if the name is invalidNotFound
- if the context cannot be foundCannotProceed
- if the resolve/context creation connot proceedpublic static NameComponent[] to_name(java.lang.String sn) throws InvalidName
sn
- the stringified name to transform to a name.InvalidName
- This exception is raised if the
stringified name is syntactically malformed or
violates an implementation limit.InvalidName
- if a name is invalidpublic static java.lang.String to_string(NameComponent[] n) throws InvalidName
n
- the name to stringified.InvalidName
- This exception is raised if the name is
invalid.InvalidName
- if a name is invalidpublic static java.lang.String to_url(java.lang.String addr, java.lang.String sn) throws InvalidAddress, InvalidName
addr
- the address ( for example myhost.xyz.com )sn
- the stringified name to add to the URLInvalidAddress
- This exception is raised if an address
is invalid ( it means that the address does not
respect the address format ).InvalidName
- This exception is raised if the
stringified name is syntactically malformed or
violates an implementation limit.public static NameComponent[] parent(NameComponent[] name)
name
- the name.public static java.lang.String parent(java.lang.String name)
name
- the name.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |