Add uploadSoftfail servlet init parameter

This commit is contained in:
hns 2005-08-01 10:03:16 +00:00
parent 24fb08d1fc
commit 5982de3b48

View file

@ -284,6 +284,7 @@ public class ApplicationManager implements XmlRpcHandler {
String sessionCookieName;
String protectedSessionCookie;
String uploadLimit;
String uploadSoftfail;
String debug;
boolean encode;
Repository[] repositories;
@ -318,6 +319,7 @@ public class ApplicationManager implements XmlRpcHandler {
sessionCookieName = props.getProperty(name + ".sessionCookieName");
protectedSessionCookie = props.getProperty(name + ".protectedSessionCookie");
uploadLimit = props.getProperty(name + ".uploadLimit");
uploadSoftfail = props.getProperty(name + ".uploadSoftfail");
debug = props.getProperty(name + ".debug");
encode = "true".equalsIgnoreCase(props.getProperty(name +
".responseEncoding"));
@ -481,6 +483,10 @@ public class ApplicationManager implements XmlRpcHandler {
holder.setInitParameter("uploadLimit", uploadLimit);
}
if (uploadSoftfail != null) {
holder.setInitParameter("uploadSoftfail", uploadSoftfail);
}
if (debug != null) {
holder.setInitParameter("debug", debug);
}