Last active
August 29, 2015 14:15
-
-
Save LNA/799078fcb778149adca8 to your computer and use it in GitHub Desktop.
How should I test this?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FileRouter implements iResponse { | |
// omitted code | |
@Override | |
public byte[] buildResponseBody(Map<String, String> request) throws IOException { | |
String fileOneString = request.get("DIRECTORY") + request.get("URI"); | |
Path file = Paths.get(fileOneString); | |
byte[] body = Files.readAllBytes(filePath); | |
return body; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment