2
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/test/org/apache/commons/httpclient/server/HttpService.java,v 1.1 2004/02/27 19:04:32 olegk Exp $
4
* $Date: 2005-02-26 08:01:52 -0500 (Sat, 26 Feb 2005) $
6
* ====================================================================
8
* Copyright 1999-2004 The Apache Software Foundation
10
* Licensed under the Apache License, Version 2.0 (the "License");
11
* you may not use this file except in compliance with the License.
12
* You may obtain a copy of the License at
14
* http://www.apache.org/licenses/LICENSE-2.0
16
* Unless required by applicable law or agreed to in writing, software
17
* distributed under the License is distributed on an "AS IS" BASIS,
18
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
* See the License for the specific language governing permissions and
20
* limitations under the License.
21
* ====================================================================
23
* This software consists of voluntary contributions made by many
24
* individuals on behalf of the Apache Software Foundation. For more
25
* information on the Apache Software Foundation, please see
26
* <http://www.apache.org/>.
28
* [Additional notices, if required by prior licensing conditions]
32
package org.apache.commons.httpclient.server;
34
import java.io.IOException;
37
* Defines an HTTP request/response service for the SimpleHttpServer
39
* @author Oleg Kalnichevski
41
public interface HttpService {
43
* This interface represents a serice to process HTTP requests.
45
* @param request The HTTP request object.
46
* @param response The HTTP response object.
47
* @return true if this service was able to handle the request, false otherwise.
51
public boolean process(
52
final SimpleRequest request, final SimpleResponse response)