[Index]

web:server


An HTTP server.

This is a wrapper around the Jetty Server. The handlers property must be used to configure the server to do anything useful. By default a simple welcome message is returned for all requests.

Common handlers to use are:


Property Summary

handlers List of Jetty Handlers.
name The name of service.
port The port number the server listens on.

Example Summary

Example 1 The simplest web server without any handlers.

Property Detail

handlers

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo, but pointless if missing.

List of Jetty Handlers.

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

The name of service. Can be any text.

port

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo, uses a random available port.

The port number the server listens on.


Examples

Example 1

The simplest web server without any handlers.

<oddjob id="this">
  <job>
    <web:server id="server" xmlns:web="oddjob:web"/>
  </job>
</oddjob>


(c) R Gordon Ltd 2005 - Present