java.lang.Object
javax.naming.InitialContext
- All Implemented Interfaces:
- Context
- Direct Known Subclasses:
- InitialDirContext
- See Also:
- Top Examples, Source Code,
NamingManager.getURLContext()
, java.naming.factory.initial
, Context.APPLET
,
NamingManager.setInitialContextFactoryBuilder
public Object addToEnvironment(String propName,
Object propVal)
throws NamingException
- See Also:
Context.removeFromEnvironment(String)
, Context.getEnvironment()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void bind(String name,
Object obj)
throws NamingException
- See Also:
- InvalidAttributesException, NameAlreadyBoundException, Context,
Context.bind(Name, Object)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void bind(Name name,
Object obj)
throws NamingException
- See Also:
DirContext.bind(Name, Object,
javax.naming.directory.Attributes)
, Context.bind(String, Object)
, InvalidAttributesException, NameAlreadyBoundException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void close()
throws NamingException
- See Also:
- Context
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String composeName(String name,
String prefix)
throws NamingException
- See Also:
- Context
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Name composeName(Name name,
Name prefix)
throws NamingException
- See Also:
Context.composeName(String, String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Context createSubcontext(String name)
throws NamingException
- See Also:
- InvalidAttributesException, NameAlreadyBoundException,
Context.createSubcontext(Name)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Context createSubcontext(Name name)
throws NamingException
- See Also:
DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes)
, Context.createSubcontext(String)
, InvalidAttributesException, NameAlreadyBoundException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Context defaultInitCtx
- See Also:
getDefaultInitCtx()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void destroySubcontext(String name)
throws NamingException
- See Also:
- ContextNotEmptyException, NotContextException, NameNotFoundException, Context,
Context.destroySubcontext(Name)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void destroySubcontext(Name name)
throws NamingException
- See Also:
Context.destroySubcontext(String)
, ContextNotEmptyException, NotContextException, NameNotFoundException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Context getDefaultInitCtx()
throws NamingException
- See Also:
- NoInitialContextException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Hashtable<?,?> getEnvironment()
throws NamingException
- See Also:
Context.removeFromEnvironment(String)
, Context.addToEnvironment(String, Object)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getNameInNamespace()
throws NamingException
- See Also:
- OperationNotSupportedException, Context
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public NameParser getNameParser(String name)
throws NamingException
- See Also:
- Context,
Context.getNameParser(Name)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public NameParser getNameParser(Name name)
throws NamingException
- See Also:
CompoundName
, Context.getNameParser(String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Context getURLOrDefaultInitCtx(String name)
throws NamingException
- See Also:
NamingManager.getURLContext(java.lang.String, java.util.Hashtable, ?>)
, NoInitialContextException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Context getURLOrDefaultInitCtx(Name name)
throws NamingException
- See Also:
NamingManager.getURLContext(java.lang.String, java.util.Hashtable, ?>)
, NoInitialContextException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected boolean gotDefault
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected void init(Hashtable<?,?> environment)
throws NamingException
- See Also:
InitialContext(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public InitialContext()
throws NamingException
- See Also:
InitialContext(Hashtable)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected InitialContext(boolean lazy)
throws NamingException
- See Also:
init(Hashtable)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public InitialContext(Hashtable<?,?> environment)
throws NamingException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[28]getInitialContext with user name and password
By Anonymous on 2003/12/19 14:48:27 Rate
...
Context ctx = getInitialContext ( "t3://localhost:7001", "user1", "user1Password" ) ;
...
static Context getInitialContext ( String url, String user, String password ) {
Properties h = new Properties ( ) ;
h.put ( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" ) ;
h.put ( Context.PROVIDER_URL, url ) ;
h.put ( Context.SECURITY_PRINCIPAL, user ) ;
return new InitialContext ( h ) ;
}
[1730]password?
By Anonymous on 2006/03/17 11:01:12 Rate
how is password used here?
public NamingEnumeration<NameClassPair> list(String name)
throws NamingException
- See Also:
- Context,
Context.list(Name)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public NamingEnumeration<NameClassPair> list(Name name)
throws NamingException
- See Also:
-
Context.listBindings(Name)
, Context.list(String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public NamingEnumeration<Binding> listBindings(String name)
throws NamingException
- See Also:
- Context,
Context.listBindings(Name)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public NamingEnumeration<Binding> listBindings(Name name)
throws NamingException
- See Also:
-
Context.list(Name)
, Context.listBindings(String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Object lookup(String name)
throws NamingException
- See Also:
- Context,
Context.lookup(Name)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Object lookup(Name name)
throws NamingException
- See Also:
Context.lookupLink(Name)
, Context.lookup(String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Object lookupLink(String name)
throws NamingException
- See Also:
- Context,
Context.lookupLink(Name)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Object lookupLink(Name name)
throws NamingException
- See Also:
Context.lookupLink(String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Hashtable<Object,Object> myProps
- See Also:
getEnvironment()
, removeFromEnvironment(java.lang.String)
, addToEnvironment(java.lang.String, java.lang.Object)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void rebind(String name,
Object obj)
throws NamingException
- See Also:
- InvalidAttributesException, Context,
Context.rebind(Name, Object)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void rebind(Name name,
Object obj)
throws NamingException
- See Also:
DirContext
, DirContext.rebind(Name, Object,
javax.naming.directory.Attributes)
, Context.bind(Name, Object)
, Context.rebind(String, Object)
, InvalidAttributesException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Object removeFromEnvironment(String propName)
throws NamingException
- See Also:
Context.addToEnvironment(String, Object)
, Context.getEnvironment()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void rename(String oldName,
String newName)
throws NamingException
- See Also:
- NameAlreadyBoundException, Context,
Context.rename(Name, Name)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void rename(Name oldName,
Name newName)
throws NamingException
- See Also:
Context.rebind(Name, Object)
, Context.bind(Name, Object)
, Context.rename(String, String)
, NameAlreadyBoundException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void unbind(String name)
throws NamingException
- See Also:
- NameNotFoundException, Context,
Context.unbind(Name)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void unbind(Name name)
throws NamingException
- See Also:
Context.unbind(String)
, NameNotFoundException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples