Class NamingUtil
java.lang.Object
org.eclipse.jetty.util.jndi.NamingUtil
Naming Utility Methods
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic ContextBind an object to a context ensuring all sub-contexts are created if necessaryflattenBindings(Context ctx, String name) Do a deep listing of the bindings for a context.static voidstatic 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
 - 
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
 
 -