com.lukasfeiler.httpd.plugins
Class HTTPServerPlugin

java.lang.Object
  extended bycom.lukasfeiler.httpd.plugins.HTTPServerPlugin
Direct Known Subclasses:
AutoIndex, DirectoryIndex, ExtensionFilter, HTTPAuth, IPFilter, ParseM3U, ReadFile

public abstract class HTTPServerPlugin
extends java.lang.Object

Abstract class for all plugins - see the configuration option Plugins. For help on how to write your own plugins please see "Overview".

Version:
0.1
Author:
Lukas Feiler

Field Summary
protected  HTTPServer server
          The HTTPServer instance passed to the constructor.
 
Constructor Summary
protected HTTPServerPlugin(HTTPServer server)
          Constructor.
 
Method Summary
abstract  boolean run(HTTPSocket socket, java.io.File file, java.lang.String requestedResource, java.util.Vector headers)
          Run the plugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

protected HTTPServer server
The HTTPServer instance passed to the constructor.

Constructor Detail

HTTPServerPlugin

protected HTTPServerPlugin(HTTPServer server)
Constructor.

Method Detail

run

public abstract boolean run(HTTPSocket socket,
                            java.io.File file,
                            java.lang.String requestedResource,
                            java.util.Vector headers)
                     throws java.io.IOException
Run the plugin

Throws:
java.io.IOException