Dateiverwaltung für die WebBox
ulrich
2017-02-19 b7475d69c0d52f1639a13fae0afc617767852173
commit | author | age
b7475d 1 /*
U 2  *  Nutzerverwaltung - User and role management in your browser
3  *  Copyright (C) 2011-2017 Ulrich Hilger, http://uhilger.de
4  *
5  *  This program 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  *  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 General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program.  If not, see http://www.gnu.org/licenses/
17  */
18
19 package de.uhilger.filecms.api;
20
21 import de.uhilger.transit.web.RequestKontext;
22 import de.uhilger.transit.web.WebKontext;
23 import javax.servlet.ServletContext;
24 import javax.servlet.http.HttpServletRequest;
25
26 /**
27  *
28  */
29 public abstract class Api implements WebKontext, RequestKontext {
30   
31   /** Zeiger zum Servlet-Kontext dieser Anwendung */
32   private ServletContext ctx;
33   
34   private HttpServletRequest request;  
35   
36   
37   /* ------------- Implementierung WebKontext ------------- */
38
39   @Override
40   public ServletContext getServletContext() {
41     return ctx;
42   }
43
44   @Override
45   public void setServletContext(ServletContext servletContext) {
46     this.ctx = servletContext;
47   }
48   
49   /* ------------- Implementierung RequestKontext ------------- */
50
51   @Override
52   public HttpServletRequest getRequest() {
53     return request;
54   }
55
56   @Override
57   public void setRequest(HttpServletRequest r) {
58     this.request = r;
59   }
60   
61 }