@@ -190,8 +190,7 @@ public void removeAttribute(String string) {
190
190
}
191
191
192
192
/**
193
- * Add the given data to the <head> section of the html page to
194
- * generate.
193
+ * Add the given data to the <head> section of the html page to generate.
195
194
*
196
195
* @param data data to add. It is copied as is, so remember to escape
197
196
* special characters ...
@@ -207,8 +206,7 @@ public void addHeaderData(String data) {
207
206
}
208
207
209
208
/**
210
- * Get addition data, which should be added as is to the <head>
211
- * section of the html page.
209
+ * Get addition data, which should be added as is to the <head> section of the HTML page.
212
210
*
213
211
* @return an empty string if nothing to add, the data otherwise.
214
212
*/
@@ -432,10 +430,10 @@ public String canProcess() {
432
430
* @return an empty list, if the resource does not exist, is not a directory
433
431
* or an error occurred when reading it, otherwise a list of filenames in
434
432
* that directory, sorted alphabetically
435
- *
436
433
* <p>
437
434
* For the root directory (/xref/), authorization check is performed for each
438
435
* project in case that projects are used.
436
+ * </p>
439
437
*
440
438
* @see #getResourceFile()
441
439
* @see #isDir()
@@ -499,8 +497,6 @@ List<String> getSortedFiles(File[] files) {
499
497
}
500
498
501
499
/**
502
- * Get the time of last modification of the related file or directory.
503
- *
504
500
* @return the last modification time of the related file or directory.
505
501
* @see File#lastModified()
506
502
*/
@@ -509,11 +505,10 @@ public long getLastModified() {
509
505
}
510
506
511
507
/**
512
- * Get all RSS related directories from the request using its {@code also}
513
- * parameter.
508
+ * Get all RSS related directories from the request using its {@code also} parameter.
514
509
*
515
510
* @return an empty string if the requested resource is not a directory, a
516
- * space (' ') separated list of unchecked directory names otherwise.
511
+ * space (<code> ' '</code> ) separated list of unchecked directory names otherwise.
517
512
*/
518
513
public String getHistoryDirs () {
519
514
if (!isDir ()) {
@@ -534,10 +529,8 @@ public String getHistoryDirs() {
534
529
* Get the int value of the given request parameter.
535
530
*
536
531
* @param name name of the parameter to lookup.
537
- * @param defaultValue value to return, if the parameter is not set, is not
538
- * a number, or is < 0.
539
- * @return the parsed int value on success, the given default value
540
- * otherwise.
532
+ * @param defaultValue value to return, if the parameter is not set, is not a number, or is < 0.
533
+ * @return the parsed int value on success, the given default value otherwise.
541
534
*/
542
535
public int getIntParam (String name , int defaultValue ) {
543
536
int ret = defaultValue ;
@@ -1107,10 +1100,10 @@ public boolean isUnreadable() {
1107
1100
1108
1101
/**
1109
1102
* Get the file object for the given path.
1110
- *
1103
+ * <p>
1111
1104
* NOTE: If a repository contains hard or symbolic links, the returned file
1112
1105
* may finally point to a file outside the source root directory.
1113
- *
1106
+ * </p>
1114
1107
* @param path the path to the file relatively to the source root
1115
1108
* @return null if the related file or directory is not
1116
1109
* available (can not be found below the source root directory), the readable file or directory otherwise.
@@ -1127,10 +1120,10 @@ public File getResourceFile(String path) {
1127
1120
1128
1121
/**
1129
1122
* Get the on disk file to the request related file or directory.
1130
- *
1123
+ * <p>
1131
1124
* NOTE: If a repository contains hard or symbolic links, the returned file
1132
1125
* may finally point to a file outside the source root directory.
1133
- *
1126
+ * </p>
1134
1127
* @return {@code new File({@link org.opengrok.indexer.index.Indexer#PATH_SEPARATOR_STRING })}
1135
1128
* if the related file or directory is not available (can not be find below the source root directory),
1136
1129
* the readable file or directory otherwise.
@@ -1426,10 +1419,8 @@ public File getDataRoot() {
1426
1419
}
1427
1420
1428
1421
/**
1429
- * Play nice in reverse proxy environment by using pre-configured hostname
1430
- * request to construct the URLs.
1431
- * Will not work well if the scheme or port is different for proxied server
1432
- * and original server.
1422
+ * Play nice in reverse proxy environment by using pre-configured hostname request to construct the URLs.
1423
+ * Will not work well if the scheme or port is different for proxied server and original server.
1433
1424
* @return server name
1434
1425
*/
1435
1426
public String getServerName () {
@@ -1698,17 +1689,16 @@ private SortedSet<AcceptedMessage> getProjectMessages() {
1698
1689
* <p>
1699
1690
* The resource is modified since the weak ETag value in the request, the ETag is
1700
1691
* computed using:
1701
- *
1702
1692
* <ul>
1703
1693
* <li>the source file modification</li>
1704
1694
* <li>project messages</li>
1705
1695
* <li>last timestamp for index</li>
1706
1696
* <li>OpenGrok current deployed version</li>
1707
1697
* </ul>
1708
- *
1698
+ * </p>
1709
1699
* <p>
1710
1700
* If the resource was modified, appropriate headers in the response are filled.
1711
- *
1701
+ * </p>
1712
1702
*
1713
1703
* @param request the http request containing the headers
1714
1704
* @param response the http response for setting the headers
@@ -1753,9 +1743,8 @@ public static String getRelativePath(String root, String path) {
1753
1743
}
1754
1744
1755
1745
/**
1756
- * Determines whether a match offset from a search result has been
1757
- * indicated, and if so tries to calculate a translated xref fragment
1758
- * identifier.
1746
+ * Determines whether a match offset from a search result has been indicated,
1747
+ * and if so tries to calculate a translated xref fragment identifier.
1759
1748
* @return {@code true} if a xref fragment identifier was calculated by the call to this method
1760
1749
*/
1761
1750
public boolean evaluateMatchOffset () {
0 commit comments