fr.ove.clientserver
Class RepeatConnectionHandler

java.lang.Object
  extended byfr.ove.clientserver.RepeatConnectionHandler
All Implemented Interfaces:
ConnectionHandler, java.lang.Runnable

public class RepeatConnectionHandler
extends java.lang.Object
implements ConnectionHandler, java.lang.Runnable

A ConnectionHandler implementation.
This connection handler is used with a server which connects to an another one. The objects sent from a connected client are sent to the server the server whose instance deals the conections is connected.


Constructor Summary
RepeatConnectionHandler(java.lang.String hostName, int portNumber)
          The constructor.
 
Method Summary
 void handleConnection(Connection connection)
          Handles the specified connection.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepeatConnectionHandler

public RepeatConnectionHandler(java.lang.String hostName,
                               int portNumber)
The constructor.

Parameters:
hostName - the name of the host the instance connects to.
portNumber - the port number through the instance is connected.
Method Detail

handleConnection

public void handleConnection(Connection connection)
Handles the specified connection.

Specified by:
handleConnection in interface ConnectionHandler
Parameters:
connection - the connection to handle.

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.