org.apache.avalon.cornerstone.services.connection
Interface ConnectionHandler


public interface ConnectionHandler

This interface is the way in which incoming connections are processed.

Author:
Avalon Development Team

Method Summary
 void handleConnection(java.net.Socket connection)
          Processes connections as they occur.
 

Method Detail

handleConnection

public void handleConnection(java.net.Socket connection)
                      throws java.io.IOException,
                             java.net.ProtocolException
Processes connections as they occur. The handler should not close the connection, the caller will do that.

Parameters:
connection - the connection
Throws:
java.io.IOException - if an error reading from socket occurs
java.net.ProtocolException - if an error handling connection occurs


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.