KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > naming > Context

javax.naming
Interface Context

All Known Subinterfaces:
DirContext, EventContext, EventDirContext, LdapContext
All Known Implementing Classes:
InitialContext, InitialDirContext, InitialLdapContext
See Also:
Top Examples, Source Code, ClassLoader.getResources(), java.util.Properties, lookup

Object addToEnvironment(String propName,
                        Object propVal)
                        throws NamingException
See Also:
removeFromEnvironment(String), getEnvironment()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[196]Populate property hashtable with data to retrieve the context
By Anonymous on 2003/03/26 09:17:06  Rate
try  {  
   Hashtable ht = new Hashtable (  ) ; 
  
  
   //Populate property hashtable with data to retrieve the context. 
   ht.put ( Context.INITIAL_CONTEXT_FACTORY, icFactory ) ; 
   ht.put ( Context.PROVIDER_URL, providerUrl ) ; 
   return  ( new InitialContext ( ht )  ) ; 
  }  
 catch ( NamingException ne )   {  
   LogLog.error ( "InitialContext failed" ) ; 
   throw ne; 
  }  
  
  
 //addToEnvironment


static final String APPLET
See Also:
InitialContext, removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String AUTHORITATIVE
See Also:
removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String BATCHSIZE
See Also:
removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void bind(String name,
          Object obj)
          throws NamingException
See Also:
InvalidAttributesException, NameAlreadyBoundException, bind(Name, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void bind(Name name,
          Object obj)
          throws NamingException
See Also:
DirContext.bind(Name, Object, javax.naming.directory.Attributes), bind(String, Object), InvalidAttributesException, NameAlreadyBoundException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void close()
           throws NamingException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


String composeName(String name,
                   String prefix)
                   throws NamingException
See Also:
composeName(Name, Name)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Name composeName(Name name,
                 Name prefix)
                 throws NamingException
See Also:
composeName(String, String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Context createSubcontext(String name)
                         throws NamingException
See Also:
InvalidAttributesException, NameAlreadyBoundException, createSubcontext(Name)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Context createSubcontext(Name name)
                         throws NamingException
See Also:
DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes), createSubcontext(String), InvalidAttributesException, NameAlreadyBoundException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void destroySubcontext(String name)
                       throws NamingException
See Also:
ContextNotEmptyException, NotContextException, NameNotFoundException, destroySubcontext(Name)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void destroySubcontext(Name name)
                       throws NamingException
See Also:
destroySubcontext(String), ContextNotEmptyException, NotContextException, NameNotFoundException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String DNS_URL
See Also:
removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Hashtable<?,?> getEnvironment()
                              throws NamingException
See Also:
removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


String getNameInNamespace()
                          throws NamingException
See Also:
OperationNotSupportedException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


NameParser getNameParser(String name)
                         throws NamingException
See Also:
getNameParser(Name)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


NameParser getNameParser(Name name)
                         throws NamingException
See Also:
CompoundName, getNameParser(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String INITIAL_CONTEXT_FACTORY
See Also:
APPLET, removeFromEnvironment(String), addToEnvironment(String, Object), NoInitialContextException, InitialContextFactory, NamingManager.getInitialContext(java.util.Hashtable), InitialDirContext, InitialContext
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String LANGUAGE
See Also:
removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


NamingEnumeration<NameClassPair> list(String name)
                                      throws NamingException
See Also:
list(Name)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


NamingEnumeration<NameClassPair> list(Name name)
                                      throws NamingException
See Also:
listBindings(Name), list(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


NamingEnumeration<Binding> listBindings(String name)
                                        throws NamingException
See Also:
listBindings(Name)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


NamingEnumeration<Binding> listBindings(Name name)
                                        throws NamingException
See Also:
list(Name), listBindings(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Object lookup(String name)
              throws NamingException
See Also:
lookup(Name)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Object lookup(Name name)
              throws NamingException
See Also:
lookupLink(Name), lookup(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Object lookupLink(String name)
                  throws NamingException
See Also:
lookupLink(Name)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Object lookupLink(Name name)
                  throws NamingException
See Also:
lookupLink(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String OBJECT_FACTORIES
See Also:
APPLET, removeFromEnvironment(String), addToEnvironment(String, Object), ObjectFactory, NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String PROVIDER_URL
See Also:
APPLET, removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void rebind(String name,
            Object obj)
            throws NamingException
See Also:
InvalidAttributesException, rebind(Name, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void rebind(Name name,
            Object obj)
            throws NamingException
See Also:
DirContext, DirContext.rebind(Name, Object, javax.naming.directory.Attributes), bind(Name, Object), rebind(String, Object), InvalidAttributesException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String REFERRAL
See Also:
removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Object removeFromEnvironment(String propName)
                             throws NamingException
See Also:
addToEnvironment(String, Object), getEnvironment()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void rename(String oldName,
            String newName)
            throws NamingException
See Also:
NameAlreadyBoundException, rename(Name, Name)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void rename(Name oldName,
            Name newName)
            throws NamingException
See Also:
rebind(Name, Object), bind(Name, Object), rename(String, String), NameAlreadyBoundException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String SECURITY_AUTHENTICATION
See Also:
removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String SECURITY_CREDENTIALS
See Also:
removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String SECURITY_PRINCIPAL
See Also:
removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String SECURITY_PROTOCOL
See Also:
removeFromEnvironment(String), addToEnvironment(String, Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String STATE_FACTORIES
See Also:
APPLET, removeFromEnvironment(String), addToEnvironment(String, Object), StateFactory, NamingManager.getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void unbind(String name)
            throws NamingException
See Also:
NameNotFoundException, unbind(Name)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void unbind(Name name)
            throws NamingException
See Also:
unbind(String), NameNotFoundException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


static final String URL_PKG_PREFIXES
See Also:
APPLET, removeFromEnvironment(String), addToEnvironment(String, Object), ObjectFactory, NamingManager.getURLContext(java.lang.String, java.util.Hashtable), NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags