com.lukasfeiler.httpd.plugins
Class IPFilter

java.lang.Object
  extended bycom.lukasfeiler.httpd.plugins.HTTPServerPlugin
      extended bycom.lukasfeiler.httpd.plugins.IPFilter

public class IPFilter
extends HTTPServerPlugin

Allows only requests from specific IP address ranges - see the configuration options IPFilterOrder, IPFilterAllow and IPFilterDeny.

Version:
0.1
Author:
Lukas Feiler

Field Summary
 
Fields inherited from class com.lukasfeiler.httpd.plugins.HTTPServerPlugin
server
 
Constructor Summary
IPFilter(HTTPServer server)
          Constructor.
 
Method Summary
 boolean run(HTTPSocket socket, java.io.File f, java.lang.String requestedResource, java.util.Vector headers)
          Run the plugin: allows only requests from specified IP address ranges.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPFilter

public IPFilter(HTTPServer server)
Constructor.

Method Detail

run

public boolean run(HTTPSocket socket,
                   java.io.File f,
                   java.lang.String requestedResource,
                   java.util.Vector headers)
            throws java.io.IOException
Run the plugin: allows only requests from specified IP address ranges.

Specified by:
run in class HTTPServerPlugin
Throws:
java.io.IOException