| java.lang.Object org.apache.harmony.jndi.provider.rmi.registry.RegistryContext
Constructor Summary | |
public | RegistryContext(String host, int port, Hashtable, ?> environment) Creates RMI registry context bound to RMI Registry operating on the
specified host and port.
Parameters: host - Host. | protected | RegistryContext(RegistryContext context) Creates RMI registry context by copying the specified context. |
Method Summary | |
public Object | addToEnvironment(String propName, Object propVal) | public void | bind(Name name, Object obj) | public void | bind(String name, Object obj) | protected RegistryContext | cloneContext() Returns a clone of this context. | public void | close() | public Name | composeName(Name name, Name prefix) | public String | composeName(String name, String prefix) | public Context | createSubcontext(Name name) | public Context | createSubcontext(String name) | public void | destroySubcontext(Name name) | public void | destroySubcontext(String name) | public Hashtable, ?> | getEnvironment() | protected String | getMyComponents(Name name) Verifies that the specified name is valid for this context and returns
string representation of that name for this provider.
Returns returns first component of a
CompositeName or a string
representation of a name otherwise.
Parameters: name - Name to verify. | public String | getNameInNamespace() | public NameParser | getNameParser(Name name) | public NameParser | getNameParser(String name) | protected Object | getObjectInstance(String name, Remote remote) Processes object returned from
. | public Reference | getReference() | protected Registry | getRegistry(String host, int port, RMIClientSocketFactory csf) Creates reference to the
located on
the specified host and port.
Parameters: host - Host. | protected Remote | getStateToBind(String name, Object obj) Prepares object for binding. | protected void | installSecurityManager() Installs
RMISecurityManager if it is not already installed. | public NamingEnumeration<NameClassPair> | list(Name name) | public NamingEnumeration<NameClassPair> | list(String name) | public NamingEnumeration<Binding> | listBindings(Name name) | public NamingEnumeration<Binding> | listBindings(String name) | public Object | lookup(Name name) | public Object | lookup(String name) | public Object | lookupLink(Name name) | public Object | lookupLink(String name) | protected NamingException | newNamingException(Throwable e) Prepares a new
NamingException wrapping the specified
RemoteException source exception. | public void | rebind(Name name, Object obj) | public void | rebind(String name, Object obj) | public Object | removeFromEnvironment(String propName) | public void | rename(Name oldName, Name newName) | public void | rename(String oldName, String newName) | protected void | setReference(Reference reference) Initializes reference for this context instance. | public void | unbind(Name name) | public void | unbind(String name) |
ADDRESS_TYPE | final public static String ADDRESS_TYPE(Code) | | Address type for RMI context references.
|
RMI_URL_PREFIX | final public static String RMI_URL_PREFIX(Code) | | Prefix for RMI URLs.
|
SECURITY_MANAGER | final public static String SECURITY_MANAGER(Code) | | System property used to state whether the RMI security manager should be
installed.
|
host | protected String host(Code) | | Registry host, stored to produce copies of this context.
|
port | protected int port(Code) | | Registry port, stored to produce copies of this context.
|
RegistryContext | public RegistryContext(String host, int port, Hashtable, ?> environment) throws NamingException(Code) | | Creates RMI registry context bound to RMI Registry operating on the
specified host and port.
Parameters: host - Host. If null , localhost is assumed. Parameters: port - Port. If 0 , default registry port (1099 )is assumed. Parameters: environment - Context environment, may be null which denotesempty environment. throws: NamingException - If some naming error occurs. |
RegistryContext | protected RegistryContext(RegistryContext context)(Code) | | Creates RMI registry context by copying the specified context.
Parameters: context - Context to copy. |
cloneContext | protected RegistryContext cloneContext()(Code) | | Returns a clone of this context.
Clone of this context. |
close | public void close()(Code) | | |
getMyComponents | protected String getMyComponents(Name name)(Code) | | Verifies that the specified name is valid for this context and returns
string representation of that name for this provider.
Returns returns first component of a
CompositeName or a string
representation of a name otherwise.
Parameters: name - Name to verify. CompositeName.get(int) CompositeName#get(0) ifname is a CompositeName,Object.toString name.toString() otherwise. |
|
|