com.liviutudor.rmi.io.gzip
Class BlockingGzipClientSocketFactory

java.lang.Object
  extended by com.liviutudor.rmi.io.gzip.BlockingGzipClientSocketFactory
All Implemented Interfaces:
RMIClientSocketFactory

public class BlockingGzipClientSocketFactory
extends Object
implements RMIClientSocketFactory

Class which implements a client RMI socket factory which gzip's the communication in between client and server. This implementation still uses the "old" blocking IO classes. It uses under the cover a GzipSocket.

Author:
Liviu Tudor http://about.me/liviutudor

Constructor Summary
BlockingGzipClientSocketFactory()
           
 
Method Summary
 Socket createSocket(String host, int port)
          Creates a socket which will gzip encode the communication.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockingGzipClientSocketFactory

public BlockingGzipClientSocketFactory()
Method Detail

createSocket

public Socket createSocket(String host,
                           int port)
                    throws IOException
Creates a socket which will gzip encode the communication.

Specified by:
createSocket in interface RMIClientSocketFactory
Parameters:
host - Host this client socket is to connect to
port - Port on which the client needs to connect to
Returns:
an instance of GzipSocket connected to the given host/port
Throws:
IOException - if I/O errors occur connecting to the host


Liv