1 2 /* 3 * Enhydra Java Application Server Project 4 * 5 * The contents of this file are subject to the Enhydra Public License 6 * Version 1.1 (the "License"); you may not use this file except in 7 * compliance with the License. You may obtain a copy of the License on 8 * the Enhydra web site ( http://www.enhydra.org/ ). 9 * 10 * Software distributed under the License is distributed on an "AS IS" 11 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 12 * the License for the specific terms governing rights and limitations 13 * under the License. 14 * 15 * The Initial Developer of the Enhydra Application Server is Lutris 16 * Technologies, Inc. The Enhydra Application Server and portions created 17 * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc. 18 * All Rights Reserved. 19 * 20 * Contributor(s): 21 * 22 * $Id: HttpPresentation.java,v 1.1 2005/07/13 11:09:06 slobodan Exp $ 23 */ 24 25 26 27 28 29 package com.lutris.appserver.server.httpPresentation; 30 31 /** 32 * Presentation Object interface. All presentation objects implement this 33 * interface. 34 */ 35 public interface HttpPresentation { 36 37 /** 38 * Run the Presentation Object passing it an HTTP request to handle. 39 * Presentation objects differ from Servlets in that they are only 40 * called to handle a single request at a time. No concurrency 41 * control is required. The presentation should be coded in such 42 * a way that it can handle multiple, non-concurrent requests or 43 * have a lifetime of a single request. 44 * 45 * @param comms 46 * HTTP communications object. Contains objects and interfaces to read 47 * the request and send a response. 48 * @exception Exception 49 * Any exception may be thrown. 50 * @see HttpPresentationComms 51 */ 52 public void run(HttpPresentationComms comms) throws Exception; 53 } 54