@Test public void testGetForbiddenIncludeFileContent() throws IOException { File file = new File(includeRoot.toFile(), Configuration.E_FORBIDDEN_INCLUDE_FILE); writeStringToFile(file, CONTENT_1); assertEquals(CONTENT_1 + LINE_SEP, env.includeFiles.getForbiddenIncludeFileContent(false)); writeStringToFile(file, CONTENT_2); assertEquals(CONTENT_2 + LINE_SEP, env.includeFiles.getForbiddenIncludeFileContent(true)); }
public String getForbiddenIncludeFileContent(boolean force) { if (eforbidden_content == null || force) { eforbidden_content = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.E_FORBIDDEN_INCLUDE_FILE)); } return eforbidden_content; }
IncludeFiles { public String getForbiddenIncludeFileContent(boolean force) { if (eforbidden_content == null || force) { eforbidden_content = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.E_FORBIDDEN_INCLUDE_FILE)); } return eforbidden_content; } }
IncludeFiles { public String getForbiddenIncludeFileContent(boolean force) { if (eforbidden_content == null || force) { eforbidden_content = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.E_FORBIDDEN_INCLUDE_FILE)); } return eforbidden_content; }  }
IncludeFiles { public String getForbiddenIncludeFileContent(boolean force) { if (eforbidden_content == null || force) { eforbidden_content = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.E_FORBIDDEN_INCLUDE_FILE)); } return eforbidden_content; }  void reloadIncludeFiles(); String getFooterIncludeFileContent(boolean force); String getHeaderIncludeFileContent(boolean force); String getBodyIncludeFileContent(boolean force); String getForbiddenIncludeFileContent(boolean force); String getHttpHeaderIncludeFileContent(boolean force); }
IncludeFiles { public String getForbiddenIncludeFileContent(boolean force) { if (eforbidden_content == null || force) { eforbidden_content = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.E_FORBIDDEN_INCLUDE_FILE)); } return eforbidden_content; }  void reloadIncludeFiles(); String getFooterIncludeFileContent(boolean force); String getHeaderIncludeFileContent(boolean force); String getBodyIncludeFileContent(boolean force); String getForbiddenIncludeFileContent(boolean force); String getHttpHeaderIncludeFileContent(boolean force);  }