@Test public void testGetHttpHeaderIncludeFileContent() throws IOException { File file = new File(includeRoot.toFile(), Configuration.HTTP_HEADER_INCLUDE_FILE); writeStringToFile(file, CONTENT_1); assertEquals(CONTENT_1 + LINE_SEP, env.includeFiles.getHttpHeaderIncludeFileContent(false)); writeStringToFile(file, CONTENT_2); assertEquals(CONTENT_2 + LINE_SEP, env.includeFiles.getHttpHeaderIncludeFileContent(true)); }
public String getHttpHeaderIncludeFileContent(boolean force) { if (http_header == null || force) { http_header = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.HTTP_HEADER_INCLUDE_FILE)); } return http_header; }
IncludeFiles { public String getHttpHeaderIncludeFileContent(boolean force) { if (http_header == null || force) { http_header = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.HTTP_HEADER_INCLUDE_FILE)); } return http_header; } }
IncludeFiles { public String getHttpHeaderIncludeFileContent(boolean force) { if (http_header == null || force) { http_header = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.HTTP_HEADER_INCLUDE_FILE)); } return http_header; }  }
IncludeFiles { public String getHttpHeaderIncludeFileContent(boolean force) { if (http_header == null || force) { http_header = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.HTTP_HEADER_INCLUDE_FILE)); } return http_header; }  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 getHttpHeaderIncludeFileContent(boolean force) { if (http_header == null || force) { http_header = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.HTTP_HEADER_INCLUDE_FILE)); } return http_header; }  void reloadIncludeFiles(); String getFooterIncludeFileContent(boolean force); String getHeaderIncludeFileContent(boolean force); String getBodyIncludeFileContent(boolean force); String getForbiddenIncludeFileContent(boolean force); String getHttpHeaderIncludeFileContent(boolean force);  }