All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sics.agentbase.http.HttpFileServer

java.lang.Object
   |
   +----sics.agentbase.http.HttpFileServer

public class HttpFileServer
extends Object
implements MessageListener
The HttpFileServer class implements a simple webserver. HttpFileServer waits for HTTP requests, extracts the path information and returns matching files.


Constructor Index

 o HttpFileServer()
Creates a HttpFileServer reading from "root" and serving them to the HTTP-request path "file".
 o HttpFileServer(String)
Creates a HttpFileServer reading from "root" and serving them to the specified HTTP-request path.
 o HttpFileServer(String, String)
Creates a HttpFileServer reading from a specified Path and serving them to the specified HTTP-request path.

Method Index

 o message(Message)
Replies to incoming HTTP requests by extracts the path part and returning matching files.

Constructors

 o HttpFileServer
 public HttpFileServer()
Creates a HttpFileServer reading from "root" and serving them to the HTTP-request path "file".

 o HttpFileServer
 public HttpFileServer(String HTTPPath)
Creates a HttpFileServer reading from "root" and serving them to the specified HTTP-request path.

Parameters:
HTTPPath - the name of the HTTP-request path
 o HttpFileServer
 public HttpFileServer(String HTTPPath,
                       String FilePath)
Creates a HttpFileServer reading from a specified Path and serving them to the specified HTTP-request path.

Parameters:
HTTPPath - the name of the HTTP-request path
FilePath - the name of the actual file path

Methods

 o message
 public void message(Message msg)
Replies to incoming HTTP requests by extracts the path part and returning matching files.

The message is invoked whenever a message is delivered to this object. All messages that are not HTTP requests are ignored.

Parameters:
msg - the message to process.

All Packages  Class Hierarchy  This Package  Previous  Next  Index