Fan

 

abstract const class

web::WebService

sys::Obj
  web::WebService : sys::Service

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

See docLib::Web

Slots

logSource

static Log log := Log.get("web")

Standard log for web service

onStartSource

override protected Void onStart()

Subclasses must call super if overridden.

onStopSource

override protected Void onStop()

Subclasses must call super if overridden.

pipelineSource

const WebStep[] pipeline

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

See docLib::Web

serviceSource

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.