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.
-
HttpFileServer()
- Creates a HttpFileServer reading from "root" and
serving them to the HTTP-request path "file".
-
HttpFileServer(String)
- Creates a HttpFileServer reading from "root" and
serving them to the specified HTTP-request path.
-
HttpFileServer(String, String)
- Creates a HttpFileServer reading from a specified Path and
serving them to the specified HTTP-request path.
-
message(Message)
- Replies to incoming HTTP requests by extracts the path part and
returning matching files.
HttpFileServer
public HttpFileServer()
- Creates a HttpFileServer reading from "root" and
serving them to the HTTP-request path "file".
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
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
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