java.lang.Object
org.apache.jena.fuseki.mod.admin.LocalhostOnly
- All Implemented Interfaces:
jakarta.servlet.Filter
Responds with HTTP 403 on any denied request.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkLocalhost
(jakarta.servlet.http.HttpServletRequest request) boolean
checkRequest
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) void
doFilter
(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.servlet.Filter
destroy, init
-
Constructor Details
-
LocalhostOnly
public LocalhostOnly()
-
-
Method Details
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilter
in interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-
checkRequest
public boolean checkRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) -
checkLocalhost
public static boolean checkLocalhost(jakarta.servlet.http.HttpServletRequest request)
-