com.lukasfeiler.httpd
Class IPFilter
java.lang.Object
com.lukasfeiler.httpd.HTTPServerPlugin
com.lukasfeiler.httpd.IPFilter
- public class IPFilter
- extends HTTPServerPlugin
|
Method Summary |
protected boolean |
allowConnection(HTTPSocket socket,
java.io.File f,
java.lang.String requestedResource,
java.util.Vector headers)
|
protected void |
buildAllow()
|
protected void |
buildDeny()
|
protected boolean |
matchAllow(IPAddress sourceIP,
HTTPSocket socket,
java.io.File f,
java.lang.String requestedResource,
java.util.Vector headers)
|
protected boolean |
matchDeny(IPAddress sourceIP,
HTTPSocket socket,
java.io.File f,
java.lang.String requestedResource,
java.util.Vector headers)
|
boolean |
run(HTTPSocket socket,
java.io.File f,
java.lang.String requestedResource,
java.util.Vector headers)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IPFilter
public IPFilter(HTTPServer server)
allowConnection
protected boolean allowConnection(HTTPSocket socket,
java.io.File f,
java.lang.String requestedResource,
java.util.Vector headers)
matchAllow
protected boolean matchAllow(IPAddress sourceIP,
HTTPSocket socket,
java.io.File f,
java.lang.String requestedResource,
java.util.Vector headers)
matchDeny
protected boolean matchDeny(IPAddress sourceIP,
HTTPSocket socket,
java.io.File f,
java.lang.String requestedResource,
java.util.Vector headers)
buildAllow
protected void buildAllow()
buildDeny
protected void buildDeny()
run
public boolean run(HTTPSocket socket,
java.io.File f,
java.lang.String requestedResource,
java.util.Vector headers)
throws java.io.IOException
- Overrides:
run in class HTTPServerPlugin
- Throws:
java.io.IOException