gnu.javax.naming.jndi.url.rmi
Class rmiURLContext
- Context
The implementation of the RMI URL context. This context connects
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 |
rmiURLContext(Map<K,V> props) - Create the rmi url context that works, talking with the given RMI registry.
|
Object | addToEnvironment(String key, Object value) - Add new environment property to the environment of this context.
|
void | bind(String name, Object obj) - Bind the given name into this context.
|
void | bind(Name name, Object obj) - Bind the given name into this context.
|
void | close() - Release the associated resources.
|
String | composeName(String name, String prefix) - Not supported.
|
Name | composeName(Name name, Name prefix) - Not supported.
|
Context | createSubcontext(String name) - Subcontexts are not supporte by RMI registry.
|
Context | createSubcontext(Name name) - Subcontexts are not supporte by RMI registry.
|
void | destroySubcontext(String name) - Subcontexts are not supporte by RMI registry.
|
void | destroySubcontext(Name name) - Subcontexts are not supporte by RMI registry.
|
Hashtable<K,V> | getEnvironment() - Returns the environment, associated with this naming context.
|
String | getNameInNamespace() - Returns the naming service URL, same that was passed vie
Context.PROVIDER_URL .
|
NameParser | getNameParser(String name) - Not supported, this context never parses any names.
|
NameParser | getNameParser(Name name) - Not supported, this context never parses any names.
|
Registry | getRegistry(String netAddress) - Get the cached or new registry reference.
|
NamingEnumeration<T> | list(String name) - List existing bindings of thie given registry.The class name of the
returned name class pairs is "Remote", as this "quick preview" method
should probably not call the naming service again.
|
NamingEnumeration<T> | list(Name name) - List existing bindings of this context (the parameter must be empty name,
indicating the root context).
|
NamingEnumeration<T> | listBindings(String name) - List existing bindings of this context.
|
NamingEnumeration<T> | listBindings(Name name) - List existing bindings of this context (the parameter must be empty name,
indicating the root context).
|
Object | lookup(String name) - Resolve the object by name
|
Object | lookup(Name name) - Resolve the object by name.
|
Object | lookupLink(String name) - Returns the naming service context under the given address,
wrapped as Context.
|
Object | lookupLink(Name name) - Returns the naming service context under the given address, wrapped as
Context.
|
void | rebind(String name, Object obj) - Rebinds this object.
|
void | rebind(Name name, Object obj) - Rebinds this object.
|
Object | removeFromEnvironment(String propName) - Removes the property with the given name from the environment.
|
void | rename(String oldName, String newName) - Renames the object.
|
void | rename(Name oldName, Name newName) - Renames the object.
|
String[] | split(String address) - Split the given rmi address into the network address and naming service
name.
|
void | unbind(String name) - Unbind the object.
|
void | unbind(Name name) - Unbind the object.
|
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
rmiURLContext
public rmiURLContext(Map<K,V> props)
Create the rmi url context that works, talking with the given RMI registry.
props
- the properties for this context
addToEnvironment
public Object addToEnvironment(String key,
Object value)
Add new environment property to the environment of this context. Both name
and value of the new property must not be null. If the property is already
defined, is current value is replaced by the propVal. This method replaces
the registry. The new registry will be lazily instantiated on the first
call.
- addToEnvironment in interface Context
key
- the name of the new propertyvalue
- the value of the new property
- the previous value of this property or null if the property has not
been previously defined
bind
public void bind(Name name,
Object obj)
throws NamingException
Bind the given name into this context. The .toString() is called to
convert into the string representation, required by RMI registry.
- bind in interface Context
list
public NamingEnumeration<T> list(String name)
throws NamingException
List existing bindings of thie given registry.The class name of the
returned name class pairs is "Remote", as this "quick preview" method
should probably not call the naming service again. Use listBindings if more
details are required.
- list in interface Context
list
public NamingEnumeration<T> list(Name name)
throws NamingException
List existing bindings of this context (the parameter must be empty name,
indicating the root context). The class name of the returned name class
pairs is "Remote", as this "quick preview" method should probably not call
the naming service again. Use listBindings if more details are required.
- list in interface Context
rebind
public void rebind(Name name,
Object obj)
throws NamingException
Rebinds this object.
- rebind in interface Context
name
- the object name (.toString()) is used to convert into string
representation.obj
- object (must be an instance of Remote).
removeFromEnvironment
public Object removeFromEnvironment(String propName)
throws NamingException
Removes the property with the given name from the environment. Returns
without action if this property is not defined. Replaces the ORB,
constructing the new ORB with the changes set of properties (you can
replace the CORBA implementation provider, for instance). The new ORB will
be lazily instantiated on the first call.
- removeFromEnvironment in interface Context
propName
- the name of the property being removed.
- the value of the property that has been removed or null if the
property was not defined.
split
public String[] split(String address)
throws NamingException
Split the given rmi address into the network address and naming service
name.
address
- the address to split
- the two member array, lower being the network address of the naming
service and upper being the naming service name
rmiURLContext.java -- RMI naming context
Copyright (C) 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.