| java.lang.Object winstone.jndi.WinstoneContext
WinstoneContext | public class WinstoneContext implements Context(Code) | | The main jndi context implementation class.
author: Rick Knowles version: $Id: WinstoneContext.java,v 1.3 2006/02/28 07:32:48 rickknowles Exp $ |
Method Summary | |
public Object | addToEnvironment(String property, Object value) | public void | bind(String name, Object value) Below here is for read-write contexts ... | public void | bind(Name name, Object value) | protected void | bind(Name name, Object value, boolean allowOverwrites) | public void | close() | public String | composeName(String name1, String name2) | public Name | composeName(Name name1, Name name2) | public Context | createSubcontext(String name) | public Context | createSubcontext(Name name) | public void | destroySubcontext(String name) | public void | destroySubcontext(Name name) | public Hashtable | getEnvironment() | public String | getNameInNamespace() | public NameParser | getNameParser(Name name) | public NameParser | getNameParser(String name) | public NamingEnumeration | list(Name name) | public NamingEnumeration | list(String name) | public NamingEnumeration | listBindings(Name name) | public NamingEnumeration | listBindings(String name) | public Object | lookup(Name name) Lookup an object in the context. | public Object | lookup(String name) | public Object | lookupLink(Name name) | public Object | lookupLink(String name) | public void | rebind(String name, Object value) | public void | rebind(Name name, Object value) | public Object | removeFromEnvironment(String property) | public void | rename(Name oldName, Name newName) | public void | rename(String oldName, String newName) | public void | unbind(String name) | public void | unbind(Name name) | protected Name | validateName(Name name) Handles the processing of relative and absolute names. |
lookup | public Object lookup(Name name) throws NamingException(Code) | | Lookup an object in the context. Returns a copy of this context if the
name is empty, or the specified resource (if we have it). If the name is
unknown, throws a NameNotFoundException.
|
validateName | protected Name validateName(Name name) throws NamingException(Code) | | Handles the processing of relative and absolute names. If a relative name
is detected, it is processed by the name parser. If an absolute name is
detected, it determines first if the absolute name refers to this
context. If not, it then determines whether the request can be passed
back to the parent or not, and returns null if it can, and throws an
exception otherwise.
|
|
|