<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.rmi.Naming
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.html">This Package</a>  <a href="Package-java.rmi.html">Previous</a>  <a href="java.rmi.RMISecurityManager.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.rmi.Naming
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.rmi.Naming
</pre>
<hr>
<dl>
  <dt> public final class <b>Naming</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
This is the bootstrap mechanism for obtaining references to remote
 objects based on Uniform Resource Locator (URL) syntax.  The URL
 for a remote object is specified using the usual host, port and
 name:
<br>	rmi://host:port/name
<br>	host = host name of registry  (defaults to current host)
<br>	port = port number of registry (defaults to the registry port number)
<br>  name = name for remote object
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#bind(java.lang.String, java.rmi.Remote)"><b>bind</b></a>(String, Remote)
  <dd>  Binds the name to the specified remote object.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#list(java.lang.String)"><b>list</b></a>(String)
  <dd>  Returns an array of strings of the URLs in the registry.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#lookup(java.lang.String)"><b>lookup</b></a>(String)
  <dd>  Returns the remote object for the URL.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#rebind(java.lang.String, java.rmi.Remote)"><b>rebind</b></a>(String, Remote)
  <dd> 
 Rebind the name to a new object; replaces any existing binding.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#unbind(java.lang.String)"><b>unbind</b></a>(String)
  <dd>  Unbind the name.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="lookup(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="lookup"><b>lookup</b></a>
<pre>
 public static <a href="java.rmi.Remote.html#_top_">Remote</a> lookup(<a href="java.lang.String.html#_top_">String</a> name) throws <a href="java.rmi.NotBoundException.html#_top_">NotBoundException</a>, <a href="java.net.MalformedURLException.html#_top_">MalformedURLException</a>, <a href="java.rmi.UnknownHostException.html#_top_">UnknownHostException</a>, <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>
</pre>
<dl>
  <dd> Returns the remote object for the URL.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>
    <dd> If registry could not be contacted.
    <dt> <b>Throws:</b> <a href="java.rmi.NotBoundException.html#_top_">NotBoundException</a>
    <dd> If name is not currently bound.
  </dl></dd>
</dl>
<a name="bind(java.lang.String, java.rmi.Remote)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="bind"><b>bind</b></a>
<pre>
 public static void bind(<a href="java.lang.String.html#_top_">String</a> name,
                         <a href="java.rmi.Remote.html#_top_">Remote</a> obj) throws <a href="java.rmi.AlreadyBoundException.html#_top_">AlreadyBoundException</a>, <a href="java.net.MalformedURLException.html#_top_">MalformedURLException</a>, <a href="java.rmi.UnknownHostException.html#_top_">UnknownHostException</a>, <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>
</pre>
<dl>
  <dd> Binds the name to the specified remote object.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>
    <dd> If registry could not be contacted.
    <dt> <b>Throws:</b> <a href="java.rmi.AlreadyBoundException.html#_top_">AlreadyBoundException</a>
    <dd> If name is already bound.
  </dl></dd>
</dl>
<a name="unbind(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="unbind"><b>unbind</b></a>
<pre>
 public static void unbind(<a href="java.lang.String.html#_top_">String</a> name) throws <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>, <a href="java.rmi.NotBoundException.html#_top_">NotBoundException</a>, <a href="java.net.MalformedURLException.html#_top_">MalformedURLException</a>, <a href="java.rmi.UnknownHostException.html#_top_">UnknownHostException</a>
</pre>
<dl>
  <dd> Unbind the name.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>
    <dd> If registry could not be contacted.
    <dt> <b>Throws:</b> <a href="java.rmi.NotBoundException.html#_top_">NotBoundException</a>
    <dd> If name is not currently bound.
  </dl></dd>
</dl>
<a name="rebind(java.lang.String, java.rmi.Remote)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="rebind"><b>rebind</b></a>
<pre>
 public static void rebind(<a href="java.lang.String.html#_top_">String</a> name,
                           <a href="java.rmi.Remote.html#_top_">Remote</a> obj) throws <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>, <a href="java.net.MalformedURLException.html#_top_">MalformedURLException</a>, <a href="java.rmi.UnknownHostException.html#_top_">UnknownHostException</a>
</pre>
<dl>
  <dd> Rebind the name to a new object; replaces any existing binding.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>
    <dd> If registry could not be contacted.
  </dl></dd>
</dl>
<a name="list(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="list"><b>list</b></a>
<pre>
 public static <a href="java.lang.String.html#_top_">String</a>[] list(<a href="java.lang.String.html#_top_">String</a> name) throws <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>, <a href="java.net.MalformedURLException.html#_top_">MalformedURLException</a>, <a href="java.rmi.UnknownHostException.html#_top_">UnknownHostException</a>
</pre>
<dl>
  <dd> Returns an array of strings of the URLs in the registry.
 The array contains a snapshot of the names present in the registry.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>
    <dd> If registry could not be contacted.
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.html">This Package</a>  <a href="Package-java.rmi.html">Previous</a>  <a href="java.rmi.RMISecurityManager.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
