<!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.server.RMIClassLoader
</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.server.html">This Package</a>  <a href="java.rmi.server.Operation.html#_top_">Previous</a>  <a href="java.rmi.server.RMISocketFactory.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.rmi.server.RMIClassLoader
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.rmi.server.RMIClassLoader
</pre>
<hr>
<dl>
  <dt> public class <b>RMIClassLoader</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
The RMIClassLoader class provides static methods for loading classes
 over the network.  Classes can be loaded from either a particular URL,
 or from the URL specified in the <b>java.rmi.server.codebase</b>
 system property.
<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="#getSecurityContext(java.lang.ClassLoader)"><b>getSecurityContext</b></a>(ClassLoader)
  <dd>  Returns the security context of the given class loader
 
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#loadClass(java.lang.String)"><b>loadClass</b></a>(String)
  <dd>  Load a class from the URL specified in the
 <b>java.rmi.server.codebase</b> property.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#loadClass(java.net.URL, java.lang.String)"><b>loadClass</b></a>(URL, String)
  <dd>  Load a class from a URL.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="loadClass(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="loadClass"><b>loadClass</b></a>
<pre>
 public static <a href="java.lang.Class.html#_top_">Class</a> loadClass(<a href="java.lang.String.html#_top_">String</a> name) throws <a href="java.net.MalformedURLException.html#_top_">MalformedURLException</a>, <a href="java.lang.ClassNotFoundException.html#_top_">ClassNotFoundException</a>
</pre>
<dl>
  <dd> Load a class from the URL specified in the
 <b>java.rmi.server.codebase</b> property.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> name - the name of the class to load
    <dt> <b>Returns:</b>
    <dd> the Class object representing the loaded class
    <dt> <b>Throws:</b> <a href="java.net.MalformedURLException.html#_top_">MalformedURLException</a>
    <dd> The system property <b>java.rmi.server.codebase</b>
            does not contain a valid URL.
    <dt> <b>Throws:</b> <a href="java.lang.ClassNotFoundException.html#_top_">ClassNotFoundException</a>
    <dd> A definition for the class could not
            be found at the codebase URL.
  </dl></dd>
</dl>
<a name="loadClass(java.net.URL, java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="loadClass"><b>loadClass</b></a>
<pre>
 public static <a href="java.lang.Class.html#_top_">Class</a> loadClass(<a href="java.net.URL.html#_top_">URL</a> codebase,
                               <a href="java.lang.String.html#_top_">String</a> name) throws <a href="java.net.MalformedURLException.html#_top_">MalformedURLException</a>, <a href="java.lang.ClassNotFoundException.html#_top_">ClassNotFoundException</a>
</pre>
<dl>
  <dd> Load a class from a URL.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> codebase - the URL from which to load the class
    <dd> name - the name of the class to load
    <dt> <b>Returns:</b>
    <dd> the Class object representing the loaded class
    <dt> <b>Throws:</b> <a href="java.net.MalformedURLException.html#_top_">MalformedURLException</a>
    <dd> The codebase paramater was null.
    <dt> <b>Throws:</b> <a href="java.lang.ClassNotFoundException.html#_top_">ClassNotFoundException</a>
    <dd> A definition for the class could not
            be found at the specified URL.
  </dl></dd>
</dl>
<a name="getSecurityContext(java.lang.ClassLoader)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getSecurityContext"><b>getSecurityContext</b></a>
<pre>
 public static <a href="java.lang.Object.html#_top_">Object</a> getSecurityContext(<a href="java.lang.ClassLoader.html#_top_">ClassLoader</a> loader)
</pre>
<dl>
  <dd> Returns the security context of the given class loader
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> loader - a class loader from which to get the security
 	      context
    <dt> <b>Returns:</b>
    <dd> the security context (e.g., a URL)
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.server.html">This Package</a>  <a href="java.rmi.server.Operation.html#_top_">Previous</a>  <a href="java.rmi.server.RMISocketFactory.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
