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
NamingException
public String getNameInNamespace() throws NamingException
getNameInNamespace
in interface Context
NamingException
public Object lookup(String name) throws NamingException
lookup
in interface Context
name
- string used to resolve the object.NamingException
- See callResolve.public Object lookup(Name name) throws NamingException
lookup
in interface Context
name
- JNDI Name used to resolve the object.NamingException
- See callResolve.public void bind(Name name, Object obj) throws NamingException
bind
in interface Context
name
- JNDI Name objectobj
- Object to be bound.NamingException
- See callBindOrRebindpublic void bind(String name, Object obj) throws NamingException
bind
in interface Context
name
- stringobj
- Object to be bound.NamingException
- See callBindOrRebindpublic void rebind(Name name, Object obj) throws NamingException
rebind
in interface Context
name
- stringobj
- Object to be bound.NamingException
- See callBindOrRebindpublic void rebind(String name, Object obj) throws NamingException
rebind
in interface Context
name
- stringobj
- Object to be bound.NamingException
- See callBindOrRebindpublic void unbind(String name) throws NamingException
unbind
in interface Context
name
- stringNamingException
- See callUnbindpublic void unbind(Name name) throws NamingException
unbind
in interface Context
name
- stringNamingException
- See callUnbindpublic void rename(String oldName, String newName) throws NamingException
rename
in interface Context
oldName
- 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 Context
oldName
- 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 Context
name
- stringNamingException
- All exceptions thrown by lookup
with a non-null argumentpublic NamingEnumeration list(Name name) throws NamingException
list
in interface Context
name
- JNDI NameNamingException
- All exceptions thrown by lookuppublic NamingEnumeration listBindings(String name) throws NamingException
listBindings
in interface Context
name
- stringNamingException
- all exceptions returned by lookuppublic NamingEnumeration listBindings(Name name) throws NamingException
listBindings
in interface Context
name
- JNDI NameNamingException
- all exceptions returned by lookup.public void destroySubcontext(String name) throws NamingException
destroySubcontext
in interface Context
name
- stringOperationNotSupportedException
- when list is invoked
with a non-null argumentNamingException
public void destroySubcontext(Name name) throws NamingException
destroySubcontext
in interface Context
name
- JNDI NameOperationNotSupportedException
- when list is invoked
with a non-null argumentNamingException
public Context createSubcontext(String name) throws NamingException
createSubcontext
in interface Context
name
- stringNamingException
- See callBindNewContextpublic Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface Context
name
- stringNamingException
- See callBindNewContextpublic Object lookupLink(String name) throws NamingException
lookupLink
in interface Context
name
- stringNamingException
- See lookup.public Object lookupLink(Name name) throws NamingException
lookupLink
in interface Context
name
- stringNamingException
- See lookup.public NameParser getNameParser(String name) throws NamingException
getNameParser
in interface Context
name,
- is ignored since there is only one Name
Parser object.NamingException
- --public NameParser getNameParser(Name name) throws NamingException
getNameParser
in interface Context
name
- JNDI name, is ignored since there is only one Name
Parser object.NamingException
- --public Hashtable getEnvironment() throws NamingException
getEnvironment
in interface Context
NamingException
public String composeName(String name, String prefix) throws NamingException
composeName
in interface Context
NamingException
public Name composeName(Name name, Name prefix) throws NamingException
composeName
in interface Context
NamingException
public Object addToEnvironment(String propName, Object propValue) throws NamingException
addToEnvironment
in interface Context
propName
- The property name.propValue
- The ORB.NamingException
public Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment
in interface Context
NamingException
public void close() throws NamingException
close
in interface Context
NamingException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.