org.apache.jcs.auxiliary.remote.server
Class MockRMISocketFactory
java.lang.Object
java.rmi.server.RMISocketFactory
org.apache.jcs.auxiliary.remote.server.MockRMISocketFactory
- All Implemented Interfaces:
- Serializable, RMIClientSocketFactory, RMIServerSocketFactory
public class MockRMISocketFactory
- extends RMISocketFactory
- implements Serializable
For testing the custom socket factory configuration
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockRMISocketFactory
public MockRMISocketFactory()
createSocket
public Socket createSocket(String host,
int port)
throws IOException
- Specified by:
createSocket in interface RMIClientSocketFactory- Specified by:
createSocket in class RMISocketFactory
- Parameters:
host - port -
- Returns:
- Socket
- Throws:
IOException
createServerSocket
public ServerSocket createServerSocket(int port)
throws IOException
- Specified by:
createServerSocket in interface RMIServerSocketFactory- Specified by:
createServerSocket in class RMISocketFactory
- Parameters:
port -
- Returns:
- ServerSocket
- Throws:
IOException
setTestStringProperty
public void setTestStringProperty(String testStringProperty)
- Parameters:
testStringProperty - the testStringProperty to set
getTestStringProperty
public String getTestStringProperty()
- Returns:
- the testStringProperty
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.