AnnotationValue locationValue = annotation.value("location"); if (locationValue != null && locationValue.asString().length() > 0) { multipartConfig.setLocation(locationValue.asString());
switch (element) { case LOCATION: multipartConfig.setLocation(getElementText(reader, propertyReplacer)); break; case MAX_FILE_SIZE:
public MultipartConfigMetaData create(Class<?> element) { MultipartConfig multipartConfig = finder.getAnnotation(element, MultipartConfig.class); if(multipartConfig == null) return null; MultipartConfigMetaData metaData = new MultipartConfigMetaData(); if (!"".equals(multipartConfig.location())) metaData.setLocation(multipartConfig.location()); if (multipartConfig.maxFileSize() != -1L) metaData.setMaxFileSize(multipartConfig.maxFileSize()); if (multipartConfig.maxRequestSize() != -1L) metaData.setMaxRequestSize(multipartConfig.maxRequestSize()); if (multipartConfig.fileSizeThreshold() != 0) metaData.setFileSizeThreshold(multipartConfig.fileSizeThreshold()); return metaData; }
setLocation(webFragmentMetaData.getLocation());
dest.setLocation(webFragmentMetaData.getLocation()); } else if (webFragmentMetaData.getLocation() != null) { if (!resolveConflicts && !dest.getLocation().equals(webFragmentMetaData.getLocation())
MultipartConfigMetaData multipartConfig = new MultipartConfigMetaData(); MultipartConfigMetaData webFragmentMetaData = annotation.getMultipartConfig(); multipartConfig.setLocation(webFragmentMetaData.getLocation()); if (webFragmentMetaData.getMaxFileSizeSet()) { multipartConfig.setMaxFileSize(webFragmentMetaData.getMaxFileSize());
AnnotationValue locationValue = annotation.value("location"); if (locationValue != null && locationValue.asString().length() > 0) { multipartConfig.setLocation(locationValue.asString());
AnnotationValue locationValue = annotation.value("location"); if (locationValue != null && locationValue.asString().length() > 0) { multipartConfig.setLocation(locationValue.asString());