Sun Java System Web Server 6.1 SP11 NSAPI Programmer's Guide

Request-handling Process

When the server first starts up it performs some initialization and then waits for an HTTP request from a client (such as a browser). When it receives a request, it first selects a virtual server. For details about how the virtual server is determined, see the Sun Java System Web Server 6.1 SP11 Administrator’s Configuration File Reference.

After the virtual server is selected, the obj.conf file for the virtual server class specifies how the request is handled in the following steps:

ProcedureTo handle request

  1. AuthTrans (authorization translation)

    Verify any authorization information (such as name and password) sent in the request.

  2. NameTrans (name translation)

    Translate the logical URI into a local file system path.

  3. PathCheck (path checking)

    Check the local file system path for validity and check that the requestor has access privileges to the requested resource on the file system.

  4. ObjectType (object typing)

    Determine the MIME-type (Multi-purpose Internet Mail Encoding) of the requested resource (for example, text/html, image/gif, and so on).

  5. Input (prepare to read input)

    Select filters that will process incoming request data read by the Service step.

  6. Output (prepare to send output)

    Select filters that will process outgoing response data generated by the Service step.

  7. Service (generate the response)

    Generate and return the response to the client.

  8. AddLog (adding log entries)

    Add entries to log file(s).

  9. Error (service)

    This step is executed only if an error occurs in the previous steps. If an error occurs, the server logs an error message and aborts the process.