s.setMultipartConfig(Servlets.multipartConfig(mp.getLocation(), mp.getMaxFileSize(), mp.getMaxRequestSize(), mp.getFileSizeThreshold()));
public void augment(MultipartConfigMetaData webFragmentMetaData, MultipartConfigMetaData webMetaData, boolean resolveConflicts) if (getLocation() == null) setLocation(webFragmentMetaData.getLocation()); else if (webFragmentMetaData.getLocation() != null) if (!resolveConflicts && !getLocation().equals(webFragmentMetaData.getLocation()) && (webMetaData == null || webMetaData.getLocation() == null)) throw new IllegalStateException("Unresolved conflict on location: " + getLocation());
public static void augment(MultipartConfigMetaData dest, MultipartConfigMetaData webFragmentMetaData, MultipartConfigMetaData webMetaData, boolean resolveConflicts) { if (dest.getLocation() == null) { dest.setLocation(webFragmentMetaData.getLocation()); } else if (webFragmentMetaData.getLocation() != null) { if (!resolveConflicts && !dest.getLocation().equals(webFragmentMetaData.getLocation()) && (webMetaData == null || webMetaData.getLocation() == null)) { throw new IllegalStateException("Unresolved conflict on location: " + dest.getLocation());
MultipartConfigMetaData multipartConfig = new MultipartConfigMetaData(); MultipartConfigMetaData webFragmentMetaData = annotation.getMultipartConfig(); multipartConfig.setLocation(webFragmentMetaData.getLocation()); if (webFragmentMetaData.getMaxFileSizeSet()) { multipartConfig.setMaxFileSize(webFragmentMetaData.getMaxFileSize());
multipartConfig.setLocation(multipartConfigMetaData.getLocation()); multipartConfig.setMaxRequestSize(multipartConfigMetaData.getMaxRequestSize()); multipartConfig.setMaxFileSize(multipartConfigMetaData.getMaxFileSize());
s.setMultipartConfig(Servlets.multipartConfig(mp.getLocation(), mp.getMaxFileSize(), mp.getMaxRequestSize(), mp.getFileSizeThreshold()));
s.setMultipartConfig(Servlets.multipartConfig(mp.getLocation(), mp.getMaxFileSize(), mp.getMaxRequestSize(), mp.getFileSizeThreshold()));
multipartConfig.setLocation(multipartConfigMetaData.getLocation()); multipartConfig.setMaxRequestSize(multipartConfigMetaData.getMaxRequestSize()); multipartConfig.setMaxFileSize(multipartConfigMetaData.getMaxFileSize());