com.lukasfeiler.httpd.plugins
Class ExtensionFilter

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

public class ExtensionFilter
extends HTTPServerPlugin

Allows only requests for files with the specified extensions - see the configuration options ExtensionFilterOrder, ExtensionFilterAllow and ExtensionFilterDeny.

Version:
0.1
Author:
Lukas Feiler

Field Summary
 
Fields inherited from class com.lukasfeiler.httpd.plugins.HTTPServerPlugin
server
 
Constructor Summary
ExtensionFilter(HTTPServer server)
          Constructor.
 
Method Summary
 boolean run(HTTPSocket socket, java.io.File f, java.lang.String requestedResource, java.util.Vector headers)
          Run the plugin: allow a request for a file with the specified extension (allows requests for directories as well
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionFilter

public ExtensionFilter(HTTPServer server)
Constructor.

Method Detail

run

public boolean run(HTTPSocket socket,
                   java.io.File f,
                   java.lang.String requestedResource,
                   java.util.Vector headers)
Run the plugin: allow a request for a file with the specified extension (allows requests for directories as well

Specified by:
run in class HTTPServerPlugin