A C D E G H I L M P R S W

A

AutoIndex - class com.lukasfeiler.httpd.plugins.AutoIndex.
Allows directory listings.
AutoIndex(HTTPServer) - Constructor for class com.lukasfeiler.httpd.plugins.AutoIndex
Constructor.

C

com.lukasfeiler.httpd - package com.lukasfeiler.httpd
The HTTP server daemon.
com.lukasfeiler.httpd.plugins - package com.lukasfeiler.httpd.plugins
Contains the plugins loadable with the configuration option Plugins.
configuredHTTPServer(String) - Static method in class com.lukasfeiler.httpd.HTTPServer
Factory method.

D

DirectoryIndex - class com.lukasfeiler.httpd.plugins.DirectoryIndex.
Uses specified files as directory index - see the configuration option DirectoryIndex.
DirectoryIndex(HTTPServer) - Constructor for class com.lukasfeiler.httpd.plugins.DirectoryIndex
Constructor.

E

ExtensionFilter - class com.lukasfeiler.httpd.plugins.ExtensionFilter.
Allows only requests for files with the specified extensions - see the configuration options ExtensionFilterOrder, ExtensionFilterAllow and ExtensionFilterDeny.
ExtensionFilter(HTTPServer) - Constructor for class com.lukasfeiler.httpd.plugins.ExtensionFilter
Constructor.

G

getConfigurationOption(String, String) - Method in class com.lukasfeiler.httpd.HTTPServer
Returns the specified configuration option and in case it is undefined a default value.
getContentType(File) - Method in class com.lukasfeiler.httpd.HTTPServer
Returns the content type of the file pass as argument.
getDate() - Method in class com.lukasfeiler.httpd.HTTPServer
Returns the current date and time.
getDocumentRoot() - Method in class com.lukasfeiler.httpd.HTTPServer
Returns an instance of File for the document root - please see the configuration option DocumentRoot.
getDocumentRoot() - Method in class com.lukasfeiler.httpd.HTTPSocket
Returns the document root by calling HTTPServer.getDocumentRoot()
getFileExtension(File) - Method in class com.lukasfeiler.httpd.HTTPServer
Returns the extension of the file pass as argument.
getHeader(Vector, String) - Method in class com.lukasfeiler.httpd.HTTPSocket
Returns a specific header.
getListenAddress() - Method in class com.lukasfeiler.httpd.HTTPServer
Returns the address the server listens on - please see the configuration option ListenAddress.
getListenPort() - Method in class com.lukasfeiler.httpd.HTTPServer
Returns the port the server listens on - please see the configuration option ListenPort.
getPlugins() - Method in class com.lukasfeiler.httpd.HTTPServer
Returns the loaded plugins - please see the configuration option Plugins.
getServerBanner() - Method in class com.lukasfeiler.httpd.HTTPServer
Return the server banner - please see the configuration option ServerBanner.

H

HTTPAuth - class com.lukasfeiler.httpd.plugins.HTTPAuth.
Requires basic HTTP authentication for all requests - see the configuration options HTTPAuthPasswordFile and HTTPAuthRealm.
HTTPAuth(HTTPServer) - Constructor for class com.lukasfeiler.httpd.plugins.HTTPAuth
Constructor.
HTTPServer - class com.lukasfeiler.httpd.HTTPServer.
This class implements a simple and secure HTTP server.
HTTPServer(Map) - Constructor for class com.lukasfeiler.httpd.HTTPServer
Constructor.
HTTPServerConfigFileException - exception com.lukasfeiler.httpd.HTTPServerConfigFileException.
Is thrown by HTTPServer if the configuration file cannot be read or contains invalid configuration statements.
HTTPServerConfigFileException(String) - Constructor for class com.lukasfeiler.httpd.HTTPServerConfigFileException
Constructor.
HTTPServerPlugin - class com.lukasfeiler.httpd.plugins.HTTPServerPlugin.
Abstract class for all plugins - see the configuration option Plugins.
HTTPServerPlugin(HTTPServer) - Constructor for class com.lukasfeiler.httpd.plugins.HTTPServerPlugin
Constructor.
HTTPServerPluginException - exception com.lukasfeiler.httpd.HTTPServerPluginException.
Is thrown if a plugin cannot be loaded - see the configuration option Plugins
HTTPServerPluginException(String) - Constructor for class com.lukasfeiler.httpd.HTTPServerPluginException
Constructor
HTTPSocket - class com.lukasfeiler.httpd.HTTPSocket.
This class implements a single HTTP socket connected to a client.
HTTPSocket(Socket, Integer, TCPServer, int) - Constructor for class com.lukasfeiler.httpd.HTTPSocket
 
HTTPSocketInvalidRequestException - exception com.lukasfeiler.httpd.HTTPSocketInvalidRequestException.
Is thrown if an HTTP request was invalid.
HTTPSocketInvalidRequestException(String) - Constructor for class com.lukasfeiler.httpd.HTTPSocketInvalidRequestException
Constructor.

I

IPFilter - class com.lukasfeiler.httpd.plugins.IPFilter.
Allows only requests from specific IP address ranges - see the configuration options IPFilterOrder, IPFilterAllow and IPFilterDeny.
IPFilter(HTTPServer) - Constructor for class com.lukasfeiler.httpd.plugins.IPFilter
Constructor.
internalRedirect(File, String, Vector) - Method in class com.lukasfeiler.httpd.HTTPSocket
Internal redirect to another file

L

logAccess(HTTPSocket, File, String, Vector, int, int) - Method in class com.lukasfeiler.httpd.HTTPServer
Write to access log file.
logError(String) - Method in class com.lukasfeiler.httpd.HTTPServer
Write to error log file.
logError(HTTPSocket, File, String, Vector, int, String) - Method in class com.lukasfeiler.httpd.HTTPServer
Write to error log file.
logSecure(HTTPSocket, File, String, Vector, String) - Method in class com.lukasfeiler.httpd.HTTPServer
Write to secure log file.

M

main(String[]) - Static method in class com.lukasfeiler.httpd.HTTPServer
Create a new HTTPServer with the configuration file passed as argument.

P

ParseM3U - class com.lukasfeiler.httpd.plugins.ParseM3U.
Parses a M3U file and outputs the result - see the configuration option ParseM3UHostPrefix.
ParseM3U(HTTPServer) - Constructor for class com.lukasfeiler.httpd.plugins.ParseM3U
Constructor.
processHttpRequest(Vector) - Method in class com.lukasfeiler.httpd.HTTPSocket
Processes the HTTP request and returns false if the socket is to be closed.
processInput() - Method in class com.lukasfeiler.httpd.HTTPSocket
Processes the input and returns false if the socket is to be closed.

R

ReadFile - class com.lukasfeiler.httpd.plugins.ReadFile.
Reads and outputs a file.
ReadFile(HTTPServer) - Constructor for class com.lukasfeiler.httpd.plugins.ReadFile
Constructor.
run() - Method in class com.lukasfeiler.httpd.HTTPSocket
Starts everything off.
run(HTTPSocket, File, String, Vector) - Method in class com.lukasfeiler.httpd.plugins.AutoIndex
Run the plugin: create a directory index if the requested resource is a directory.
run(HTTPSocket, File, String, Vector) - Method in class com.lukasfeiler.httpd.plugins.DirectoryIndex
Run the plugin: try to find the files specified by DirectoryIndex and run HTTPSocket.internalRedirect(java.io.File, java.lang.String, java.util.Vector).
run(HTTPSocket, File, String, Vector) - Method in class com.lukasfeiler.httpd.plugins.ExtensionFilter
Run the plugin: allow a request for a file with the specified extension (allows requests for directories as well
run(HTTPSocket, File, String, Vector) - Method in class com.lukasfeiler.httpd.plugins.HTTPAuth
Run the plugin: start the authentication process.
run(HTTPSocket, File, String, Vector) - Method in class com.lukasfeiler.httpd.plugins.HTTPServerPlugin
Run the plugin
run(HTTPSocket, File, String, Vector) - Method in class com.lukasfeiler.httpd.plugins.IPFilter
Run the plugin: allows only requests from specified IP address ranges.
run(HTTPSocket, File, String, Vector) - Method in class com.lukasfeiler.httpd.plugins.ParseM3U
Run the plugin: if the request is for a m3u file, the m3u file is parsed.
run(HTTPSocket, File, String, Vector) - Method in class com.lukasfeiler.httpd.plugins.ReadFile
Run the plugin: read a file.

S

server - Variable in class com.lukasfeiler.httpd.plugins.HTTPServerPlugin
The HTTPServer instance passed to the constructor.
socketFactory(Socket, Integer, TCPServer, int) - Method in class com.lukasfeiler.httpd.HTTPServer
Factory method for creating new sockets.

W

writeInternalError(HTTPSocket, File, String, Vector, String) - Method in class com.lukasfeiler.httpd.HTTPSocket
Write 500 Internal error.
writeNotFoundError(HTTPSocket, File, String, Vector, String) - Method in class com.lukasfeiler.httpd.HTTPSocket
Write 404 Not Found error.
writePermissionDeniedError(HTTPSocket, File, String, Vector, String) - Method in class com.lukasfeiler.httpd.HTTPSocket
Write 404 Not found error.
writeStandardHTTPHeaders(String) - Method in class com.lukasfeiler.httpd.HTTPSocket
 

A C D E G H I L M P R S W