mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
fix typos in method signatures
This commit is contained in:
@@ -242,13 +242,13 @@ public class SolrLogger
|
||||
}
|
||||
|
||||
public static void postView(DSpaceObject dspaceObject,
|
||||
String ip, String userAgent, String xforwarderfor, EPerson currentUser) {
|
||||
String ip, String userAgent, String xforwardedfor, EPerson currentUser) {
|
||||
if (solr == null || locationService == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
SolrInputDocument doc1 = getCommonSolrDoc(dspaceObject, ip, userAgent, xforwarderfor,
|
||||
SolrInputDocument doc1 = getCommonSolrDoc(dspaceObject, ip, userAgent, xforwardedfor,
|
||||
currentUser);
|
||||
if (doc1 == null)
|
||||
return;
|
||||
@@ -376,7 +376,7 @@ public class SolrLogger
|
||||
return doc1;
|
||||
}
|
||||
|
||||
private static SolrInputDocument getCommonSolrDoc(DSpaceObject dspaceObject, String ip, String userAgent, String xforwarderfor, EPerson currentUser) throws SQLException {
|
||||
private static SolrInputDocument getCommonSolrDoc(DSpaceObject dspaceObject, String ip, String userAgent, String xforwardedfor, EPerson currentUser) throws SQLException {
|
||||
boolean isSpiderBot = SpiderDetector.isSpider(ip);
|
||||
if(isSpiderBot &&
|
||||
!ConfigurationManager.getBooleanProperty("usage-statistics", "logBots", true))
|
||||
@@ -388,14 +388,14 @@ public class SolrLogger
|
||||
// Save our basic info that we already have
|
||||
|
||||
|
||||
if (isUseProxies() && xforwarderfor != null) {
|
||||
if (isUseProxies() && xforwardedfor != null) {
|
||||
/* This header is a comma delimited list */
|
||||
for (String xfip : xforwarderfor.split(",")) {
|
||||
for (String xfip : xforwardedfor.split(",")) {
|
||||
/* proxy itself will sometime populate this header with the same value in
|
||||
remote address. ordering in spec is vague, we'll just take the last
|
||||
not equal to the proxy
|
||||
*/
|
||||
if (!xforwarderfor.contains(ip)) {
|
||||
if (!xforwardedfor.contains(ip)) {
|
||||
ip = xfip.trim();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user