attachContainedFilesRecursively( file.toURI(), fileURI,
private void attachFilesRecursively( final URI actualBaseDirAbsURI, final URI targetBaseDirRelURI, final URI dirFileURI, final String dataRequestName, final Properties enhancedProps, final File dirFile) throws FileNotFoundException, IOException { final String dirFileURIPath = dirFileURI.getRawPath(); parts.add(Part.newInstance( "application/octet-stream", /* for the directory itself */ dirFileURIPath + (dirFileURIPath.endsWith("/") ? "" : "/"), enhancedProps, (InputStream) null)); /* * The enhanced properties contains a setting for the data-request-name * which will be used to inject as a paramter if the receiver is * a command. We don't want lower-level directories to appear to be * the injectable value when in fact the higher-level directory is * the correct value. */ enhancedProps.remove("data-request-name"); attachContainedFilesRecursively( actualBaseDirAbsURI, targetBaseDirRelURI, dataRequestName, enhancedProps, dirFile); }
attachContainedFilesRecursively( file.toURI(), fileURI,
attachContainedFilesRecursively( file.toURI(), fileURI,
private void attachFilesRecursively( final URI actualBaseDirAbsURI, final URI targetBaseDirRelURI, final URI dirFileURI, final String dataRequestName, final Properties enhancedProps, final File dirFile) throws FileNotFoundException, IOException { final String dirFileURIPath = dirFileURI.getRawPath(); parts.add(Part.newInstance( "application/octet-stream", /* for the directory itself */ dirFileURIPath + (dirFileURIPath.endsWith("/") ? "" : "/"), enhancedProps, (InputStream) null)); /* * The enhanced properties contains a setting for the data-request-name * which will be used to inject as a paramter if the receiver is * a command. We don't want lower-level directories to appear to be * the injectable value when in fact the higher-level directory is * the correct value. */ enhancedProps.remove("data-request-name"); attachContainedFilesRecursively( actualBaseDirAbsURI, targetBaseDirRelURI, dataRequestName, enhancedProps, dirFile); }
private void attachFilesRecursively( final URI actualBaseDirAbsURI, final URI targetBaseDirRelURI, final URI dirFileURI, final String dataRequestName, final Properties enhancedProps, final File dirFile) throws FileNotFoundException, IOException { final String dirFileURIPath = dirFileURI.getRawPath(); parts.add(Part.newInstance( "application/octet-stream", /* for the directory itself */ dirFileURIPath + (dirFileURIPath.endsWith("/") ? "" : "/"), enhancedProps, (InputStream) null)); /* * The enhanced properties contains a setting for the data-request-name * which will be used to inject as a paramter if the receiver is * a command. We don't want lower-level directories to appear to be * the injectable value when in fact the higher-level directory is * the correct value. */ enhancedProps.remove("data-request-name"); attachContainedFilesRecursively( actualBaseDirAbsURI, targetBaseDirRelURI, dataRequestName, enhancedProps, dirFile); }