logo

abstract const class

web::WebService

sys::Obj
  sys::Thread
    web::WebService

WebService defines the standard service interface for all Fan based web servers.

See docLib::Web

Slots

log

static Log log

Standard log for web service

make

new make(Str name)

Constructor with thread name.

onStart

override protected Void onStart()

Subclasses must call super if overridden.

onStop

override protected Void onStop()

Subclasses must call super if overridden.

pipeline

const WebStep[] pipeline

The pipeline field stores a series of WebSteps which are processed in sequence to service a web request.

See docLib::Web

service

virtual Void service(WebReq req, WebRes res)

Service the specified web request with the configured pipeline. Any exceptions raised by a step, are propagated to the caller - internal errors should be handled by subclasses. If WebRes.done is called, then the pipeline is terminated.