10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* @test 25 * 26 * @summary HttpSocket functionality test 27 * @author Dana Burns 28 * 29 * @library ../../testlibrary 30 * @build TestLibrary HttpSocketTest HttpSocketTest_Stub 31 * @run main/othervm/policy=security.policy HttpSocketTest 32 */ 33 34 /* 35 * This test assures remote methods can be carried out over RMI. 36 * After setting the RMI runtime socket factory to the http proxy version, 37 * a registry is created, a remote object (an instance of this class) is 38 * registered with it, and then it is exercised. 39 */ 40 41 import java.rmi.Remote; 42 import java.rmi.RemoteException; 43 import java.rmi.Naming; 44 import java.rmi.RMISecurityManager; 45 import java.rmi.registry.LocateRegistry; 46 import java.rmi.registry.Registry; 47 import java.rmi.server.RMISocketFactory; 48 import java.rmi.server.UnicastRemoteObject; 49 import sun.rmi.transport.proxy.RMIHttpToPortSocketFactory; | 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* @test 25 * 26 * @summary HttpSocket functionality test 27 * @author Dana Burns 28 * 29 * @library ../../testlibrary 30 * @modules java.rmi/sun.rmi.registry 31 * java.rmi/sun.rmi.server 32 * java.rmi/sun.rmi.transport 33 * java.rmi/sun.rmi.transport.proxy 34 * java.rmi/sun.rmi.transport.tcp 35 * @build TestLibrary HttpSocketTest HttpSocketTest_Stub 36 * @run main/othervm/policy=security.policy HttpSocketTest 37 */ 38 39 /* 40 * This test assures remote methods can be carried out over RMI. 41 * After setting the RMI runtime socket factory to the http proxy version, 42 * a registry is created, a remote object (an instance of this class) is 43 * registered with it, and then it is exercised. 44 */ 45 46 import java.rmi.Remote; 47 import java.rmi.RemoteException; 48 import java.rmi.Naming; 49 import java.rmi.RMISecurityManager; 50 import java.rmi.registry.LocateRegistry; 51 import java.rmi.registry.Registry; 52 import java.rmi.server.RMISocketFactory; 53 import java.rmi.server.UnicastRemoteObject; 54 import sun.rmi.transport.proxy.RMIHttpToPortSocketFactory; |