Converting service to pure page

This commit is contained in:
Ziver Koc 2016-07-23 00:15:54 +02:00
parent 3a0f40dab9
commit f2b4cfdec7
23 changed files with 140 additions and 219 deletions

View file

@ -44,9 +44,7 @@ import java.util.Map;
*/
public class HDDStatus extends WAStatusPage {
private static final String TEMPLATE = "wa/server/plugin/hwstatus/HddStatus.tmpl";
private static final String NAVIGATION_NAME = "wa/server/plugin/hwstatus/HddStatus.tmpl";
private Templator tmpl;
private int nextId;
private HashMap<String,Integer> idMap = new HashMap<String,Integer>();
@ -59,9 +57,7 @@ public class HDDStatus extends WAStatusPage {
@Override
public Templator htmlResponse(WAContext context, HttpHeader client_info, Map<String, Object> session, Map<String, String> cookie, Map<String, String> request) throws IOException {
if (tmpl == null)
tmpl = new Templator(FileUtil.getContent(FileUtil.find(TEMPLATE)));
return tmpl;
return new Templator(FileUtil.getContent(FileUtil.find(TEMPLATE)));
}
@Override