commit | author | age
|
ca8e1e
|
1 |
/* |
U |
2 |
Transit - Remote procedure calls made simple |
|
3 |
Copyright (c) 2012 Ulrich Hilger |
|
4 |
|
|
5 |
This program is free software: you can redistribute it and/or modify |
|
6 |
it under the terms of the GNU Affero 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 |
This program 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 Affero General Public License for more details. |
|
14 |
|
|
15 |
You should have received a copy of the GNU Affero General Public License |
|
16 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
17 |
*/ |
|
18 |
|
|
19 |
package de.uhilger.transit.web; |
|
20 |
|
|
21 |
import javax.servlet.http.HttpServletRequest; |
|
22 |
|
|
23 |
/** |
|
24 |
* Soll eine Klasse Zugang zum ServletKontext einer Webanwendung bekommen ohne |
|
25 |
* selbst ein Servlet zu sein, kann sie bei Verwendung von Transit diese Schnittstelle |
|
26 |
* implementieren. |
|
27 |
* |
|
28 |
* @author Copyright (c) Ulrich Hilger, http://uhilger.de |
|
29 |
* @author Published under the terms and conditions of |
|
30 |
* the <a href="http://www.gnu.org/licenses/agpl-3.0" target="_blank">GNU Affero General Public License</a> |
|
31 |
* |
|
32 |
* @version 1, 2.1.2013 |
|
33 |
*/ |
|
34 |
public interface RequestKontext { |
|
35 |
|
|
36 |
/** |
|
37 |
* Den HttpServletRequest ermitteln |
|
38 |
* |
|
39 |
* @return den HttpServletRequest |
|
40 |
*/ |
|
41 |
public HttpServletRequest getRequest(); |
|
42 |
|
|
43 |
/** |
|
44 |
* Den HttpServletRequest uebermitteln |
|
45 |
* |
117776
|
46 |
* @param r der HttpServletRequest der Webanwendung |
ca8e1e
|
47 |
*/ |
U |
48 |
public void setRequest(HttpServletRequest r); |
|
49 |
|
|
50 |
} |