-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
*/ | ||
|
||
/* | ||
* Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright (c) 2008, 2025, Oracle and/or its affiliates. All rights reserved. | ||
* Portions Copyright (c) 2020, Aleksandr Kirillov <[email protected]>. | ||
*/ | ||
package org.opengrok.indexer.configuration; | ||
|
@@ -93,7 +93,7 @@ public String getBodyIncludeFileContent(boolean force) { | |
return body; | ||
} | ||
|
||
private transient String eforbidden_content = null; | ||
private transient String eforbiddenContent = null; | ||
|
||
/** | ||
* Get the contents of the page for forbidden error page (403 Forbidden) | ||
|
@@ -105,14 +105,14 @@ public String getBodyIncludeFileContent(boolean force) { | |
* @see Configuration#E_FORBIDDEN_INCLUDE_FILE | ||
*/ | ||
public String getForbiddenIncludeFileContent(boolean force) { | ||
if (eforbidden_content == null || force) { | ||
eforbidden_content = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), | ||
if (eforbiddenContent == null || force) { | ||
eforbiddenContent = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), | ||
Configuration.E_FORBIDDEN_INCLUDE_FILE)); | ||
} | ||
return eforbidden_content; | ||
return eforbiddenContent; | ||
} | ||
|
||
private transient String http_header = null; | ||
private transient String httpHeader = null; | ||
|
||
/** | ||
* Get the contents of the HTTP header include file. | ||
|
@@ -123,10 +123,10 @@ public String getForbiddenIncludeFileContent(boolean force) { | |
* @see Configuration#HTTP_HEADER_INCLUDE_FILE | ||
*/ | ||
public String getHttpHeaderIncludeFileContent(boolean force) { | ||
if (http_header == null || force) { | ||
http_header = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), | ||
if (httpHeader == null || force) { | ||
httpHeader = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), | ||
Configuration.HTTP_HEADER_INCLUDE_FILE)); | ||
} | ||
return http_header; | ||
return httpHeader; | ||
} | ||
} |