2
* Copyright 2005-2012 Restlet S.A.S.
4
* The contents of this file are subject to the terms of one of the following
5
* open source licenses: Apache 2.0 or LGPL 3.0 or LGPL 2.1 or CDDL 1.0 or EPL
6
* 1.0 (the "Licenses"). You can select the license that you prefer but you may
7
* not use this file except in compliance with one of these Licenses.
9
* You can obtain a copy of the Apache 2.0 license at
10
* http://www.opensource.org/licenses/apache-2.0
12
* You can obtain a copy of the LGPL 3.0 license at
13
* http://www.opensource.org/licenses/lgpl-3.0
15
* You can obtain a copy of the LGPL 2.1 license at
16
* http://www.opensource.org/licenses/lgpl-2.1
18
* You can obtain a copy of the CDDL 1.0 license at
19
* http://www.opensource.org/licenses/cddl1
21
* You can obtain a copy of the EPL 1.0 license at
22
* http://www.opensource.org/licenses/eclipse-1.0
24
* See the Licenses for the specific language governing permissions and
25
* limitations under the Licenses.
27
* Alternatively, you can obtain a royalty free commercial license with less
28
* limitations, transferable or non-transferable, directly at
29
* http://www.restlet.com/products/restlet-framework
31
* Restlet is a registered trademark of Restlet S.A.S.
37
* Uniform REST interface. "The central feature that distinguishes the REST
38
* architectural style from other network-based styles is its emphasis on a
39
* uniform interface between components. By applying the software engineering
40
* principle of generality to the component interface, the overall system
41
* architecture is simplified and the visibility of interactions is improved.
42
* Implementations are decoupled from the services they provide, which
43
* encourages independent evolvability." Roy T. Fielding
46
* href="http://roy.gbiv.com/pubs/dissertation/rest_arch_style.htm#sec_5_1_5">Source
48
* @author Jerome Louvel
50
public interface Uniform {
53
* Handles a uniform call. It is important to realize that this interface
54
* can be used either on the client-side or on the server-side.
57
* The request to handle.
59
* The associated response.
61
public void handle(Request request, Response response);