|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.util.ContextUtils
This class contains some static helper methods for jndi context operations
| Constructor Summary | |
ContextUtils()
|
|
| Method Summary | |
static void |
creationBind(javax.naming.Context con,
java.lang.String name,
java.lang.Object object)
Do a bind and attempt to create all non-existent subcontexts needed by the name. |
static void |
creationRebind(javax.naming.Context con,
java.lang.String name,
java.lang.Object object)
Do a rebind and attempt to create all non-existent subcontexts needed by the name. |
static boolean |
isBound(javax.naming.Context con,
java.lang.String name)
Check if a name is bound in the context. |
static java.lang.Object |
nullReturnLookup(javax.naming.Context con,
java.lang.String name)
Do a lookup for a name and return null if the name is not bound to an object in the context. |
static javax.naming.Context |
subcontextCreation(javax.naming.Context con,
java.lang.String name)
Create subcontext plus all intermediate contexts. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContextUtils()
| Method Detail |
public static boolean isBound(javax.naming.Context con,
java.lang.String name)
throws javax.naming.NamingException
name - Name to check for
javax.naming.NamingException - On naming errors
public static java.lang.Object nullReturnLookup(javax.naming.Context con,
java.lang.String name)
throws javax.naming.NamingException
NameNotFoundExceptions and
NotContextExceptions in the name of simplicity.
name - Name to lookup
javax.naming.NamingException - On naming errors
public static javax.naming.Context subcontextCreation(javax.naming.Context con,
java.lang.String name)
throws javax.naming.NamingException
name - Subcontext name to create
javax.naming.NamingException - If the subcontext creation fails
public static void creationBind(javax.naming.Context con,
java.lang.String name,
java.lang.Object object)
throws javax.naming.NamingException
name - Name to bind toobject - Object to bind
javax.naming.NamingException - On naming errors
public static void creationRebind(javax.naming.Context con,
java.lang.String name,
java.lang.Object object)
throws javax.naming.NamingException
name - Name to bind toobject - Object to bind
javax.naming.NamingException - On naming errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||