commit | author | age
|
c7c502
|
1 |
package de.uhilger.filecms.api; |
U |
2 |
|
|
3 |
import de.uhilger.filesystem.FileRef; |
|
4 |
import de.uhilger.transit.web.WebKontext; |
|
5 |
import javax.servlet.ServletContext; |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
* @author ulrich |
|
10 |
*/ |
|
11 |
public class FileMgr implements WebKontext { |
|
12 |
|
|
13 |
public static final String FILE_BASE = "fileBase"; |
|
14 |
|
|
15 |
private ServletContext ctx; |
|
16 |
|
|
17 |
public FileRef getBase() { |
|
18 |
FileRef ref = null; |
|
19 |
String fileBase = getServletContext().getInitParameter(FILE_BASE); |
|
20 |
return ref; |
|
21 |
} |
|
22 |
|
|
23 |
@Override |
|
24 |
public ServletContext getServletContext() { |
|
25 |
return ctx; |
|
26 |
} |
|
27 |
|
|
28 |
@Override |
|
29 |
public void setServletContext(ServletContext servletContext) { |
|
30 |
this.ctx = servletContext; |
|
31 |
} |
|
32 |
|
|
33 |
|
|
34 |
} |