web stat support

This commit is contained in:
wenshao
2012-08-14 14:47:48 +08:00
parent e2ff0cca0d
commit 0e59ed545e
4 changed files with 6 additions and 3 deletions
@@ -37,8 +37,8 @@ public class WebStatFilter implements Filter {
public final static String PARAM_NAME_SESSION_STAT_ENABLE = "sessionStatEnable";
public final static String PARAM_NAME_SESSION_STAT_MAX_COUNT = "sessionStatMaxCount";
public static final String PARAM_NAME_EXCLUSIONS = "exclusions";
public static final String PARAM_NAME_PRINCIPAL_SESSION_NAME = "princialSessionName";
public static final String PARAM_NAME_PRINCIPAL_COOKIE_NAME = "princialCookieName";
public static final String PARAM_NAME_PRINCIPAL_SESSION_NAME = "principalSessionName";
public static final String PARAM_NAME_PRINCIPAL_COOKIE_NAME = "principalCookieName";
public final static int DEFAULT_MAX_STAT_SESSION_COUNT = 1000 * 100;
@@ -111,7 +111,7 @@ public class WebSessionStat {
StringBuilder buf = new StringBuilder();
for (String item : remoteAddresses) {
if (buf.length() != 0) {
buf.append(",");
buf.append(";");
}
buf.append(item);
}
@@ -261,6 +261,7 @@ public class WebSessionStat {
Map<String, Object> data = new LinkedHashMap<String, Object>();
data.put("SESSIONID", this.getSessionId());
data.put("Principal", this.getPrincipal());
data.put("RunningCount", this.getRunningCount());
data.put("ConcurrentMax", this.getConcurrentMax());
data.put("RequestCount", this.getRequestCount());