org.apache.jcs.auxiliary.remote.server
Class MockRMISocketFactory

java.lang.Object
  extended by java.rmi.server.RMISocketFactory
      extended by 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

Constructor Summary
MockRMISocketFactory()
           
 
Method Summary
 ServerSocket createServerSocket(int port)
           
 Socket createSocket(String host, int port)
           
 String getTestStringProperty()
           
 void setTestStringProperty(String testStringProperty)
           
 
Methods inherited from class java.rmi.server.RMISocketFactory
getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockRMISocketFactory

public MockRMISocketFactory()
Method Detail

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.