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