| Modifier and Type | Field and Description |
|---|---|
NamingContext |
_nc |
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| Modifier and Type | Method and Description |
|---|---|
Object |
addToEnvironment(String propName,
Object propValue)
Adds to the environment for the current context.
|
void |
bind(Name name,
Object obj)
Converts the "Name" name into a NameComponent[] object and
performs the bind operation.
|
void |
bind(String name,
Object obj)
Converts the "String" name into a CompositeName object and
performs the bind operation.
|
void |
close() |
Name |
composeName(Name name,
Name prefix) |
String |
composeName(String name,
String prefix) |
Context |
createSubcontext(Name name)
Uses the callBindNewContext convenience function to create a new
context.
|
Context |
createSubcontext(String name)
Uses the callBindNewContext convenience function to create a new
context.
|
static ResolveResult |
createUsingURL(String url,
Hashtable env)
This method is used by the iiop and iiopname URL Context factories.
|
void |
destroySubcontext(Name name)
Uses the callDestroy function to destroy the context.
|
void |
destroySubcontext(String name)
Uses the callDestroy function to destroy the context.
|
protected void |
finalize() |
Hashtable |
getEnvironment()
Returns the current environment.
|
String |
getNameInNamespace() |
NameParser |
getNameParser(Name name)
Allow access to the name parser object.
|
NameParser |
getNameParser(String name)
Allow access to the name parser object.
|
NamingEnumeration |
list(Name name)
Returns a NameClassEnumeration object which has a list of name
class pairs.
|
NamingEnumeration |
list(String name)
Returns a NameClassEnumeration object which has a list of name
class pairs.
|
NamingEnumeration |
listBindings(Name name)
Returns a BindingEnumeration object which has a list of name
class pairs.
|
NamingEnumeration |
listBindings(String name)
Returns a BindingEnumeration object which has a list of name
object pairs.
|
Object |
lookup(Name name)
Converts the "Name" name into a NameComponent[] object and
returns the object resolved by the COS Naming api,
resolve.
|
Object |
lookup(String name)
Converts the "String" name into a CompositeName
returns the object resolved by the COS Naming api,
resolve.
|
Object |
lookupLink(Name name)
Is mapped to resolve in the COS Naming api.
|
Object |
lookupLink(String name)
Is mapped to resolve in the COS Naming api.
|
void |
rebind(Name name,
Object obj)
Converts the "Name" name into a NameComponent[] object and
performs the rebind operation.
|
void |
rebind(String name,
Object obj)
Converts the "String" name into a CompositeName object and
performs the rebind operation.
|
Object |
removeFromEnvironment(String propName) |
void |
rename(Name oldName,
Name newName)
Renames an object.
|
void |
rename(String oldName,
String newName)
Renames an object.
|
void |
unbind(Name name)
Converts the "Name" name into a NameComponent[] object and
performs the unbind operation.
|
void |
unbind(String name)
Converts the "String" name into a CompositeName object and
performs the unbind operation.
|
public NamingContext _nc
public static ResolveResult createUsingURL(String url, Hashtable env) throws NamingException
NamingExceptionpublic String getNameInNamespace() throws NamingException
getNameInNamespace in interface ContextNamingExceptionpublic Object lookup(String name) throws NamingException
lookup in interface Contextname - string used to resolve the object.NamingException - See callResolve.public Object lookup(Name name) throws NamingException
lookup in interface Contextname - JNDI Name used to resolve the object.NamingException - See callResolve.public void bind(Name name, Object obj) throws NamingException
bind in interface Contextname - JNDI Name objectobj - Object to be bound.NamingException - See callBindOrRebindpublic void bind(String name, Object obj) throws NamingException
bind in interface Contextname - stringobj - Object to be bound.NamingException - See callBindOrRebindpublic void rebind(Name name, Object obj) throws NamingException
rebind in interface Contextname - stringobj - Object to be bound.NamingException - See callBindOrRebindpublic void rebind(String name, Object obj) throws NamingException
rebind in interface Contextname - stringobj - Object to be bound.NamingException - See callBindOrRebindpublic void unbind(String name) throws NamingException
unbind in interface Contextname - stringNamingException - See callUnbindpublic void unbind(Name name) throws NamingException
unbind in interface Contextname - stringNamingException - See callUnbindpublic void rename(String oldName, String newName) throws NamingException
rename in interface ContextoldName - string, existing name for the binding.newName - string, name used to replace.NamingException - See bindpublic void rename(Name oldName, Name newName) throws NamingException
rename in interface ContextoldName - JNDI Name, existing name for the binding.newName - JNDI Name, name used to replace.NamingException - See bindpublic NamingEnumeration list(String name) throws NamingException
list in interface Contextname - stringNamingException - All exceptions thrown by lookup
with a non-null argumentpublic NamingEnumeration list(Name name) throws NamingException
list in interface Contextname - JNDI NameNamingException - All exceptions thrown by lookuppublic NamingEnumeration listBindings(String name) throws NamingException
listBindings in interface Contextname - stringNamingException - all exceptions returned by lookuppublic NamingEnumeration listBindings(Name name) throws NamingException
listBindings in interface Contextname - JNDI NameNamingException - all exceptions returned by lookup.public void destroySubcontext(String name) throws NamingException
destroySubcontext in interface Contextname - stringOperationNotSupportedException - when list is invoked
with a non-null argumentNamingExceptionpublic void destroySubcontext(Name name) throws NamingException
destroySubcontext in interface Contextname - JNDI NameOperationNotSupportedException - when list is invoked
with a non-null argumentNamingExceptionpublic Context createSubcontext(String name) throws NamingException
createSubcontext in interface Contextname - stringNamingException - See callBindNewContextpublic Context createSubcontext(Name name) throws NamingException
createSubcontext in interface Contextname - stringNamingException - See callBindNewContextpublic Object lookupLink(String name) throws NamingException
lookupLink in interface Contextname - stringNamingException - See lookup.public Object lookupLink(Name name) throws NamingException
lookupLink in interface Contextname - stringNamingException - See lookup.public NameParser getNameParser(String name) throws NamingException
getNameParser in interface Contextname, - is ignored since there is only one Name
Parser object.NamingException - --public NameParser getNameParser(Name name) throws NamingException
getNameParser in interface Contextname - JNDI name, is ignored since there is only one Name
Parser object.NamingException - --public Hashtable getEnvironment() throws NamingException
getEnvironment in interface ContextNamingExceptionpublic String composeName(String name, String prefix) throws NamingException
composeName in interface ContextNamingExceptionpublic Name composeName(Name name, Name prefix) throws NamingException
composeName in interface ContextNamingExceptionpublic Object addToEnvironment(String propName, Object propValue) throws NamingException
addToEnvironment in interface ContextpropName - The property name.propValue - The ORB.NamingExceptionpublic Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment in interface ContextNamingExceptionpublic void close()
throws NamingException
close in interface ContextNamingExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.