org.mortbay.naming.java
Class javaRootURLContext
java.lang.Object
org.mortbay.naming.java.javaRootURLContext
- All Implemented Interfaces:
- Context
public class javaRootURLContext
- extends Object
- implements Context
javaRootURLContext
This is the root of the java: url namespace
Notes
Thanks to Rickard Oberg for the idea of binding an ObjectFactory at "comp".
Usage
Fields inherited from interface javax.naming.Context |
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URL_PREFIX
public static final String URL_PREFIX
- See Also:
- Constant Field Values
_env
protected Hashtable _env
_nameRoot
protected static NamingContext _nameRoot
_javaNameParser
protected static NameParser _javaNameParser
javaRootURLContext
public javaRootURLContext(Hashtable env)
- Creates a new
javaRootURLContext
instance.
- Parameters:
env
- a Hashtable
value
lookup
public Object lookup(Name name)
throws NamingException
- Specified by:
lookup
in interface Context
- Throws:
NamingException
lookup
public Object lookup(String name)
throws NamingException
- Specified by:
lookup
in interface Context
- Throws:
NamingException
bind
public void bind(Name name,
Object obj)
throws NamingException
- Specified by:
bind
in interface Context
- Throws:
NamingException
bind
public void bind(String name,
Object obj)
throws NamingException
- Specified by:
bind
in interface Context
- Throws:
NamingException
unbind
public void unbind(String name)
throws NamingException
- Specified by:
unbind
in interface Context
- Throws:
NamingException
unbind
public void unbind(Name name)
throws NamingException
- Specified by:
unbind
in interface Context
- Throws:
NamingException
rename
public void rename(String oldStr,
String newStr)
throws NamingException
- Specified by:
rename
in interface Context
- Throws:
NamingException
rename
public void rename(Name oldName,
Name newName)
throws NamingException
- Specified by:
rename
in interface Context
- Throws:
NamingException
rebind
public void rebind(Name name,
Object obj)
throws NamingException
- Specified by:
rebind
in interface Context
- Throws:
NamingException
rebind
public void rebind(String name,
Object obj)
throws NamingException
- Specified by:
rebind
in interface Context
- Throws:
NamingException
lookupLink
public Object lookupLink(Name name)
throws NamingException
- Specified by:
lookupLink
in interface Context
- Throws:
NamingException
lookupLink
public Object lookupLink(String name)
throws NamingException
- Specified by:
lookupLink
in interface Context
- Throws:
NamingException
createSubcontext
public Context createSubcontext(Name name)
throws NamingException
- Specified by:
createSubcontext
in interface Context
- Throws:
NamingException
createSubcontext
public Context createSubcontext(String name)
throws NamingException
- Specified by:
createSubcontext
in interface Context
- Throws:
NamingException
destroySubcontext
public void destroySubcontext(Name name)
throws NamingException
- Specified by:
destroySubcontext
in interface Context
- Throws:
NamingException
destroySubcontext
public void destroySubcontext(String name)
throws NamingException
- Specified by:
destroySubcontext
in interface Context
- Throws:
NamingException
list
public NamingEnumeration list(Name name)
throws NamingException
- Specified by:
list
in interface Context
- Throws:
NamingException
list
public NamingEnumeration list(String name)
throws NamingException
- Specified by:
list
in interface Context
- Throws:
NamingException
listBindings
public NamingEnumeration listBindings(Name name)
throws NamingException
- Specified by:
listBindings
in interface Context
- Throws:
NamingException
listBindings
public NamingEnumeration listBindings(String name)
throws NamingException
- Specified by:
listBindings
in interface Context
- Throws:
NamingException
composeName
public Name composeName(Name name,
Name prefix)
throws NamingException
- Specified by:
composeName
in interface Context
- Throws:
NamingException
composeName
public String composeName(String name,
String prefix)
throws NamingException
- Specified by:
composeName
in interface Context
- Throws:
NamingException
close
public void close()
throws NamingException
- Specified by:
close
in interface Context
- Throws:
NamingException
getNameInNamespace
public String getNameInNamespace()
throws NamingException
- Specified by:
getNameInNamespace
in interface Context
- Throws:
NamingException
getNameParser
public NameParser getNameParser(Name name)
throws NamingException
- Specified by:
getNameParser
in interface Context
- Throws:
NamingException
getNameParser
public NameParser getNameParser(String name)
throws NamingException
- Specified by:
getNameParser
in interface Context
- Throws:
NamingException
addToEnvironment
public Object addToEnvironment(String propName,
Object propVal)
throws NamingException
- Specified by:
addToEnvironment
in interface Context
- Throws:
NamingException
removeFromEnvironment
public Object removeFromEnvironment(String propName)
throws NamingException
- Specified by:
removeFromEnvironment
in interface Context
- Throws:
NamingException
getEnvironment
public Hashtable getEnvironment()
- Specified by:
getEnvironment
in interface Context
getRoot
protected NamingContext getRoot()
stripProtocol
protected Name stripProtocol(Name name)
throws NamingException
- Throws:
NamingException
stripProtocol
protected String stripProtocol(String name)
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.