Package org.eclipse.jetty.jndi
Class NamingUtil
java.lang.Object
org.eclipse.jetty.jndi.NamingUtil
Naming Utility Methods
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Context
Bind an object to a context ensuring all sub-contexts are created if necessarystatic Map
flattenBindings
(Context ctx, String name) Do a deep listing of the bindings for a context.static void
-
Constructor Details
-
NamingUtil
public NamingUtil()
-
-
Method Details
-
bind
Bind an object to a context ensuring all sub-contexts are created if necessary- Parameters:
ctx
- the context into which to bindnameStr
- the name relative to context to bindobj
- the object to be bound- Returns:
- the bound context
- Throws:
NamingException
- if an error occurs
-
unbind
- Throws:
NamingException
-
flattenBindings
Do a deep listing of the bindings for a context.- Parameters:
ctx
- the context containing the name for which to list the bindingsname
- the name in the context to list- Returns:
- map: key is fully qualified name, value is the bound object
- Throws:
NamingException
- if unable to flatten bindings
-