From 7f15b6ab24b7d6648671b2663f3ffac81f34ac6e Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 18 Sep 2009 07:58:27 +0000 Subject: [PATCH] Remove RMI socket factory which isn't used anymore --- src/helma/main/HelmaSocketFactory.java | 79 -------------------------- 1 file changed, 79 deletions(-) delete mode 100644 src/helma/main/HelmaSocketFactory.java diff --git a/src/helma/main/HelmaSocketFactory.java b/src/helma/main/HelmaSocketFactory.java deleted file mode 100644 index ee2c5737..00000000 --- a/src/helma/main/HelmaSocketFactory.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Helma License Notice - * - * The contents of this file are subject to the Helma License - * Version 2.0 (the "License"). You may not use this file except in - * compliance with the License. A copy of the License is available at - * http://adele.helma.org/download/helma/license.txt - * - * Copyright 1998-2003 Helma Software. All Rights Reserved. - * - * $RCSfile$ - * $Author$ - * $Revision$ - * $Date$ - */ - -package helma.main; - -import helma.util.*; -import java.io.IOException; -import java.net.*; -import java.rmi.server.*; - -/** - * An RMI socket factory that has a "paranoid" option to filter clients. - * We only do direct connections, no HTTP proxy stuff, since this is - * server-to-server. - */ -public class HelmaSocketFactory extends RMISocketFactory { - private InetAddressFilter filter; - - /** - * Creates a new HelmaSocketFactory object. - */ - public HelmaSocketFactory() { - filter = new InetAddressFilter(); - } - - /** - * - * - * @param address ... - */ - public void addAddress(String address) { - try { - filter.addAddress(address); - } catch (IOException x) { - Server.getServer().getLogger().error("Could not add " + address + - " to Socket Filter: invalid address."); - } - } - - /** - * - * - * @param host ... - * @param port ... - * - * @return ... - * - * @throws IOException ... - */ - public Socket createSocket(String host, int port) throws IOException { - return new Socket(host, port); - } - - /** - * - * - * @param port ... - * - * @return ... - * - * @throws IOException ... - */ - public ServerSocket createServerSocket(int port) throws IOException { - return new ParanoidServerSocket(port, filter); - } -}