| java.lang.Object com.caucho.naming.ContextImpl com.caucho.naming.DirContextImpl
DirContextImpl | public class DirContextImpl extends ContextImpl implements DirContext(Code) | | Resin's implementation of the JNDI DirContext .
The actual storage
of the persistent data is in the AbstractModel .
The DirContextImpl is just a Visitor around
the AbstractModel which also encapsulate
the JNDI environment.
In JNDI, each Context is a <model, env> pair.
Each client might pass a different environment
to the InitialContext so each ContextImpl
must be unique for each client. (Granted, this is a bit wasteful of
space which is why JNDI values should be cached.)
Applications which want a different model can still use
ContextImpl and specify the root
object for AbstractModel . ContextImpl will
take care of the JNDI API for the model.
|
Field Summary | |
protected static L10N | L | protected static Logger | log |
Method Summary | |
public void | bind(Name name, Object obj, Attributes attrs) | public void | bind(String name, Object obj, Attributes attrs) | protected ContextImpl | create(String name, AbstractModel model, Hashtable env) Creates a new instance of the ContextImpl . | public DirContext | createSubcontext(Name name, Attributes attrs) | public DirContext | createSubcontext(String name, Attributes attrs) | public Attributes | getAttributes(Name name) | public Attributes | getAttributes(String name) | public Attributes | getAttributes(Name name, String[] attrIds) | public Attributes | getAttributes(String name, String[] attrIds) | public DirContext | getSchema(Name name) | public DirContext | getSchema(String name) | public DirContext | getSchemaClassDefinition(Name name) | public DirContext | getSchemaClassDefinition(String name) | public void | modifyAttributes(Name name, int mod_op, Attributes attrs) | public void | modifyAttributes(String name, int mod_op, Attributes attrs) | public void | modifyAttributes(Name name, ModificationItem[] mods) | public void | modifyAttributes(String name, ModificationItem[] mods) | public void | rebind(Name name, Object obj, Attributes attrs) | public void | rebind(String name, Object obj, Attributes attrs) | public NamingEnumeration | search(Name name, Attributes attrs) | public NamingEnumeration | search(String name, Attributes attrs) | public NamingEnumeration | search(Name name, Attributes attrs, String[] args) | public NamingEnumeration | search(String name, Attributes attrs, String[] args) | public NamingEnumeration | search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) | public NamingEnumeration | search(String name, String filterExpr, Object[] filterArgs, SearchControls cons) | public NamingEnumeration | search(Name name, String filterExpr, SearchControls cons) | public NamingEnumeration | search(String name, String filterExpr, SearchControls cons) | public String | toString() Returns a string value. |
L | protected static L10N L(Code) | | |
DirContextImpl | public DirContextImpl(AbstractModel model, Hashtable env)(Code) | | Creates a DirContextImpl .
Parameters: model - The underlying storage node. Parameters: env - The client's JNDI environment. |
DirContextImpl | public DirContextImpl(String name, AbstractModel model, Hashtable env)(Code) | | Creates a DirContextImpl .
Parameters: name - JNDI name, used for error messages, etc. Parameters: model - The underlying storage node. Parameters: env - The client's JNDI environment. |
create | protected ContextImpl create(String name, AbstractModel model, Hashtable env)(Code) | | Creates a new instance of the ContextImpl . Subclasses will
override this method to return a new instance of the subclass.
Parameters: name - the JNDI name for the new context Parameters: model - the underlying storage node Parameters: env - the client's JNDI environment. a new instance of the implementing class. |
toString | public String toString()(Code) | | Returns a string value.
|
Methods inherited from com.caucho.naming.ContextImpl | public Object addToEnvironment(String prop, Object value) throws NamingException(Code)(Java Doc) public void bind(String name, Object obj) throws NamingException(Code)(Java Doc) public void bind(Name name, Object obj) throws NamingException(Code)(Java Doc) public void close() throws NamingException(Code)(Java Doc) public String composeName(String suffix, String prefix) throws NamingException(Code)(Java Doc) public Name composeName(Name suffix, Name prefix) throws NamingException(Code)(Java Doc) protected ContextImpl create(String name, AbstractModel model, Hashtable env)(Code)(Java Doc) final protected ContextImpl create(AbstractModel model, Hashtable env)(Code)(Java Doc) protected Context createSingleSubcontext(String name) throws NamingException(Code)(Java Doc) public Context createSubcontext(String name) throws NamingException(Code)(Java Doc) public Context createSubcontext(Name name) throws NamingException(Code)(Java Doc) protected void destroySingleSubcontext(String name) throws NamingException(Code)(Java Doc) public void destroySubcontext(String name) throws NamingException(Code)(Java Doc) public void destroySubcontext(Name name) throws NamingException(Code)(Java Doc) public Hashtable getEnvironment() throws NamingException(Code)(Java Doc) protected String getFullPath(String name)(Code)(Java Doc) protected String getFullPath(Name name)(Code)(Java Doc) public AbstractModel getModel()(Code)(Java Doc) public String getName()(Code)(Java Doc) public String getNameInNamespace() throws NamingException(Code)(Java Doc) public NameParser getNameParser(String name) throws NamingException(Code)(Java Doc) public NameParser getNameParser(Name name) throws NamingException(Code)(Java Doc) protected char getSeparator()(Code)(Java Doc) protected String getSeparatorString()(Code)(Java Doc) public NamingEnumeration list(String name) throws NamingException(Code)(Java Doc) public NamingEnumeration list(Name name) throws NamingException(Code)(Java Doc) public NamingEnumeration listBindings(String name) throws NamingException(Code)(Java Doc) public NamingEnumeration listBindings(Name name) throws NamingException(Code)(Java Doc) protected Iterator listSingle()(Code)(Java Doc) public Object lookup(String name) throws NamingException(Code)(Java Doc) public Object lookup(Name name) throws NamingException(Code)(Java Doc) protected Object lookupImpl(String name) throws NamingException(Code)(Java Doc) public Object lookupLink(String name) throws NamingException(Code)(Java Doc) public Object lookupLink(Name name) throws NamingException(Code)(Java Doc) protected Object lookupSingle(String name) throws NamingException(Code)(Java Doc) protected String parseFirst(String name) throws NamingException(Code)(Java Doc) protected String parseRest(String name) throws NamingException(Code)(Java Doc) public void rebind(String name, Object obj) throws NamingException(Code)(Java Doc) public void rebind(Name name, Object obj) throws NamingException(Code)(Java Doc) protected void rebindSingle(String name, Object obj) throws NamingException(Code)(Java Doc) public Object removeFromEnvironment(String prop) throws NamingException(Code)(Java Doc) public void rename(String oldName, String newName) throws NamingException(Code)(Java Doc) public void rename(Name oldName, Name newName) throws NamingException(Code)(Java Doc) public String toString()(Code)(Java Doc) public void unbind(String name) throws NamingException(Code)(Java Doc) public void unbind(Name name) throws NamingException(Code)(Java Doc) protected void unbindSingle(String name) throws NamingException(Code)(Java Doc)
|
|
|