com.lukasfeiler.httpd
Class ExtensionFilter

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

public class ExtensionFilter
extends HTTPServerPlugin


Field Summary
 
Fields inherited from class com.lukasfeiler.httpd.HTTPServerPlugin
server
 
Constructor Summary
ExtensionFilter(HTTPServer server)
           
 
Method Summary
protected  boolean allowConnection(java.io.File f)
           
protected  boolean matchAllow(java.lang.String fileName)
           
protected  boolean matchDeny(java.lang.String fileName)
           
 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
 

Constructor Detail

ExtensionFilter

public ExtensionFilter(HTTPServer server)
Method Detail

allowConnection

protected boolean allowConnection(java.io.File f)

matchAllow

protected boolean matchAllow(java.lang.String fileName)

matchDeny

protected boolean matchDeny(java.lang.String fileName)

run

public boolean run(HTTPSocket socket,
                   java.io.File f,
                   java.lang.String requestedResource,
                   java.util.Vector headers)
Overrides:
run in class HTTPServerPlugin