Package org.eclipse.jetty.jndi.java
Class javaRootURLContext
- java.lang.Object
-
- org.eclipse.jetty.jndi.java.javaRootURLContext
-
-
Field Summary
Fields Modifier and Type Field Description protected static NameParser__javaNameParserprotected static NamingContext__nameRootprotected Hashtable_envstatic StringURL_PREFIX-
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
-
-
Constructor Summary
Constructors Constructor Description javaRootURLContext(Hashtable env)Creates a newjavaRootURLContextinstance.
-
Method Summary
-
-
-
Field Detail
-
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
-
-
Constructor Detail
-
javaRootURLContext
public javaRootURLContext(Hashtable env)
Creates a newjavaRootURLContextinstance.- Parameters:
env- aHashtablevalue
-
-
Method Detail
-
lookup
public Object lookup(Name name) throws NamingException
- Specified by:
lookupin interfaceContext- Throws:
NamingException
-
lookup
public Object lookup(String name) throws NamingException
- Specified by:
lookupin interfaceContext- Throws:
NamingException
-
bind
public void bind(Name name, Object obj) throws NamingException
- Specified by:
bindin interfaceContext- Throws:
NamingException
-
bind
public void bind(String name, Object obj) throws NamingException
- Specified by:
bindin interfaceContext- Throws:
NamingException
-
unbind
public void unbind(String name) throws NamingException
- Specified by:
unbindin interfaceContext- Throws:
NamingException
-
unbind
public void unbind(Name name) throws NamingException
- Specified by:
unbindin interfaceContext- Throws:
NamingException
-
rename
public void rename(String oldStr, String newStr) throws NamingException
- Specified by:
renamein interfaceContext- Throws:
NamingException
-
rename
public void rename(Name oldName, Name newName) throws NamingException
- Specified by:
renamein interfaceContext- Throws:
NamingException
-
rebind
public void rebind(Name name, Object obj) throws NamingException
- Specified by:
rebindin interfaceContext- Throws:
NamingException
-
rebind
public void rebind(String name, Object obj) throws NamingException
- Specified by:
rebindin interfaceContext- Throws:
NamingException
-
lookupLink
public Object lookupLink(Name name) throws NamingException
- Specified by:
lookupLinkin interfaceContext- Throws:
NamingException
-
lookupLink
public Object lookupLink(String name) throws NamingException
- Specified by:
lookupLinkin interfaceContext- Throws:
NamingException
-
createSubcontext
public Context createSubcontext(Name name) throws NamingException
- Specified by:
createSubcontextin interfaceContext- Throws:
NamingException
-
createSubcontext
public Context createSubcontext(String name) throws NamingException
- Specified by:
createSubcontextin interfaceContext- Throws:
NamingException
-
destroySubcontext
public void destroySubcontext(Name name) throws NamingException
- Specified by:
destroySubcontextin interfaceContext- Throws:
NamingException
-
destroySubcontext
public void destroySubcontext(String name) throws NamingException
- Specified by:
destroySubcontextin interfaceContext- Throws:
NamingException
-
list
public NamingEnumeration list(Name name) throws NamingException
- Specified by:
listin interfaceContext- Throws:
NamingException
-
list
public NamingEnumeration list(String name) throws NamingException
- Specified by:
listin interfaceContext- Throws:
NamingException
-
listBindings
public NamingEnumeration listBindings(Name name) throws NamingException
- Specified by:
listBindingsin interfaceContext- Throws:
NamingException
-
listBindings
public NamingEnumeration listBindings(String name) throws NamingException
- Specified by:
listBindingsin interfaceContext- Throws:
NamingException
-
composeName
public Name composeName(Name name, Name prefix) throws NamingException
- Specified by:
composeNamein interfaceContext- Throws:
NamingException
-
composeName
public String composeName(String name, String prefix) throws NamingException
- Specified by:
composeNamein interfaceContext- Throws:
NamingException
-
close
public void close() throws NamingException- Specified by:
closein interfaceContext- Throws:
NamingException
-
getNameInNamespace
public String getNameInNamespace() throws NamingException
- Specified by:
getNameInNamespacein interfaceContext- Throws:
NamingException
-
getNameParser
public NameParser getNameParser(Name name) throws NamingException
- Specified by:
getNameParserin interfaceContext- Throws:
NamingException
-
getNameParser
public NameParser getNameParser(String name) throws NamingException
- Specified by:
getNameParserin interfaceContext- Throws:
NamingException
-
addToEnvironment
public Object addToEnvironment(String propName, Object propVal) throws NamingException
- Specified by:
addToEnvironmentin interfaceContext- Throws:
NamingException
-
removeFromEnvironment
public Object removeFromEnvironment(String propName) throws NamingException
- Specified by:
removeFromEnvironmentin interfaceContext- Throws:
NamingException
-
getEnvironment
public Hashtable getEnvironment()
- Specified by:
getEnvironmentin interfaceContext
-
getRoot
public static NamingContext getRoot()
-
stripProtocol
protected Name stripProtocol(Name name) throws NamingException
- Throws:
NamingException
-
-