Java scripts for OSU web server
The java_script program is a multi-threaded program that allows you to
write java classes for extending the functionality of the OSU HTTP server.
The java_script scriptserver runs a single Java VM that concurrently
services multiple script requests in different threads.
The WWWJexec class provides the lowest-level interface between the HTTP
server and the Java script. Each instance of this class represents a
DECnet logical link between the server the script and carries record-oriented
data in accordance with the scriptserver protocol.
- Fields:
- func
- Operation request: HTBIN, CONVERT, POST, etc
- method
- HTTP method specified in request
- url_path
- Translated URL path specified in request
- protocol
- HTTP protocol specified in request (e.g. HTTP/1.0)
- script_path
- URL path prefix that caused server to invoke
this script.
- Methods:
- String read()
-
- Reads ascii string and converts to java String, throws IOException on
error
- int read ( byte[] buffer, int count )
- Reads up to count bytes (or sizeof buffer), return value is number of
characters read.