Commit 5203a6c6 authored by helene ortiz's avatar helene ortiz
Browse files

Modifications following parameter added in getFileContent

parent 652868f8
......@@ -86,8 +86,8 @@ public class ResourceManager {
}
public String getFileContent(String fileName) throws ResourceNotFoundException {
return CommandZoneAccessor.getInstance(serverId).getFileContent(fileName);
public String getFileContent(String fileName, boolean addServerHome) throws ResourceNotFoundException {
return CommandZoneAccessor.getInstance(serverId).getFileContent(fileName, addServerHome);
}
......
......@@ -3214,7 +3214,7 @@ public class CommandZoneAccessor {
}
public synchronized String getFileContent(String fileName) throws ResourceNotFoundException {
public synchronized String getFileContent(String fileName, boolean addServerHome) throws ResourceNotFoundException {
// Create the message type.
CommandZoneRequests.Message type = CommandZoneRequests.Message.newBuilder()
......@@ -3223,6 +3223,7 @@ public class CommandZoneAccessor {
// Create the request.
CommandZoneRequests.GetFileContentRequest request = CommandZoneRequests.GetFileContentRequest.newBuilder()
.setFileName(fileName)
.setAddServerHome(addServerHome)
.build();
commandBoxRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment