com.lukasfeiler.httpd.plugins
Class HTTPServerPlugin
java.lang.Object
com.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. |
|
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 |
server
protected HTTPServer server
- The HTTPServer instance passed to the constructor.
HTTPServerPlugin
protected HTTPServerPlugin(HTTPServer server)
- Constructor.
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