001 // $Header: /cvsroot/deegree/src/org/deegree/ogcwebservices/OGCWebService.java,v
002 // 1.7 2004/06/23 13:37:40 mschneider Exp $
003 /*---------------- FILE HEADER ------------------------------------------
004
005 This file is part of deegree.
006 Copyright (C) 2001 by:
007 EXSE, Department of Geography, University of Bonn
008 http://www.giub.uni-bonn.de/exse/
009 lat/lon Fitzke/Fretter/Poth GbR
010 http://www.lat-lon.de
011
012 This library is free software; you can redistribute it and/or
013 modify it under the terms of the GNU Lesser General Public
014 License as published by the Free Software Foundation; either
015 version 2.1 of the License, or (at your option) any later version.
016
017 This library is distributed in the hope that it will be useful,
018 but WITHOUT ANY WARRANTY; without even the implied warranty of
019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
020 Lesser General Public License for more details.
021
022 You should have received a copy of the GNU Lesser General Public
023 License along with this library; if not, write to the Free Software
024 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
025
026 Contact:
027
028 Andreas Poth
029 lat/lon Fitzke/Fretter/Poth GbR
030 Meckenheimer Allee 176
031 53115 Bonn
032 Germany
033 E-Mail: poth@lat-lon.de
034
035 Jens Fitzke
036 Department of Geography
037 University of Bonn
038 Meckenheimer Allee 166
039 53115 Bonn
040 Germany
041 E-Mail: jens.fitzke@uni-bonn.de
042
043
044 ---------------------------------------------------------------------------*/
045 package org.opengis.webservice;
046
047 import org.opengis.webservice.WebServiceEvent;
048 import org.opengis.webservice.capability.Capabilities;
049
050
051 /**
052 * @author <a href="mailto:poth@lat-lon.de">Andreas Poth </a>
053 */
054 public interface WebService {
055 /**
056 * Returns the capabilities of a web service
057 */
058 Capabilities getCapabilities();
059
060 /**
061 * Performs the handling of the passed WebServiceEvent directly and returns
062 * the result to the calling class/method
063 *
064 * @param request request (WMS, WCS, WFS, CSW, WFS-G) to perform
065 *
066 * @throws WebServiceException
067 */
068 Object doService(WebServiceRequest request) throws WebServiceException;
069
070 /**
071 * Performs the handling of the passed WebServiceEvent in an new own Thread.
072 * The receiver of the response to the request must implement the
073 * WebServiceClient interface.
074 *
075 * @param event event containing request (WMS, WCS, WFS, CSW, WFS-G) to perform
076 *
077 * @throws WebServiceException
078 *
079 * @deprecated The WebServiceEvent class is marked as deprecated.
080 */
081 void doService(WebServiceEvent event) throws WebServiceException;
082 }