Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.objectweb.jeremie.services.registry.jndi.jrmi.jrmiURLContext
jrmi://[host][:port][/[name]]
or
jrmi:[/][name]
Constructor Summary | |
|
Method Summary | |
Object |
|
void |
|
void |
|
void |
|
Name |
|
String |
|
Context |
|
Context |
|
void |
|
void |
|
Hashtable |
|
String |
|
NameParser |
|
NameParser |
|
NamingEnumeration |
|
NamingEnumeration |
|
NamingEnumeration |
|
NamingEnumeration |
|
Object |
|
Object |
|
Object |
|
Object |
|
void |
|
void |
|
Object |
|
void |
|
void |
|
void |
|
void |
|
public jrmiURLContext(Hashtable env) throws NamingException
Creates a Jeremie registry URL context with the given environment.
- Parameters:
env
- a hashtable representing the environment.
public Object addToEnvironment(String propName, Object propVal) throws NamingException
Sets the value of a property in the current URL context's environment. Overwrites any previous value of the property.
- Parameters:
propName
- the name of the property;propVal
- the value of the property.
- Returns:
- the previous value of the property, possibly null.
public void bind(Name name, Object obj) throws NamingException
Binds the given object under the name and in the Jeremie registry indicated by the given URL name.
- Parameters:
name
- the URL of the registry location and the name to be bound;obj
- the object to bind.
public void bind(String name, Object obj) throws NamingException
Binds the given object under the name and in the Jeremie registry indicated by the given URL string.
- Parameters:
name
- the URL of the registry location and the name to be bound;obj
- the object to bind.
public void close() throws NamingException
Closes this URL context.
public Name composeName(Name name, Name prefix) throws NamingException
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.
- Parameters:
name
- a name relative to this registry context;prefix
- the name of this context relative to one of its ancestors.
- Returns:
- a composed name.
public String composeName(String name, String prefix) throws NamingException
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.
- Parameters:
name
- a stringified name relative to this registry context;prefix
- the stringified name of this context relative to one of its ancestors.
- Returns:
- a composed stringified name.
public Context createSubcontext(Name name) throws NamingException
Subcontexts are not supported by Jeremie registry URL contexts.
public Context createSubcontext(String name) throws NamingException
Subcontexts are not supported by Jeremie registry URL contexts.
public void destroySubcontext(Name name) throws NamingException
Subcontexts are not supported by Jeremie registry URL contexts.
public void destroySubcontext(String name) throws NamingException
Subcontexts are not supported by Jeremie registry URL contexts.
public Hashtable getEnvironment() throws NamingException
Returns the environment of the current URL context.
- Returns:
- the possibly empty environment of this context.
public String getNameInNamespace() throws NamingException
Retrieves the full name of the current context within its own namespace, in other words, the empty string "".
- Returns:
- the full name of the current context.
public NameParser getNameParser(Name name) throws NamingException
Retrieves the name parser of the Jeremie registry context indicated by the given URL name.
- Parameters:
name
- the URL name of the registry context from which to get the parser.
- Returns:
- the name parser of the current registry context.
public NameParser getNameParser(String name) throws NamingException
Retrieves the name parser of the Jeremie registry context indicated by the given URL string.
- Parameters:
name
- the URL string of the registry context from which to get the parser.
- Returns:
- the name parser of the current registry context.
public NamingEnumeration list(Name name) throws NamingException
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.
- Parameters:
name
- the URL name of the registry to list.
- Returns:
- an enumeration of the (name, class name) pairs in the registry.
public NamingEnumeration list(String name) throws NamingException
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.
- Parameters:
name
- the URL string of the registry to list.
- Returns:
- an enumeration of the (name, class name) pairs in the registry.
public NamingEnumeration listBindings(Name name) throws NamingException
Enumerates the names and objects that they are bound to in the Jeremie registry indicated by the given URL name.
- Parameters:
name
- the URL name of the registry to list.
- Returns:
- an enumeration of the (name, object) pairs in the registry.
public NamingEnumeration listBindings(String name) throws NamingException
Enumerates the names and objects that they are bound to in the Jeremie registry indicated by the given URL string.
- Parameters:
name
- the URL string of the registry to list.
- Returns:
- an enumeration of the (name, object) pairs in the registry.
public Object lookup(Name name) throws NamingException
Retrieves the object bound under the name and in the Jeremie registry indicated by the given URL name.
- Parameters:
name
- the URL of the registry location and the name of the object to be retrieved.
- Returns:
- the object bound to the given name in the given registry.
public Object lookup(String name) throws NamingException
Retrieves the object bound under the name and in the Jeremie registry indicated by the given URL string.
- Parameters:
name
- the URL of the registry location and the name of the object to be retrieved.
- Returns:
- the object bound to the given name in the given registry.
public Object lookupLink(Name name) throws NamingException
Links are not treated specially by Jeremie registry URL contexts. This method does the same as the lookup(Name) method.
- Parameters:
name
- the URL of the registry location and the name of the object to be retrieved.
- Returns:
- the object bound to the given name in the given registry.
public Object lookupLink(String name) throws NamingException
Links are not treated specially by Jeremie registry URL contexts. This method does the same as the lookup(String) method.
- Parameters:
name
- the URL of the registry location and the name of the object to be retrieved.
- Returns:
- the object bound to the given name in the given registry.
public void rebind(Name name, Object obj) throws NamingException
Rebinds the given object under the name and in the Jeremie registry indicated by the given URL name.
- Parameters:
name
- the URL of the registry location and the name to be rebound;obj
- the object to bind.
public void rebind(String name, Object obj) throws NamingException
Rebinds the given object under the name and in the Jeremie registry indicated by the given URL string.
- Parameters:
name
- the URL of the registry location and the name to be rebound;obj
- the object to bind.
public Object removeFromEnvironment(String propName) throws NamingException
Undefines the value of a property in the current URL context's environment.
- Parameters:
propName
- the name of the property;
- Returns:
- the previous value of the property, possibly null.
public void rename(Name oldname, Name newname) throws NamingException
Renames a name in a Jeremie registry as indicated by the given URL names.
- Parameters:
public void rename(String oldname, String newname) throws NamingException
Renames a name in a Jeremie registry as indicated by the given URL strings.
- Parameters:
public void unbind(Name name) throws NamingException
Unbinds a name from a Jeremie registry as indicated by the given URL name.
- Parameters:
name
- the URL of the registry location and the name to be unbound.
public void unbind(String name) throws NamingException
Unbinds a name from a Jeremie registry as indicated by the given URL string.
- Parameters:
name
- the URL of the registry location and the name to be unbound.