I-Serve

Main-program class: ix.iserve.IServe

Command-line arguments:

-http-server-port=int

Tells I-Serve what port to listen on for the requests it serves. If no port is specified, I-Serve uses 8080. A port of 0 tells I-Serve to ask the OS for a free port. The port number will be included in "Help" -> "About I-X Server".

-http-root-directory=filePath
-http-root-directory=filePath:urlPath

Specifies the root directory of a file tree that I-Serve will serve as "static content". (You can, of course, put new files there while I-Serve is running, but the content is in the files rather than generated when a request is received.) The urlPath defaults to "files". The URLs look like this:

http://iserveHost:iservePort/urlPath/...
where iserveHost and iservePort are replaced by the name of the machine that is running I-Serve and the port that I-Serve is using.

Description:

I-Serve is an I-X Process Panel (I-P2) that contains an HTTP server. The HTTP server can be used independently, in other agents. For that, see the documentation for the ix.util.http package. The HTTP server is also used by some communication strategies.

Additional handlers:

add-servlet class-name (parameter ...) pathSpec

Constructs an instance of the specified servlet class by calling the most specific public constructor that is applicable to the specified parameters, and then adds that servlet to the HTTP server so that it will be invoked for requests that match the pathSpec.


Jeff Dalton <J.Dalton@ed.ac.uk>