From 72b69304efc43da27c6cd507760f5c40f54aaf6c Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 15 Oct 2009 07:07:23 +0200 Subject: [PATCH] Made the server context config more secure. --- src/dolda/jsvc/ServerContext.java | 2 +- src/dolda/jsvc/j2ee/J2eeContext.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dolda/jsvc/ServerContext.java b/src/dolda/jsvc/ServerContext.java index 9fd785a..81cb4cd 100644 --- a/src/dolda/jsvc/ServerContext.java +++ b/src/dolda/jsvc/ServerContext.java @@ -2,5 +2,5 @@ package dolda.jsvc; public interface ServerContext { public long starttime(); - public java.util.Properties config(); + public String config(String key); } diff --git a/src/dolda/jsvc/j2ee/J2eeContext.java b/src/dolda/jsvc/j2ee/J2eeContext.java index c6e09df..5049d26 100644 --- a/src/dolda/jsvc/j2ee/J2eeContext.java +++ b/src/dolda/jsvc/j2ee/J2eeContext.java @@ -53,8 +53,8 @@ public class J2eeContext implements ServerContext { return(ctime); } - public Properties config() { - return(config); + public String config(String key) { + return((String)config.get(key)); } public ServletConfig j2eeconfig() { -- 2.11.0