1 package org.molwind.servlet;
2 /*
3 * This file is part of Molwind.
4 *
5 * Molwind is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * Molwind is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with Molwind. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 import javax.servlet.http.HttpServletRequest;
20 import javax.servlet.http.HttpServletResponse;
21 import javax.servlet.ServletOutputStream;
22
23 import java.io.IOException;
24 import java.io.OutputStream;
25
26
27 /**
28 * Command interface gives the basic methode for the Command-Pattern
29 *
30 *
31 * @author <a href="mailto:Oktay.Degirmenci@merck.de>Oktay Degirmenci</a>
32 *
33 *
34 *
35 *
36 */
37 public interface Command {
38
39
40
41
42 /**
43 * Executes the GetWorldCommand
44 * @param request
45 * an {@link javax.servlet.http.HttpServletRequest} object, contains
46 * the request the client has made of the servlet
47 *
48 * @param response
49 * an {@link javax.servlet.http.HttpServletResponse} object, contains
50 * the response the client will get from the servlet
51 *
52 *
53 */
54
55 public void execute(HttpServletRequest request,HttpServletResponse response);
56
57
58
59 }