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
Constructor and Description |
---|
jrmiURLContext(Hashtable env)
Creates a Jeremie registry URL context with the given environment.
|
Modifier and Type | Method and Description |
---|---|
Object |
addToEnvironment(String propName,
Object propVal)
Sets the value of a property in the current URL context's environment.
|
void |
bind(Name name,
Object obj)
Binds the given object under the name and in the Jeremie registry
indicated by the given URL name.
|
void |
bind(String name,
Object obj)
Binds the given object under the name and in the Jeremie registry
indicated by the given URL string.
|
void |
close()
Closes this URL context.
|
Name |
composeName(Name name,
Name prefix)
Composes two names, one being relative to the current context, the other
being the name of the current context relative to one of its ancestors.
|
String |
composeName(String name,
String prefix)
Composes two stringified names, one being relative to the current context,
the other being the stringified name of the current context relative to
one of its ancestors.
|
Context |
createSubcontext(Name name)
Subcontexts are not supported by Jeremie registry URL contexts.
|
Context |
createSubcontext(String name)
Subcontexts are not supported by Jeremie registry URL contexts.
|
void |
destroySubcontext(Name name)
Subcontexts are not supported by Jeremie registry URL contexts.
|
void |
destroySubcontext(String name)
Subcontexts are not supported by Jeremie registry URL contexts.
|
Hashtable |
getEnvironment()
Returns the environment of the current URL context.
|
String |
getNameInNamespace()
Retrieves the full name of the current context within its own namespace,
in other words, the empty string "".
|
NameParser |
getNameParser(Name name)
Retrieves the name parser of the Jeremie registry context indicated by the
given URL name.
|
NameParser |
getNameParser(String name)
Retrieves the name parser of the Jeremie registry context indicated by the
given URL string.
|
NamingEnumeration |
list(Name name)
Enumerates the names and the class names of the objects that they are
bound to in the Jeremie registry indicated by the given URL name.
|
NamingEnumeration |
list(String name)
Enumerates the names and the class names of the objects that they are
bound to in the Jeremie registry indicated by the given URL string.
|
NamingEnumeration |
listBindings(Name name)
Enumerates the names and objects that they are bound to in the Jeremie
registry indicated by the given URL name.
|
NamingEnumeration |
listBindings(String name)
Enumerates the names and objects that they are bound to in the Jeremie
registry indicated by the given URL string.
|
Object |
lookup(Name name)
Retrieves the object bound under the name and in the Jeremie registry
indicated by the given URL name.
|
Object |
lookup(String name)
Retrieves the object bound under the name and in the Jeremie registry
indicated by the given URL string.
|
Object |
lookupLink(Name name)
Links are not treated specially by Jeremie registry URL contexts.
|
Object |
lookupLink(String name)
Links are not treated specially by Jeremie registry URL contexts.
|
void |
rebind(Name name,
Object obj)
Rebinds the given object under the name and in the Jeremie registry
indicated by the given URL name.
|
void |
rebind(String name,
Object obj)
Rebinds the given object under the name and in the Jeremie registry
indicated by the given URL string.
|
Object |
removeFromEnvironment(String propName)
Undefines the value of a property in the current URL context's environment.
|
void |
rename(Name oldname,
Name newname)
Renames a name in a Jeremie registry as indicated by the given URL names.
|
void |
rename(String oldname,
String newname)
Renames a name in a Jeremie registry as indicated by the given URL strings.
|
void |
unbind(Name name)
Unbinds a name from a Jeremie registry as indicated by the given URL name.
|
void |
unbind(String name)
Unbinds a name from a Jeremie registry as indicated by the given URL string.
|
public jrmiURLContext(Hashtable env) throws NamingException
env
- a hashtable representing the environment.NamingException
public Object lookup(Name name) throws NamingException
lookup
in interface Context
name
- the URL of the registry location and the name of the object to
be retrieved.NamingException
- if something goes wrong.public Object lookup(String name) throws NamingException
lookup
in interface Context
name
- the URL of the registry location and the name of the object to
be retrieved.NamingException
- if something goes wrong.public void bind(Name name, Object obj) throws NamingException
bind
in interface Context
name
- the URL of the registry location and the name to be bound;obj
- the object to bind.NamingException
- if something goes wrong.public void bind(String name, Object obj) throws NamingException
bind
in interface Context
name
- the URL of the registry location and the name to be bound;obj
- the object to bind.NamingException
- if something goes wrong.public void rebind(Name name, Object obj) throws NamingException
rebind
in interface Context
name
- the URL of the registry location and the name to be rebound;obj
- the object to bind.NamingException
- if something goes wrong.public void rebind(String name, Object obj) throws NamingException
rebind
in interface Context
name
- the URL of the registry location and the name to be rebound;obj
- the object to bind.NamingException
- if something goes wrong.public void unbind(Name name) throws NamingException
unbind
in interface Context
name
- the URL of the registry location and the name to be unbound.NamingException
- if something goes wrong.public void unbind(String name) throws NamingException
unbind
in interface Context
name
- the URL of the registry location and the name to be unbound.NamingException
- if something goes wrong.public void rename(Name oldname, Name newname) throws NamingException
rename
in interface Context
oldName
- the existing bound name and registry;newName
- the new name to be bound in the registry.NamingException
- if something goes wrong.public void rename(String oldname, String newname) throws NamingException
rename
in interface Context
oldName
- the existing bound name and registry;newName
- the new name to be bound in the registry.NamingException
- if something goes wrong.public NamingEnumeration list(Name name) throws NamingException
list
in interface Context
name
- the URL name of the registry to list.NamingException
- if something goes wrong.public NamingEnumeration list(String name) throws NamingException
list
in interface Context
name
- the URL string of the registry to list.NamingException
- if something goes wrong.public NamingEnumeration listBindings(Name name) throws NamingException
listBindings
in interface Context
name
- the URL name of the registry to list.NamingException
- if something goes wrong.public NamingEnumeration listBindings(String name) throws NamingException
listBindings
in interface Context
name
- the URL string of the registry to list.NamingException
- if something goes wrong.public Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface Context
OperationNotSupportedException
NamingException
public Context createSubcontext(String name) throws NamingException
createSubcontext
in interface Context
OperationNotSupportedException
NamingException
public void destroySubcontext(Name name) throws NamingException
destroySubcontext
in interface Context
OperationNotSupportedException
NamingException
public void destroySubcontext(String name) throws NamingException
destroySubcontext
in interface Context
OperationNotSupportedException
NamingException
public Object lookupLink(Name name) throws NamingException
lookupLink
in interface Context
name
- the URL of the registry location and the name of the object to
be retrieved.NamingException
- if something goes wrong.public Object lookupLink(String name) throws NamingException
lookupLink
in interface Context
name
- the URL of the registry location and the name of the object to
be retrieved.NamingException
- if something goes wrong.public NameParser getNameParser(Name name) throws NamingException
getNameParser
in interface Context
name
- the URL name of the registry context from which to get the
parser.NamingException
- if something goes wrong.public NameParser getNameParser(String name) throws NamingException
getNameParser
in interface Context
name
- the URL string of the registry context from which to get the
parser.NamingException
- if something goes wrong.public Name composeName(Name name, Name prefix) throws NamingException
composeName
in interface Context
name
- a name relative to this registry context;prefix
- the name of this context relative to one of its ancestors.NamingException
- if something goes wrong.public String composeName(String name, String prefix) throws NamingException
composeName
in interface Context
name
- a stringified name relative to this registry context;prefix
- the stringified name of this context relative to one of its
ancestors.NamingException
- if something goes wrong.public Hashtable getEnvironment() throws NamingException
getEnvironment
in interface Context
NamingException
public Object addToEnvironment(String propName, Object propVal) throws NamingException
addToEnvironment
in interface Context
propName
- the name of the property;propVal
- the value of the property.NamingException
- if something goes wrong.public Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment
in interface Context
propName
- the name of the property;NamingException
- if something goes wrong.public String getNameInNamespace() throws NamingException
getNameInNamespace
in interface Context
NamingException
- if something goes wrong.public void close() throws NamingException
close
in interface Context
NamingException
- if something goes wrong.