/** *Createaprogrammaticmulti-partconfigurationfromtheindividualconfigurationelements. * *@paramlocationThetemporarylocationtostorefiles *@parammaxFileSizeThemaximumpermittedsizeforasinglefile *@parammaxRequestSizeThemaximumpermittedsizeforarequest *@paramfileSizeThresholdThesizeabovewhichthefileissaveinthetemporarylocationratherthanretainedin *memory.
*/ public MultipartConfigElement(String location, long maxFileSize, long maxRequestSize, int fileSizeThreshold) { // Keep empty string default if location is null if (location != null) { this.location = location;
} else { this.location = "";
} this.maxFileSize = maxFileSize; this.maxRequestSize = maxRequestSize; // Avoid threshold values of less than zero as they cause trigger NPEs // in the Commons FileUpload port for fields that have no data. if (fileSizeThreshold > 0) { this.fileSizeThreshold = fileSizeThreshold;
} else { this.fileSizeThreshold = 0;
}
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:
(vorverarbeitet am 2026-06-22)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.