@@ -0,0 +1,1555 @@
+/*%0A * Copyright 2020 B2i Healthcare Pte Ltd, http://b2i.sg%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.b2international.snowowl.core.rate;%0A%0A/**%0A * @since 7.6%0A */%0Apublic class ApiFileUploadConfig %7B%0A%09%0A%09private static final int MB_IN_BYTE = 1024 * 1024;%0A%09%0A%09private static final long UNLIMITED = -1;%0A%09private static final int DEFAULT_MAX_IN_MEMORY_SIZE = 1024;%0A%0A%09private long maxFileSize;%0A%09private long maxRequestSize;%0A%09private int maxInMemorySize;%0A%09%0A%09public ApiFileUploadConfig(final long maxFileSize, final long maxRequestSize, final int maxInMemorySize) %7B%0A%09%09this.maxFileSize = maxFileSize == 0 ? UNLIMITED : MB_IN_BYTE * maxFileSize; %0A%09%09this.maxRequestSize = maxRequestSize == 0 ? UNLIMITED : MB_IN_BYTE * maxRequestSize; %0A%09%09this.maxInMemorySize = maxInMemorySize == 0 ? DEFAULT_MAX_IN_MEMORY_SIZE : MB_IN_BYTE * maxInMemorySize; %0A%09%7D%0A%0A%09public long getMaxFileSize() %7B%0A%09%09return maxFileSize;%0A%09%7D%0A%09%0A%09public long getMaxRequestSize() %7B%0A%09%09return maxRequestSize;%0A%09%7D%0A%09%0A%09public int getMaxInMemorySize() %7B%0A%09%09return maxInMemorySize;%0A%09%7D%0A%7D%0A

add class to store file upload configuration properties