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;
|
}
|
|
|
}
|