|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.jeremie.libs.services.registry.jndi.jrmi.jrmiURLContext
Provides an implementation of a JNDI URL context for the Jeremie registry.
The allowed URL syntax for accessing the Jeremie registry is:
jrmi://[host][:port][/[name]]
or
jrmi:[/][name]
| Field Summary |
| Fields inherited from interface javax.naming.Context |
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 Summary | |
jrmiURLContext(java.util.Hashtable env)
Creates a Jeremie registry URL context with the given environment. |
|
| Method Summary | |
java.lang.Object |
addToEnvironment(java.lang.String propName,
java.lang.Object propVal)
Sets the value of a property in the current URL context's environment. |
void |
bind(javax.naming.Name name,
java.lang.Object obj)
Binds the given object under the name and in the Jeremie registry indicated by the given URL name. |
void |
bind(java.lang.String name,
java.lang.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. |
javax.naming.Name |
composeName(javax.naming.Name name,
javax.naming.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. |
java.lang.String |
composeName(java.lang.String name,
java.lang.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. |
javax.naming.Context |
createSubcontext(javax.naming.Name name)
Subcontexts are not supported by Jeremie registry URL contexts. |
javax.naming.Context |
createSubcontext(java.lang.String name)
Subcontexts are not supported by Jeremie registry URL contexts. |
void |
destroySubcontext(javax.naming.Name name)
Subcontexts are not supported by Jeremie registry URL contexts. |
void |
destroySubcontext(java.lang.String name)
Subcontexts are not supported by Jeremie registry URL contexts. |
java.util.Hashtable |
getEnvironment()
Returns the environment of the current URL context. |
java.lang.String |
getNameInNamespace()
Retrieves the full name of the current context within its own namespace, in other words, the empty string "". |
javax.naming.NameParser |
getNameParser(javax.naming.Name name)
Retrieves the name parser of the Jeremie registry context indicated by the given URL name. |
javax.naming.NameParser |
getNameParser(java.lang.String name)
Retrieves the name parser of the Jeremie registry context indicated by the given URL string. |
javax.naming.NamingEnumeration |
list(javax.naming.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. |
javax.naming.NamingEnumeration |
list(java.lang.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. |
javax.naming.NamingEnumeration |
listBindings(javax.naming.Name name)
Enumerates the names and objects that they are bound to in the Jeremie registry indicated by the given URL name. |
javax.naming.NamingEnumeration |
listBindings(java.lang.String name)
Enumerates the names and objects that they are bound to in the Jeremie registry indicated by the given URL string. |
java.lang.Object |
lookup(javax.naming.Name name)
Retrieves the object bound under the name and in the Jeremie registry indicated by the given URL name. |
java.lang.Object |
lookup(java.lang.String name)
Retrieves the object bound under the name and in the Jeremie registry indicated by the given URL string. |
java.lang.Object |
lookupLink(javax.naming.Name name)
Links are not treated specially by Jeremie registry URL contexts. |
java.lang.Object |
lookupLink(java.lang.String name)
Links are not treated specially by Jeremie registry URL contexts. |
void |
rebind(javax.naming.Name name,
java.lang.Object obj)
Rebinds the given object under the name and in the Jeremie registry indicated by the given URL name. |
void |
rebind(java.lang.String name,
java.lang.Object obj)
Rebinds the given object under the name and in the Jeremie registry indicated by the given URL string. |
java.lang.Object |
removeFromEnvironment(java.lang.String propName)
Undefines the value of a property in the current URL context's environment. |
void |
rename(javax.naming.Name oldname,
javax.naming.Name newname)
Renames a name in a Jeremie registry as indicated by the given URL names. |
void |
rename(java.lang.String oldname,
java.lang.String newname)
Renames a name in a Jeremie registry as indicated by the given URL strings. |
void |
unbind(javax.naming.Name name)
Unbinds a name from a Jeremie registry as indicated by the given URL name. |
void |
unbind(java.lang.String name)
Unbinds a name from a Jeremie registry as indicated by the given URL string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public jrmiURLContext(java.util.Hashtable env)
throws javax.naming.NamingException
env - a hashtable representing the environment.| Method Detail |
public java.lang.Object lookup(javax.naming.Name name)
throws javax.naming.NamingException
lookup in interface javax.naming.Contextname - the URL of the registry location and the name of the object to
be retrieved.
javax.naming.NamingException - if something goes wrong.
public java.lang.Object lookup(java.lang.String name)
throws javax.naming.NamingException
lookup in interface javax.naming.Contextname - the URL of the registry location and the name of the object to
be retrieved.
javax.naming.NamingException - if something goes wrong.
public void bind(javax.naming.Name name,
java.lang.Object obj)
throws javax.naming.NamingException
bind in interface javax.naming.Contextname - the URL of the registry location and the name to be bound;obj - the object to bind.
javax.naming.NamingException - if something goes wrong.
public void bind(java.lang.String name,
java.lang.Object obj)
throws javax.naming.NamingException
bind in interface javax.naming.Contextname - the URL of the registry location and the name to be bound;obj - the object to bind.
javax.naming.NamingException - if something goes wrong.
public void rebind(javax.naming.Name name,
java.lang.Object obj)
throws javax.naming.NamingException
rebind in interface javax.naming.Contextname - the URL of the registry location and the name to be rebound;obj - the object to bind.
javax.naming.NamingException - if something goes wrong.
public void rebind(java.lang.String name,
java.lang.Object obj)
throws javax.naming.NamingException
rebind in interface javax.naming.Contextname - the URL of the registry location and the name to be rebound;obj - the object to bind.
javax.naming.NamingException - if something goes wrong.
public void unbind(javax.naming.Name name)
throws javax.naming.NamingException
unbind in interface javax.naming.Contextname - the URL of the registry location and the name to be unbound.
javax.naming.NamingException - if something goes wrong.
public void unbind(java.lang.String name)
throws javax.naming.NamingException
unbind in interface javax.naming.Contextname - the URL of the registry location and the name to be unbound.
javax.naming.NamingException - if something goes wrong.
public void rename(javax.naming.Name oldname,
javax.naming.Name newname)
throws javax.naming.NamingException
rename in interface javax.naming.Contextjavax.naming.NamingException - if something goes wrong.
public void rename(java.lang.String oldname,
java.lang.String newname)
throws javax.naming.NamingException
rename in interface javax.naming.Contextjavax.naming.NamingException - if something goes wrong.
public javax.naming.NamingEnumeration list(javax.naming.Name name)
throws javax.naming.NamingException
list in interface javax.naming.Contextname - the URL name of the registry to list.
javax.naming.NamingException - if something goes wrong.
public javax.naming.NamingEnumeration list(java.lang.String name)
throws javax.naming.NamingException
list in interface javax.naming.Contextname - the URL string of the registry to list.
javax.naming.NamingException - if something goes wrong.
public javax.naming.NamingEnumeration listBindings(javax.naming.Name name)
throws javax.naming.NamingException
listBindings in interface javax.naming.Contextname - the URL name of the registry to list.
javax.naming.NamingException - if something goes wrong.
public javax.naming.NamingEnumeration listBindings(java.lang.String name)
throws javax.naming.NamingException
listBindings in interface javax.naming.Contextname - the URL string of the registry to list.
javax.naming.NamingException - if something goes wrong.
public javax.naming.Context createSubcontext(javax.naming.Name name)
throws javax.naming.NamingException
createSubcontext in interface javax.naming.Contextjavax.naming.OperationNotSupportedException
javax.naming.NamingException
public javax.naming.Context createSubcontext(java.lang.String name)
throws javax.naming.NamingException
createSubcontext in interface javax.naming.Contextjavax.naming.OperationNotSupportedException
javax.naming.NamingException
public void destroySubcontext(javax.naming.Name name)
throws javax.naming.NamingException
destroySubcontext in interface javax.naming.Contextjavax.naming.OperationNotSupportedException
javax.naming.NamingException
public void destroySubcontext(java.lang.String name)
throws javax.naming.NamingException
destroySubcontext in interface javax.naming.Contextjavax.naming.OperationNotSupportedException
javax.naming.NamingException
public java.lang.Object lookupLink(javax.naming.Name name)
throws javax.naming.NamingException
lookupLink in interface javax.naming.Contextname - the URL of the registry location and the name of the object to
be retrieved.
javax.naming.NamingException - if something goes wrong.
public java.lang.Object lookupLink(java.lang.String name)
throws javax.naming.NamingException
lookupLink in interface javax.naming.Contextname - the URL of the registry location and the name of the object to
be retrieved.
javax.naming.NamingException - if something goes wrong.
public javax.naming.NameParser getNameParser(javax.naming.Name name)
throws javax.naming.NamingException
getNameParser in interface javax.naming.Contextname - the URL name of the registry context from which to get the
parser.
javax.naming.NamingException - if something goes wrong.
public javax.naming.NameParser getNameParser(java.lang.String name)
throws javax.naming.NamingException
getNameParser in interface javax.naming.Contextname - the URL string of the registry context from which to get the
parser.
javax.naming.NamingException - if something goes wrong.
public javax.naming.Name composeName(javax.naming.Name name,
javax.naming.Name prefix)
throws javax.naming.NamingException
composeName in interface javax.naming.Contextname - a name relative to this registry context;prefix - the name of this context relative to one of its ancestors.
javax.naming.NamingException - if something goes wrong.
public java.lang.String composeName(java.lang.String name,
java.lang.String prefix)
throws javax.naming.NamingException
composeName in interface javax.naming.Contextname - a stringified name relative to this registry context;prefix - the stringified name of this context relative to one of its
ancestors.
javax.naming.NamingException - if something goes wrong.
public java.util.Hashtable getEnvironment()
throws javax.naming.NamingException
getEnvironment in interface javax.naming.Contextjavax.naming.NamingException
public java.lang.Object addToEnvironment(java.lang.String propName,
java.lang.Object propVal)
throws javax.naming.NamingException
addToEnvironment in interface javax.naming.ContextpropName - the name of the property;propVal - the value of the property.
javax.naming.NamingException - if something goes wrong.
public java.lang.Object removeFromEnvironment(java.lang.String propName)
throws javax.naming.NamingException
removeFromEnvironment in interface javax.naming.ContextpropName - the name of the property;
javax.naming.NamingException - if something goes wrong.
public java.lang.String getNameInNamespace()
throws javax.naming.NamingException
getNameInNamespace in interface javax.naming.Contextjavax.naming.NamingException - if something goes wrong.
public void close()
throws javax.naming.NamingException
close in interface javax.naming.Contextjavax.naming.NamingException - if something goes wrong.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||