1 /* 2 * Copyright (c) 2005-2007 Creative Sphere Limited. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * 10 * Creative Sphere - initial API and implementation 11 * 12 */ 13 package org.abstracthorizon.danube.connection; 14 15 /** 16 * This is connection handler. Implementations of this class should be able to 17 * handle (process) requests passed down the connection and generate response 18 * (to be send via same connection back to the client. 19 * 20 * @author Daniel Sendula 21 * 22 * @depend - - - org.abstracthorizon.danube.connection.Connection 23 */ 24 public interface ConnectionHandler { 25 26 /** 27 * This method processes a connection - handles requests and processes response. 28 * @param connection connection 29 */ 30 void handleConnection(Connection connection); 31 32 }