mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
LocalHostRestrictionFilter creates a logger but never uses it. If we
remove it, we can get rid of the Commons Logging dependency. Also add some direct dependencies drawn in by our modified FacetComponent.
This commit is contained in:
@@ -112,6 +112,16 @@
|
||||
<version>3.5.0</version>
|
||||
<type>jar</type>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.solr</groupId>
|
||||
<artifactId>solr-solrj</artifactId>
|
||||
<version>3.5.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.lucene</groupId>
|
||||
<artifactId>lucene-core</artifactId>
|
||||
<version>3.5.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Replace J.U.L. logging with log4j -->
|
||||
<dependency>
|
||||
@@ -125,13 +135,6 @@
|
||||
<version>1.6.1</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Commons Logging is needed for the LocalHostRestrictionFilter-->
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>1.0.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
@@ -16,17 +16,10 @@ import javax.servlet.FilterConfig;
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.ServletRequest;
|
||||
import javax.servlet.ServletResponse;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
public class LocalHostRestrictionFilter implements Filter {
|
||||
|
||||
private static Log log = LogFactory
|
||||
.getLog(LocalHostRestrictionFilter.class);
|
||||
|
||||
private boolean enabled = true;
|
||||
|
||||
public LocalHostRestrictionFilter() {
|
||||
|
Reference in New Issue
Block a user