MCPcopy Index your code
hub / github.com/OpenAS2/OpenAs2App / get

Method get

Server/src/test/java/org/openas2/TestResource.java:51–58  ·  view source on GitHub ↗

Get the absolute path to a file or directory within #resourceBaseFolder @param foldersAndFile - a list of optional folders in path with the actual file name as the last in the list @return a file

(String... foldersAndFile)

Source from the content-addressed store, hash-verified

49 * @return a file
50 */
51 public static String get(String... foldersAndFile) throws FileNotFoundException {
52 String filePath = pathPrefix + File.separator + StringUtils.join(foldersAndFile, File.separator);
53 File file = new File(filePath);
54 if (!file.exists()) {
55 throw new FileNotFoundException(filePath);
56 }
57 return filePath;
58 }
59
60 /**
61 * Get a File object for a file or directory within {@link #resourceBaseFolder}

Callers 15

getResourceMethod · 0.95
getFileMethod · 0.95
TestResourceClass · 0.80
TestPartnerMethod · 0.80
sendMessagesMethod · 0.80
sendMessageMethod · 0.80
BaseServerSetupClass · 0.80
copyConfigMethod · 0.80
startServersMethod · 0.80
createMessagesMethod · 0.80
enhancesAttributesMethod · 0.80
setUpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected